9#include "app_PBV_CAN.h"
11#include "../mcc_generated_files/can/can1.h"
@ CAN_TX_MSG_REQUEST_SUCCESS
void PBV_CAN_Link_Data_TX(PBV_Datatype_TX_t *ptr)
Links the data from TX PBV datatype to CAN TX object.
CAN_MSG_OBJ_t PBV_CAN_Object_TX
CAN object for Numeric TX. Initialized by PBV_CAN_Init()
uint8_t PBV_CAN_Receive_from_GUI()
void PBV_CAN_Link_Data_RX(PBV_Datatype_RX_t *ptr)
links the received data to the application data structure
CAN_MSG_OBJ_t PBV_CAN_Object_ASCII
CAN object for ascii TX. Initialized by PBV_CAN_Init()
void PBV_CAN_Reinit(PBV_Datatype_TX_t *ptr)
reinitializes the can object with new can id.
uint8_t PBV_CAN_Transmit_Ascii_to_GUI()
CAN_MSG_OBJ_t PBV_CAN_Object_RX
CAN object for numeric RX. Does not have to be initialized.
uint8_t PBV_CAN_Transmit_to_GUI()
transmits the numerical msg to PBV
@ PBV_SIGNAL_MODE
Object will transmit/receive signals.
@ PBV_MESSAGE_TRANSMITTED
Message transmitted. successful transmit.
@ PBV_MESSAGE_TX_ERROR
if some error happens. unsuccessful transmit
bool CAN1_Receive(struct CAN_MSG_OBJ *rxCanMsg)
Reads the received single message object.
uint8_t CAN1_ReceivedMessageCountGet(void)
Returns the number of CAN messages received in all the FIFO.
enum CAN_TX_MSG_REQUEST_STATUS CAN1_Transmit(const enum CAN1_TX_FIFO_CHANNELS fifoChannel, struct CAN_MSG_OBJ *txCanMsg)
Writes the CAN message object to specified transmit FIFO channel.
This data structure used to configure the CAN FD message object.
struct CAN_MSG_FIELD field
uint32_t PBV_Protcol_ID
Protocol ID.
uint8_t * Data_Buffer
Pointer to the data to be transmitted.
enum PBV_SIGNAL_ASCII_MODE PBV_Signal_Ascii
Object will transmit Signals or ASCII.
uint16_t Length
Length of transmitted message in Bytes.
uint32_t PBV_Protcol_ID
Protocol ID of the received message.
PBV_MESSAGE_RX_STATE_t PBV_Message_State
State of the received message.
uint8_t * Data_Buffer
Received Data pointer.
uint16_t Length
Length of received message in Bytes.