fill_format_info_func_t

Identify what values should be set in the info section for the sensor

Synopsis:

#include <sensor/external_sensor_api.h>
typedef int(* fill_format_info_func_t)(void *handle,
            sensor_format_info_t *info,
            uint32_t *infoSize);

Arguments:

handle
The handle that's returned from calling the function referred to by open_external_sensor_func_t.
info
The info section that must be filled by this function.
infoSize
Must be set to the desired size of the info section.

Library:

libsensor

Description:

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).

Returns:

SENSOR_EOK when the function successfully completes; otherwise another sensor_error_t value that provides the reason that the call failed.