CONmtReset
Description
This function resets the CANopen device with the given type.
Prototype
void CONmtReset(CO_NMT *nmt, CO_NMT_RESET type);
Parameter | Description |
---|---|
nmt | reference to NMT structure |
type | the requested NMT reset type |
Returned Value
none
Additional Information
The following table shows the possible values of the type CO_NMT.RESET
:
Value | Description |
---|---|
CO_RESET_NODE | Reset node (application and communication) |
CO_RESET_COM | Reset communication |
Example
The following example shows how to request a communication reset of the CANopen node AppNode:
: CONmtReset (&(AppNode.Nmt), CO_RESET_COM); :