Microchip® Advanced Software Framework

sensors.c File Reference
#include <string.h>
#include "contiki.h"
#include "sensors.h"

Macros

#define FLAG_CHANGED   0x80
 

Functions

static int get_sensor_index (const struct sensors_sensor *s)
 
 PROCESS (sensors_process,"Sensors")
 
 PROCESS_THREAD (sensors_process, ev, data)
 
void sensors_changed (const struct sensors_sensor *s)
 
struct sensors_sensorsensors_find (const char *prefix)
 
struct sensors_sensorsensors_first (void)
 
struct sensors_sensorsensors_next (const struct sensors_sensor *s)
 

Variables

static unsigned char num_sensors
 
const struct sensors_sensorsensors []
 
process_event_t sensors_event
 
unsigned char sensors_flags []
 

#define FLAG_CHANGED   0x80

Referenced by PROCESS_THREAD(), and sensors_changed().

static int get_sensor_index ( const struct sensors_sensor s)
static

References i, and num_sensors.

Referenced by sensors_changed(), and sensors_next().

PROCESS ( sensors_process  ,
"Sensors"   
)
void sensors_changed ( const struct sensors_sensor s)
struct sensors_sensor* sensors_find ( const char *  prefix)

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().

unsigned char num_sensors
static
const struct sensors_sensor* sensors[]
process_event_t sensors_event

Referenced by PROCESS_THREAD().

unsigned char sensors_flags[]

Referenced by PROCESS_THREAD(), and sensors_changed().