2.1.5 Functions
void CAN_TP_Initialize (void)
Initializes the CAN-TP layer.
void CAN_TP_EventCallbackSet (CAN_TP_EventCallback callback)
Sets and event callback handler for the CAN-TP events to go to.
void CAN_TP_RxMessageBufferSet (uint8_t *buffer, size_t bufferSize)
Provides the CAN-TP with a buffer to receive messages into.
void CAN_TP_Tasks (void)
Tasks routine that keeps the CAN-TP layer running.
void CAN_TP_Tick (void)
Function that handles all the timed events.
bool CAN_TP_IsMessageReady (void)
Indicates if a message is complete and ready to read.
bool CAN_TP_MessageGet (uint8_t *buffer)
Gets the message received by the CAN-TP layer.
size_t CAN_TP_MessageLengthGet (void)
Gets the length of the available message.
bool CAN_TP_MessageSend (const uint8_t *buffer, size_t length)
Sends a given message using CAN-TP.
void CAN_TP_RxSeparationTimeSet (uint8_t separationTime)
Sets the requested separation time between RX frames.
void CAN_TP_RxBlockSizeSet (uint8_t blockSize)
Sets number of frames to receive in a segmented message before pausing the reception.
void CAN_TP_RxResume (void)
Allows reception to continue after paused because of the block size limit or if Pause on First Frame selection is enabled.
void CAN_TP_RxPause (void)
Pause reception of a segmented at the next FlowControl or FirstFrame packet.
bool CAN_TP_IsRxPaused (void)
Returns true if packet reception is paused.
bool CAN_TP_MaxFrameLengthSet (uint8_t newMax)
Sets the maximum CAN frame allowed.
uint8_t CAN_PHY_ReceivedMessageCountGet (void)
Adaptor method that interfaces with the can method ReceivedMessageCountGet.
bool CAN_PHY_Receive (uint8_t *data, uint8_t *length)
Adaptor method that interfaces with the CAN/CAN-FD method Recieve.
bool CAN_PHY_Transmit (uint32_t messageId, bool isEid, uint8_t *data, uint8_t length)
Adaptor method that interfaces with the CAN/CAN-FD method Transmit.
enum CAN_PHY_TRANSMIT_STATUS CAN_PHY_TransmitStatusGet (void)
Adaptor method that interfaces with the CAN/CAN-FD method TransmitFIFOStatusGet.