XXX_Write
Description
This function writes a CAN frame into the CAN controller for transmission.
Prototype
CPU_INT16S XXX_Write(CPU_INT16S devId, CPU_INT08U *buffer, CPU_INT16U 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.