sensor_get_metadata_limits()

Retrieve limit values for given metadata type

Synopsis:

#include <sensor/sensor_api.h>
sensor_error_t sensor_get_metadata_limits(sensor_handle_t handle,
                                          sensor_metadata_type_t metadata_type,
                                          sensor_metadata_limits_t *limits)

Arguments:

handle
The handle that's returned from calling sensor_open().
metadata_type
The specific metadata type to query.
limits
The buffer which contains metadata limit values.

Library:

libsensor

Description:

The value limits->metadata_supported is set to true if the metadata is supported by the sensor, false otherwise. If the metadata is supported, the other fields in limits specify the supported limit for this metadata

Returns:

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