sensor_devstatus_t
Status of the sensor device
Synopsis:
#include <sensor/sensor_api.h>typedef enum {
SENSOR_STATUS_IDLE = 0,
SENSOR_STATUS_DISCONNECTED,
SENSOR_STATUS_CONNECTED,
SENSOR_STATUS_STREAMING = 5,
SENSOR_STATUS_RECORDING_ERROR,
SENSOR_STATUS_NOSPACE_ERROR = 8,
SENSOR_STATUS_QUEUE_OVERFLOW = 20,
SENSOR_STATUS_STREAMING_ACTIVE = 27,
SENSOR_STATUS_BUFFER_UNDERFLOW,
SENSOR_STATUS_STREAMING_ERROR,
SENSOR_STATUS_BUFFER_AVAILABLE,
SENSOR_STATUS_PUBLISHER_DISCONNECTED,
SENSOR_STATUS_DELAYED_START_FAILURE,
SENSOR_STATUS_DELAYED_STOP_FAILURE,
SENSOR_STATUS_PHYSICAL_REMOVAL = 34
} sensor_devstatus_t;Data:
- SENSOR_STATUS_IDLE
- The sensor is idle with no users connected to it.
- SENSOR_STATUS_DISCONNECTED
- The application has disconnected from the sensor.
- SENSOR_STATUS_CONNECTED
- An application has connected to the sensor.
- SENSOR_STATUS_STREAMING
- The sensor has started streaming.
- SENSOR_STATUS_RECORDING_ERROR
- The recording has stopped due to an error encountered.
- SENSOR_STATUS_NOSPACE_ERROR
- The recording has stopped because there's no more disk space available.
- SENSOR_STATUS_QUEUE_OVERFLOW
- A buffer was dropped internally because the application is unable to process a callback in time or an internal error occurred.
- SENSOR_STATUS_STREAMING_ACTIVE
- Streaming is active and working properly.
- SENSOR_STATUS_BUFFER_UNDERFLOW
- The stream is out of buffers and can't stream any further buffers until a buffer is freed.
- SENSOR_STATUS_STREAMING_ERROR
- An unexpected error was encountered while streaming.
- SENSOR_STATUS_BUFFER_AVAILABLE
- For sensor interim data, this indicates that a buffer for the publisher is now available by calling sensor_interim_data_alloc().
- SENSOR_STATUS_PUBLISHER_DISCONNECTED
- For sensor interim data, this indicates to the subscriber that the publisher has disconnected.
- SENSOR_STATUS_DELAYED_START_FAILURE
- An error was encountered while doing a delayed stream start.
- SENSOR_STATUS_DELAYED_STOP_FAILURE
- An error was encountered while doing a delayed stream stop.
- SENSOR_STATUS_PHYSICAL_REMOVAL
- The device has been physically disconnected from the platform.
Library:
libsensorDescription:
These values are delivered to your status callback functions whenever the state of the sensor changes. You can also call sensor_get_status_details() to get the state information.
Page updated:
