sensor_streamprop_t

Sensor streaming properties

Synopsis:

#include <sensor/sensor_api.h>
typedef enum {
    SENSOR_STREAMPROP_END = -1,
    SENSOR_STREAMPROP_FORMAT,
    SENSOR_STREAMPROP_COORD_SYSTEM,
    SENSOR_STREAMPROP_BUFFER_SIZE
} sensor_streamprop_t;

Data:

SENSOR_STREAMPROP_END
The end-of-list identifier.
SENSOR_STREAMPROP_FORMAT
The sensor buffer format.

The value is a sensor_format_t value.

SENSOR_STREAMPROP_COORD_SYSTEM
The coordinate system of the sensor, which indicates if the Sensor service is applied a transform or not.

The value is a sensor_coord_system_t value.

SENSOR_STREAMPROP_BUFFER_SIZE
The buffer size, in bytes, of the data payload of the sensor_buffer_t.

The value is a uint64_t value.

Library:

libsensor

Description:

These properties are used as keys for the sensor_get_streaming_property() function. Each key is associated with a value of the indicated type.