Description
This function sends the given CAN frame on the interface without delay.
Prototype
CPU_INT16S COIfSend(CO_IF *cif, CO_IF_FRM *frm);
Parameter | Description |
---|---|
cif | pointer to the interface structure |
frm | pointer to the transmit frame buffer |
Returned Value
>0 the size of CO_IF.FRM
on success
<0 the internal CanBus error code
Example
The send function may be used within the application to transmit additional messages on the CANopen interface. The following example show how to call the transmit function for the interface of the CANopen node AppNode:
Note: Be careful with transmitting additional messages on an active CANopen network. This might result in unpredictable behavior of the complete system.