Function
Resets a device.
Format
Ret = CntResetDevice ( Id )
Parameters
Id
[C: short] [Python: ctypes.c_short]
Specifies the device ID retrieved from CntInit.
Return Value
Ret [C: long] [Python: ctypes.c_long]
Definition |
Value |
Description |
CNT_ERR_SUCCESS |
0 |
Normal Complete |
CNT_ERR_DLL_INVALID_ID |
10001 |
Invalid ID is specified. |
CNT_ERR_DLL_CALL_DRIVER |
10002 |
Driver cannot be called (failed in ioctl). |
CNT_ERR_SYS_MEMORY |
20000 |
Failed in memory. |
The other errors: (See also: Details of Error Code)
Initial Value
None
Remarks
Initializes the software work area of the
device.
All of the interrupts being used are forbidden when this function is running.
Compare register is 0, counter mode is initialized, match-pulse isn't output.
Example
C |
Ret = CntResetDevice
( Id ); |
Python |
Ret = ccnt.CntResetDevice
( Id ) |
See Also
None