Contiki-Inga 3.x
|
Sensor defintion structure. More...
#include <core/lib/sensors.h>
Data Fields | |
char * | type |
String name associated with sensor class. More... | |
int(* | value )(int type) |
Get sensor value. More... | |
int(* | configure )(int type, int value) |
Configure sensor. More... | |
int(* | status )(int type) |
Get status of sensor. More... | |
Configure sensor.
type | Configuration type Beside standard types respective sensor implementations may define additional types. |
value | Value to set for configuration type. |
1 | if configuration succeeded |
0 | if configuration failed or type is unknown |
int(* sensors_sensor::status)(int type) |
Get status of sensor.
type | One of (SENSORS_ACTIVE, SENSORS_READY) or sensor-specific ones. |
0 | if type is unknown |
char* sensors_sensor::type |
String name associated with sensor class.
Definition at line 133 of file sensors.h.
Referenced by sensors_find().