sensor_devctl_delay_u

Structure for setting the sensor delay period.

Synopsis:

typedef union {
    struct {
        uint32_t delay;
    } tx, rx;
} sensor_devctl_delay_u;

Data:

uint32_t delay
The delay period (in microseconds).

Library:

None.

Description:

The union sensor__devctl__delay__u is used with the DCMD_SENSOR_DELAY device command to set the sensor delay period.

Example usage:
sensor_devctl_delay_u delaySet;
delaySet.txt.delay = myValue;
result = devctl(fd, DCMD_SENSOR_DELAY, &delaySet, sizeof(delaySet),
                NULL);
        
where:

delaySet.tx.delay is the delay period (in microseconds) that is requested.

delaySet.rx.delay is the delay period (in microseconds) that the system granted.

result is EOK for success (or see errno return code descriptions); EINVAL when an invalid delay parameter is passed (in which case the sensor will use the closest valid delay).

Last modified: 2013-12-21

comments powered by Disqus