sensor_status_callback_t

Callback function that receives status

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 the sensor_open() function.
status
The status of the sensor.
extra
Additional information that's related to an event status; See sensor_devstatus_t for more information.
arg
The user-supplied argument provided when you call sensor_register_status_callback().

Library:

libsensor

Description:

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:

true if successful, false otherwise.