COIfReset
Description
This function resets the CAN interface and flushes all already buffered CAN frames.
Prototype
void COIfReset(CO_IF *cif);
Parameter | Description |
---|---|
cif | pointer to the interface structure |
Returned Value
none
Example
The following example shows how to reset the interface of the CANopen node AppNode:
: COIfReset (&(AppNode.If)); :
Note: This function resets the interface ONLY. Be careful in calling this function on an active CANopen node on this interface. This can result in unpredictable behavior of the complete system.