Structure for requesting sensor calibration.
typedef union {
sensor_devctl_enable_tx_t tx;
} sensor_devctl_calibrate_u;
BlackBerry 10.0.0
The union sensor__devctl__calibrate__u is used with the DCMD_SENSOR_CALIBRATE device command to request the sensor be calibrated.
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).