CONmtReset

Description

This function resets the CANopen device with the given type.

Prototype

void CONmtReset(CO_NMT *nmt, CO_NMT_RESET type);

ParameterDescription
nmtreference to NMT structure
typethe requested NMT reset type

Returned Value

none

Additional Information

The following table shows the possible values of the type CO_NMT.RESET:

ValueDescription
CO_RESET_NODEReset node (application and communication)
CO_RESET_COMReset communication

Example

The following example shows how to request a communication reset of the CANopen node AppNode:


    :
    CONmtReset (&(AppNode.Nmt), CO_RESET_COM);
    :