Returns whether the counter is enabled.
Gx5732GetCounterEnable (nHandle, nCounter, pbEnable, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to a GX5732 board. |
nCounter |
SHORT |
Counter number:0. GX5732_COUNTER0: Counter 0.1. GX5732_COUNTER1: Counter 1.2. GX5732_COUNTER2: Counter 2.3. GX5732_COUNTER3: Counter 3. |
pbEnable |
PBOOL |
Enabled state:0. FALSE: Counter is disable1. TRUE: Counter is enabled. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
Use the Gx5732SetCounterEnable to enable the counter.
The following check if counter 3 is enabled:
SHORT nStatus;
BOOL bEnable;
Gx5732GetCounterEnable (nHandle, GX5732_COUNTER3, &bEnable,
&nStatus);