sensor_event_t

Updated: October 26, 2022

Sensor events that you can register

Synopsis:

#include <sensor/sensor_api.h>
typedef enum {
    SENSOR_EVENT_STREAM_STATUS,
    SENSOR_EVENT_RECORD_STATUS,
    SENSOR_EVENT_ENCODED_DATA,
    SENSOR_EVENT_BUFFER,
    SENSOR_EVENT_STREAM_DATA,
    SENSOR_EVENT_VIDEO_DATA,
    SENSOR_EVENT_NUMEVENTS
} sensor_event_t;

Data:

SENSOR_EVENT_STREAM_STATUS
Receive events on the status of the stream.
SENSOR_EVENT_RECORD_STATUS
Receive events on the status of the recording.
SENSOR_EVENT_ENCODED_DATA
Receive events when encoded data is available.
SENSOR_EVENT_BUFFER
Receive events when an interim data buffer is available.
SENSOR_EVENT_STREAM_DATA
Receive events when stream data is available.
SENSOR_EVENT_VIDEO_DATA
Receive events when video data is available.
SENSOR_EVENT_NUMEVENTS
To count the number of supported events.

Library:

libsensor