sensor_devctl_batching_u

Structure for enabling and disabling sensor event batching (DCMD_SENSOR_BATCHING).

Synopsis:

typedef union {
    sensor_devctl_enable_tx_t tx;
} sensor_devctl_batching_u;

Since:

BlackBerry 10.0.0

Data:

sensor_devctl_enable_tx_t tx
The device enable structure.

Library:

None.

Description:

When enabled and supported by the hardware, sensors will report samples in hardware-specific batch sizes to conserve power.

Example:
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).

Last modified: 2014-05-14



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus