sensor_set_batching()

Enable or disable batching mode.

Synopsis:

#include <sensor/libsensor.h>
 
int sensor_set_batching(sensor_t *sensor, bool enable)

Arguments:

sensor

The sensor to modify.

enable

1 to enable batching mode, or 0 to disable it.

Library:

libsensor

Description:

When batching is enabled and supported by the hardware, sensors will report samples in hardware-specific batch sizes to conserve power.

Returns:

EOK on success, an errno value otherwise.

Last modified: 2013-12-21

comments powered by Disqus