32 #include "dev/pir-sensor.h"
33 #include "lib/simEnvChange.h"
35 const struct simInterface pir_interface;
36 const struct sensors_sensor pir_sensor;
51 configure(
int type,
int c)
70 return simPirIsActive;
76 doInterfaceActionsBeforeTick(
void)
79 if (simPirIsActive && simPirChanged) {
82 sensors_changed(&pir_sensor);
88 doInterfaceActionsAfterTick(
void)
93 SIM_INTERFACE(pir_interface,
94 doInterfaceActionsBeforeTick,
95 doInterfaceActionsAfterTick);
97 SENSORS_SENSOR(pir_sensor, PIR_SENSOR,
98 value, configure, status);