sensor_devctl_unblock_u

Structure for unblocking a blocked sensor read.

Synopsis:

typedef union {
    struct {
        int option;
    } tx;
} sensor_devctl_unblock_u;

Data:

int option
Set to 0 to unblock a sensor read.

Library:

None.

Description:

The union sensor__devctl__unblock__u is used with the DCMD_SENSOR_UNBLOCK device command to unblock a sensor read.

Example usage:
sensor_devctl_unblock_u sensorUnblock;
sensorUnblock.tx.option = 0;         // unblock client read with EINTR, zero bytes returned
result = devctl(fd, DCMD_SENSOR_UNBLOCK, &sensorUnblock,
                sizeof(sensorUnblock), NULL);
                
where:

result is EOK for success (or see errno return code descriptions).

Last modified: 2013-12-21

comments powered by Disqus