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

devId

device identifier, returned by XXX_Open()

buffer

Pointer to CAN frame of type CANFRM

size

Size of buffer in bytes (must be equal to sizeof(CANFRM))

Return Value

Number of bytes written to buffer or -1 if an error was detected.