Versions Compared

Key

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

...

This function is called by the application to send a CAN frame on the opened CAN bus. The function will wait for the buffer to empty out if the buffer is full. The function returns to the application if the buffer doesn't empty within the configured timeout. A timeout value of 0 (standard) means, that the calling function will wait forever for the buffer to empty out..

Prototype

CPU_INT16SINT16S CanBusWrite(CPU_INT16SINT16S   busId,
void *buffer,
CPU_INT16UINT16U size);

Parameter

Meaning

busId

Unique bus identifier

buffer

Pointer to CAN frame of type CANFRM

size

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

...