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