sensor_get_delay()

Get the sensor delay between events.

Synopsis:

#include <sensor/libsensor.h>
 
int sensor_get_delay(sensor_t *sensor, uint32_t *delay)

Arguments:

sensor

The sensor to access.

delay

The delay (in microseconds).

Library:

libsensor

Description:

This function returns the sensor delay between events (i.e., the period of time that elapses before the sensor delivers the next event).

Returns:

EOK on success, an errno value otherwise.

See also:

sensor_set_delay() has not been called, the default delay is returned. Otherwise, the rate set by sensor_set_delay() is returned. Note that the rate returned may be different than what was set.

Last modified: 2013-12-21

comments powered by Disqus