Register a sigevent to be signalled when an event occurs
#include <sensor/sensor_api.h>
sensor_error_t sensor_enable_event(sensor_handle_t handle, sensor_event_t event, sensor_eventmode_t mode, sensor_eventkey_t *key, struct sigevent *sigev)
The mode is ignored for status events. For more information, see the note in sensor_register_data_callback() for limitations for the data events.
SENSOR_EOK when the function successfully completes, otherwise another sensor_error_t value that provides the reason that the call failed.