Function sh2_setSensorCallback
Defined in File sh2.h
Function Documentation
-
int sh2_setSensorCallback(sh2_SensorCallback_t *callback, void *cookie)
Register a function to receive sensor events.
- Parameters:
callback – A function that will be called each time a sensor event is received.
cookie – A value that will be passed to the sensor callback function.
- Returns:
SH2_OK (0), on success. Negative value from sh2_err.h on error.