Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

devId

device identifier, returned by XXX_OpenOpen()

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.