Contiki-NG
Files

Files

file  motion-sensor.c
 Digital motion sensor driver.
 
file  motion-sensor.h
 Digital motion sensor header file.
 

Motion sensor return and operation values

#define MOTION_ACTIVE   SENSORS_ACTIVE
 
#define MOTION_SUCCESS   0
 
#define MOTION_ERROR   (-1)
 

Motion sensor interrupt callback macro

void(* presence_int_callback )(uint8_t value)
 
#define MOTION_REGISTER_INT(ptr)   presence_int_callback = ptr;
 

Detailed Description