NexMotion  1.4.0
Open Robots & Machines [WIP]
Watch_Dog_Functions

Functions for watch dog feature. More...

Collaboration diagram for Watch_Dog_Functions:

Functions

RTN_ERR FNTYPE NMC_DeviceWatchdogTimerEnable (I32_T DevID, U32_T TimeoutMs, I32_T Mode)
 Enable the watch dog timer. More...
 
RTN_ERR FNTYPE NMC_DeviceWatchdogTimerDisable (I32_T DevID)
 Disable the watch dog timer. More...
 
RTN_ERR FNTYPE NMC_DeviceWatchdogTimerReset (I32_T DevID)
 Reset the watch dog timer. More...
 

Detailed Description

Functions for watch dog feature.

Function Documentation

RTN_ERR FNTYPE NMC_DeviceWatchdogTimerDisable ( I32_T  DevID)

Disable the watch dog timer.

Parameters
DevIDDevice ID (DevID)
Returns
Return an error code.
If the function is called successfully, the return value is ERR_NEXMOTION_SUCCESS (0). Otherwise, the return value is an error code. All error codes are defined in the header file, NexMotionError.h.

Usage:
Please refer to the section, Watch Dog Timer

Reference:

RTN_ERR FNTYPE NMC_DeviceWatchdogTimerEnable ( I32_T  DevID,
U32_T  TimeoutMs,
I32_T  Mode 
)

Enable the watch dog timer.

Parameters
DevIDDevice ID (DevID)
TimeoutMsTimeout value for the watch dog timer. Unit: milliseconds. Range: 20 to 200000 ms.
ModeTime out mode. 0: Device will transfer to ready state if the device in the operation state.
Returns
Return an error code.
If the function is called successfully, the return value is ERR_NEXMOTION_SUCCESS (0). Otherwise, the return value is an error code. All error codes are defined in the header file, NexMotionError.h.

Usage:
Please refer to the section, Watch Dog Timer

Reference:

RTN_ERR FNTYPE NMC_DeviceWatchdogTimerReset ( I32_T  DevID)

Reset the watch dog timer.

Parameters
DevIDDevice ID (DevID)
Returns
Return an error code.
If the function is called successfully, the return value is ERR_NEXMOTION_SUCCESS (0). Otherwise, the return value is an error code. All error codes are defined in the header file, NexMotionError.h.

Usage:
Please refer to the section, Watch Dog Timer

Reference: