If it is necessary to reset the counter status, use the function AioResetCntStatus.
Ret = AioResetCntStatus ( Id , CntChannel , CntStatus )
Sets the channel number of counter in the CntChannel.
Specifies the status to reset in the CntStatus.
CntStatus has the following meanings in bit, it can be specified by a combination
of these bits.
Status |
Macro |
Value |
Comparison count match |
CNTS_DATA_NUM |
00000010H |
Overrun |
CNTS_ORERR |
00010000H |