ACC_HW_MODE (Compact 2013)
3/26/2014
This enumeration provides values that define the hardware mode of the accelerometer.
Syntax
typedef enum
{
ACC_HW_MODE_UNKNOWN,
ACC_HW_MODE_STREAMING,
ACC_HW_MODE_HWORIENTATION_DETECT,
} ACC_HW_MODE;
Members
- ACC_HW_MODE_UNKNOWN
Invalid value.
- ACC_HW_MODE_STREAMING
If platform-dependent driver (PDD) power is on, immediately begins streaming accelerometer samples to the model device driver (MDD) using the rate indicated by the dwIntervalMs parameter of the PDDModeSet function. If PDD power is off, waits until power is turned on.
- ACC_HW_MODE_HWORIENTATION_DETECT
If PDD power is on, immediately stops streaming data to the MDD and begins detecting orientation. If PDD power is off, waits until power is turned on.
Remarks
Note that an accelerometer driver does not need to support ACC_HW_MODE_HWORIENTATION_DETECT in order for the device to support orientation-sensing mode (ACC_CONFIG_ORIENTATION_MODE). If there is no direct hardware support for orientation detection, it is possible to emulate the behavior to support orientation-sensing mode using software.
Requirements
Library |
accmdd.lib |