Updated: October 28, 2024 |
Identify what values should be set in the info section for the sensor
#include <sensor/external_sensor_api.h>
typedef int(* fill_format_info_func_t)(void *handle, sensor_format_info_t *info, uint32_t *infoSize);
The info section is a format-specific section of the sensor_buffer_t. The caller has filled in some fields, but expects this function to fill in the proper values for the info->data.entry_size and info->data.flags. As well, by default infoSize is set to sizeof(sensor_format_data_t).
SENSOR_EOK when the function successfully completes; otherwise another sensor_error_t value that provides the reason that the call failed.