CFG_CntrChannelCapability

CFG_CntrChannelCapability gets the specified counters' channel capabilities of the device. The capability could be Event Counting, Frequency measurement, pulse width measurement, timer interrupt, Counter interrupt, pulse width modulation, output pulse, output frequency, watchdog timer, cascade with next counter, cascade with previous counter.

Description

Type INT32U array
Length 4 bytes for one counter channel
Access type Read
Value Each bit in the element (LONG) of the array represents one capability.
If the bit returns "1", means the corresponding capability is supported by the counter, otherwise it is not supported by the counter.
For example, for a device with 2 counters, the size of the array is 2;  when the returned array is [2,5], which means counter0 has the capability of frequency measurement, and counter1 has the capability of event counting and pulse width measurement.
Bit # 0 1 2 3
capability CNTR_ChlCap_EventCounting:
event counting
CNTR_ChlCap_FreqMeasurement:
frequency measurement
CNTR_ChlCap_PulseWidthMeasurement:
pulse width measurement
CNTR_ChlCap_TimerInterrupt:
timer interrupt
Bit # 4 5 6 7
capability CNTR_ChlCap_CounterInterrupt:
counter interrupt
CNTR_ChlCap_PulseWidthModulation:
pulse width modulation
CNTR_ChlCap_PulseOut:
output pulse
CNTR_ChlCap_FreqOut:
output frequency
Bit # 8 9 10 11~31
capability CNTR_ChlCap_WatchDogTimer:
watch dog timer
CNTR_ChlCap_CascadeWithNext:
cascade with next counter
CNTR_Chlcascade with previous counterCap_CascadeWithPrev:
 
Reserved

See also

DRV_DeviceGetProperty