sensor_status_callback_t
Prototype for a callback function that receives sensor status updates
Synopsis:
#include <sensor/sensor_api.h>typedef void(* sensor_status_callback_t)(sensor_handle_t handle,
sensor_devstatus_t status,
uint16_t extra,
void *arg);Arguments:
- handle
- The handle returned by a call to sensor_open().
- status
- The status of the sensor, as a sensor_devstatus_t value.
- extra
- Extra sensor event status information; see the individual status descriptions in sensor_devstatus_t for more information.
- arg
- The user argument provided when you call sensor_register_status_callback().
Library:
libsensorDescription:
This callback function is invoked when the status of the sensor changes for the sensor event that you've registered for. Register a callback function of this type by calling sensor_register_status_callback().
Returns:
Return true if successful, otherwise false.
Page updated:
