sensor_eventmode_t
Event buffering modes
Synopsis:
#include <sensor/sensor_api.h>typedef enum {
SENSOR_EVENTMODE_READONLY,
SENSOR_EVENTMODE_READWRITE,
SENSOR_EVENTMODE_READWRITE_EXCLUSIVE
} sensor_eventmode_t;Data:
- SENSOR_EVENTMODE_READONLY
- Read-only access to the buffers.
- SENSOR_EVENTMODE_READWRITE
- Read-write access to the buffers.
- SENSOR_EVENTMODE_READWRITE_EXCLUSIVE
- Exclusive read-write access to the buffers.
Library:
libsensorDescription:
The event buffering mode dictates the behavior of the buffer argument of sensor_get_buffer() if using events. For callbacks, it affects the behavior of the buffers passed to them.
Page updated:
