sensor_devctl_skipdupevent_u

Structure for enabling or disabling duplicate event filtering.

Synopsis:

typedef union {
    sensor_devctl_enable_tx_t tx;
} sensor_devctl_skipdupevent_u;

Data:

sensor_devctl_enable_tx_t tx
The device enable structure.

Library:

None.

Description:

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.

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

Last modified: 2013-12-21

comments powered by Disqus