Updated: October 28, 2024 |
Format to represent data when the format is unknown
#include <sensor/sensor_api.h>
typedef struct sensor_format_unspecified_t { uint8_t data[SENSOR_MAX_FORMAT_INFO_SIZE]; } sensor_format_unspecified_t;
The size of the array is defined by the SENSOR_MAX_FORMAT_INFO_SIZE value. This placeholder value ensures that the format-specific information is always padded for forwards compatibility.
This format isn't usually used in the API, but is used to keep a minimum size for the sensor_format_info_t union.