sensor_devctl_calibrate_u

Structure for requesting sensor calibration.

Synopsis:

typedef union {
    sensor_devctl_enable_tx_t tx;
} sensor_devctl_calibrate_u;

Data:

sensor_devctl_enable_tx_t tx
The device enable structure.

Library:

None.

Description:

The union sensor__devctl__calibrate__u is used with the DCMD_SENSOR_CALIBRATE device command to request the sensor be calibrated.

Example:
sensor_devctl_calibrate_u sensorCal;
sensorCal.tx.enable = 1;  // 1 = Start calibration, 0 = stop calibration
result = devctl(fd, DCMD_SENSOR_CALIBRATE, &sensorCal,
                sizeof(sensorCal), NULL);
                
where:

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

Last modified: 2013-12-21

comments powered by Disqus