CFG_CntrIndicatorControl

CFG_CntrIndicatorControl gets or sets the counters' indicator of the device.

Four types of indicators are provided. When the Indicator is set to OVERCOMPLEVEL/OVERCOMPPULSE, when the counter's count value exceeds the compare data (set in CFG_CntrCompareData) , the indicator will indicate over compare state (level/pulse) ; When the Indicator is set to UNDERCOMPLEVEL/UNDERCOMPPULSE, when the counter's count value below the compare data, the indicator will be on an under compare state (level/pulse).

Description

Type INT32U array
Length 4 bytes for one counter channel
Access type Read/Write
Value Each bit in the element of the array represents on indicator, if the bit is set to or returns "1", means the corresponding indicator is supported by the channel, otherwise it is not.
For example, for a 2-counter-channel device, when the set/returned array is [2,4], which means channel0 support overcomppulse indicator, channel1 supports undercomplevel indicator.

Take the table below for reference.
Bit # 0 1 2 3 4~31
Indicator OVERCOMPLEVEL:
over compare level indicator
OVERCOMPPULSE:
over compare pulse indicator
UNDERCOMPLEVEL:
under compare level indicator
UNDERCOMPPULSE:
under compare pulse indicator
Reserved

See also

DRV_DeviceGetProperty
CFG_CntrCompareData