sensor_devctl_enable_u

Structure for enabling or disabling a sensor.

Synopsis:

typedef union {
    sensor_devctl_enable_tx_t tx;
} sensor_devctl_enable_u;

Data:

sensor_devctl_enable_tx_t tx
The device enable structure.

Library:

None.

Description:

The union sensor__devctl__enable__u is used with the DCMD_SENSOR_ENABLE device command to enable/disable the sensor, based on the value of tx.enable.

Example usage:
sensor_devctl_enable_u enSensor;
enSensor.tx.enable = 1;  // 1 = enable, 0 = disable
result = devctl(fd, DCMD_SENSOR_ENABLE, &enSensor, sizeof(enSensor),
                NULL);
                
where:

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

Last modified: 2013-12-21

comments powered by Disqus