CFG_CntrInputModeControl

CFG_CntrInputModeControl gets or sets the counters' input mode of the device.

Description

Type INT32U array
Length 4 bytes for one counter channel
Access type Read/Write
Value Each element in the array represents one input mode.
For example, for a 2-counter device, when the set/returned value is [2,3], which means counter0's input mode is ABPHASEX2 and counter1's input mode is ABPHASEX4.

0 - DISABLE: disable the counter
1 - ABPHASEX1: X1 mode
2 - ABPHASEX2: X2 mode
3 - ABPHASEX4: X4 mode
4 - TWOPULSEIN: two pulse mode
5 - ONEPULSEIN: one pulse mode

See also

DRV_DeviceGetProperty