...
This function writes a CAN frame into the CAN controller for transmission.
Prototype
CPU_INT16SINT16S XXX_WriteWrite(CPU_INT16SINT16S devId,
CPU_INT08UINT08U *buffer,
CPU_INT16UINT16U size);
Parameter | Meaning |
---|---|
| device identifier, returned by |
| Pointer to CAN frame of type |
| Size of buffer in bytes (must be equal to |
Return Value
Number of bytes written to buffer or -1 if an error was detected.