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
Request read-only access to the buffers.
SENSOR_EVENTMODE_READWRITE
Request read-write access to the buffers.

When you use this mode, it allows you to modify buffers prior to delivery to callback functions or read-only event consumers.

SENSOR_EVENTMODE_READWRITE_EXCLUSIVE
Request exclusive read-write access to the buffers.

Using this mode, the buffers are mapped read/write but the modified buffers are not shared with other event consumers.

Library:

libsensor

Description:

The event buffering mode dictates the behavior of the inbuffer and outbuffer arguments of the buffer retrieval functions.