sensor_devctl_delay_u

Structure for setting the sensor delay period.

Synopsis:

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

Since:

BlackBerry 10.0.0

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: 2014-05-14



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus