Structure for enabling or disabling duplicate event filtering.
typedef union {
sensor_devctl_enable_tx_t tx;
} sensor_devctl_skipdupevent_u;
BlackBerry 10.0.0
The union sensor__devctl__skipdupevent__u is used with the DCMD_SENSOR_SKIPDUPEVENT device command to enable/disable duplicate event filtering. When enabled, any exactly duplicate events from the sensor are filtered. Some sensor hardware supports reduced reporting, which filters events that are the same within a certain threshold.
sensor_devctl_skipdupevent_u sensorSkipDup;
sensorSkipDup.tx.enable = 1; // 1 = enable filtering, 0 = disable
result = devctl(fd, DCMD_SENSOR_SKIPDUPEVENT, &sensorSkipDup,
sizeof(sensorSkipDup), NULL);
where: result is EOK for success (or see errno return code descriptions).