sensor_pause()

Suspend the delivery of events from the sensor to the thread.

Synopsis:

#include <sensor/libsensor.h>
 
int sensor_pause(sensor_t *sensor)

Arguments:

sensor

The sensor to modify.

Library:

libsensor

Description:

This function effectively disables the sensor. The sensor can be re-enabled and the delivery of events can be resumed by calling sensor_resume().

Returns:

EOK on success, an errno value otherwise.

Last modified: 2013-12-21

comments powered by Disqus