Contiki-NG
reed-sensor.h File Reference

Header file for the reed sensor. More...

#include "lib/sensors.h"

Go to the source code of this file.

Detailed Description

Header file for the reed sensor.

The Reed sensor allows to be used either by polling the sensor status or by setting up a timer on the background ticking every REED_CHECK_PERIOD, posting a reed_sensor_event_changed event, informing the application about a change in the sensor status (basically open or closed). To enable each mode (default is polling) call the configure() function with REED_SENSOR_MODE using REED_SENSOR_EVENT_MODE or REED_SENSOR_POLL_MODE, after having initialized the device using SENSORS_ACTIVATE(reed_sensor).

    Reed sensor header file
Author
Antonio Lignan alina.nosp@m.n@zo.nosp@m.lerti.nosp@m.a.co.nosp@m.m

Definition in file reed-sensor.h.