Resets the specified counter.
Gx5732ResetCounter (nHandle, nCounter, 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. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
Counters are disabled and set to continuous mode, 0 value, clock source is zero, gate is enabled, counter port is set to input from counter 0 with load control set to None, Terminal Counter set to Counter 0, Clock are set to 33Mhz with divider set to 1.
The following example resets counter 1:
Gx5732ResetCounter (nHandle, GX5732_COUNTER1, &nStatus);