Wiselib
|
A basic callback sensor. More...
Inherits concepts::BasicSensor_concept, and concepts::BasicReturnValues_concept.
Public Types | |
enum | BasicReturnValues { OK = ..., FAILED = ... } |
Basic return values. More... | |
enum | StateData { READY = ..., NO_VALUE = ..., INACTIVE = ... } |
State data. More... | |
enum | { SUCCESS, ERR_UNSPEC, ERR_NOMEM, ERR_BUSY, ERR_NOTIMPL, ERR_NETDOWN, ERR_HOSTUNREACH } |
enum | StateValues { READY, NO_VALUE, INACTIVE } |
Public Member Functions | |
int | state () |
Returns the current state. | |
Public Attributes | |
typedef | OsModel |
Type of Os Concept which has been set for the sensor facet. | |
typedef | value_t |
Type of value that is returned. |
A basic callback sensor.
A callback sensor refines the Basic Sensor and provides callback functionality, so that a user can register a callback function to be notified when a sensor value changes.
When registering a callback method, this method is either called immediately after registration (id sensor is READY),or called immediately after sensor gets READY (if previously INACTIVE or NO_VALUE).
After that, the callback is called each time the sensor value changes. It is in the responsibility of the concrete model how such a change is realized.
anonymous enum [inherited] |
enum concepts::BasicSensor_concept::StateData [inherited] |
enum concepts::BasicReturnValues_concept::StateValues [inherited] |
int concepts::BasicSensor_concept::state | ( | ) | [inherited] |
Returns the current state.
typedef concepts::BasicSensor_concept::OsModel [inherited] |
Type of Os Concept which has been set for the sensor facet.
typedef concepts::BasicSensor_concept::value_t [inherited] |
Type of value that is returned.