#include "contiki.h"
Data Structures | |
struct | sensors_sensor |
Macros | |
#define | SENSORS(...) |
#define | SENSORS_ACTIVATE(sensor) (sensor).configure(SENSORS_ACTIVE, 1) |
#define | SENSORS_ACTIVE 129 /* ACTIVE => 0 -> turn off, 1 -> turn on */ |
#define | SENSORS_DEACTIVATE(sensor) (sensor).configure(SENSORS_ACTIVE, 0) |
#define | SENSORS_HW_INIT 128 /* internal - used only for initialization */ |
#define | SENSORS_NUM (sizeof(sensors) / sizeof(struct sensors_sensor *)) |
#define | SENSORS_READY 130 /* read only */ |
#define | SENSORS_SENSOR(name, type, value, configure, status) const struct sensors_sensor name = { type, value, configure, status } |
Functions | |
PROCESS_NAME (sensors_process) | |
void | sensors_changed (const struct sensors_sensor *s) |
struct sensors_sensor * | sensors_find (const char *type) |
struct sensors_sensor * | sensors_first (void) |
struct sensors_sensor * | sensors_next (const struct sensors_sensor *s) |
Variables | |
process_event_t | sensors_event |
#define SENSORS | ( | ... | ) |
#define SENSORS_ACTIVATE | ( | sensor | ) | (sensor).configure(SENSORS_ACTIVE, 1) |
#define SENSORS_DEACTIVATE | ( | sensor | ) | (sensor).configure(SENSORS_ACTIVE, 0) |
#define SENSORS_HW_INIT 128 /* internal - used only for initialization */ |
Referenced by PROCESS_THREAD().
#define SENSORS_NUM (sizeof(sensors) / sizeof(struct sensors_sensor *)) |
#define SENSORS_READY 130 /* read only */ |
#define SENSORS_SENSOR | ( | name, | |
type, | |||
value, | |||
configure, | |||
status | |||
) | const struct sensors_sensor name = { type, value, configure, status } |
PROCESS_NAME | ( | sensors_process | ) |
void sensors_changed | ( | const struct sensors_sensor * | s | ) |
References FLAG_CHANGED, get_sensor_index(), process_poll(), and sensors_flags.
Referenced by extint_detection_callback().
struct sensors_sensor* sensors_find | ( | const char * | type | ) |
References i, len, NULL, num_sensors, and sensors_sensor::type.
Referenced by PROCESS_THREAD().
struct sensors_sensor* sensors_first | ( | void | ) |
struct sensors_sensor* sensors_next | ( | const struct sensors_sensor * | s | ) |
References get_sensor_index().
process_event_t sensors_event |
Referenced by PROCESS_THREAD().