Retrieve the status details from a status event
#include <sensor/sensor_api.h>
sensor_error_t sensor_get_status_details(sensor_handle_t handle, union sigval value, sensor_devstatus_t *devstatus, uint16_t *devstatusextra)
Use this function to parse device status details from the sigval returned by a status event.
Status events are enabled using sensor_enable_event().
SENSOR_EOK when the function successfully completes, otherwise another sensor_error_t value that provides the reason that the call failed.