Structure for enabling and disabling sensor event batching (DCMD_SENSOR_BATCHING).
typedef union {
sensor_devctl_enable_tx_t tx;
} sensor_devctl_batching_u;
BlackBerry 10.0.0
When enabled and supported by the hardware, sensors will report samples in hardware-specific batch sizes to conserve power.
sensor_devctl_batching_u sensorBatching;
sensorBatching.tx.enable = 1; // 1 = enable, 0 = disable
result = devctl(fd, DCMD_SENSOR_BATCHING,
&sensorBatching, sizeof(sensorBatching), NULL);
where: result is EOK for success (or see errno return code descriptions).