sensor_feed_input_metadata()

Updated: April 19, 2023

Feed metadata to a sensor

Synopsis:

#include <sensor/sensor_api.h>
sensor_error_t sensor_feed_input_metadata(sensor_handle_t handle,
                                          sensor_input_metadata_t *data)

Arguments:

handle
The handle that's returned from calling sensor_open().
data
The buffer with metadata to feed to the sensor.

Library:

libsensor

Description:

Sensor-specific metadata may be fed to a sensor using this function.

Returns:

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