PT_QCounterRead

typedef struct tagPT_QCounterRead
{
    INT16U counter;
    INT16U *overflow;
    INT32U *LoCount;
    INT32U *HiCount;
} PT_QCounterRead, * LPT_QCounterRead;

PT_QCounterRead is used in function DRV_QCounterRead.

Member Description

If the user utilizes the 24-bit counter, non-cascade mode can be used and current count of the corresponding counter will be returned with the LoCount.

If the user utilizes the 48-bit counter, channels 0 and 1 can be cascaded, so that the low 24 bits of current count will be returned with the LoCount and the high 24 bits will be returned with the HiCount.

Name Direction Description
counter input The channel number of the specified counter.
From a minimum of zero for the first channel to the maximum channel number minus one. For example, the range is from 0 to (N-1) on a device with N counter channels.
Overflow output The overflow status of the counter.
1 means overflow, otherwise 0.
LoCount output The low 24-bit data of current count data. For PCI-1784, LoCount means all 32 bit data of current count.
HiCount output The high 24-bit of current count data. For PCI-1784, this parameter is reserved.