2.4.10 CAN_TP_MessageGet()

bool CAN_TP_MessageGet (uint8_t * buffer)

Gets the message received by the CAN-TP layer.

This buffer must be at least as large as the message in the buffer.  

The CAN_TP_MessageLengthGet() function can be used to determine the length if required.

Precondition:

CAN_TP_Initialize function should have been called before calling this function.

Parameters:
out buffer

Pointer to the buffer to copy the message into. if NULL, the message will be expired without copying it.

Returns:

bool - true if message was available, false if no message available.