set_sensor_metadata_func_t

Updated: April 19, 2023

Feed metadata to the sensor

Synopsis:

#include <sensor/external_sensor_api.h>
typedef int(* set_sensor_metadata_func_t)(void *handle,
            sensor_input_metadata_t *data);

Arguments:

handle
The handle that's returned from calling the function referred to by open_external_sensor_func_t.
data
The buffer containing the metadata to feed

Library:

libsensor

Description:

Sensor specific metadata can be fed to a sensor to provide it with information it needs for proper operation.

Note:

This function is optional.

Returns:

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