47#include "can_interface.h"
64#define CAN_FD1_Initialize CAN1_Initialize
69#define CAN_FD1_Deinitialize CAN1_Deinitialize
74#define CAN_FD1_OperationModeSet CAN1_OperationModeSet
79#define CAN_FD1_OperationModeGet CAN1_OperationModeGet
84#define CAN_FD1_Receive CAN1_Receive
89#define CAN_FD1_ReceiveMessageGet CAN1_ReceiveMessageGet
94#define CAN_FD1_RX_FIFO_StatusGet CAN1_RX_FIFO_StatusGet
99#define CAN_FD1_Transmit CAN1_Transmit
104#define CAN_FD1_TransmitFIFOStatusGet CAN1_TransmitFIFOStatusGet
109#define CAN_FD1_IsBusOff CAN1_IsBusOff
114#define CAN_FD1_IsTxErrorPassive CAN1_IsTxErrorPassive
119#define CAN_FD1_IsTxErrorWarning CAN1_IsTxErrorWarning
124#define CAN_FD1_IsTxErrorActive CAN1_IsTxErrorActive
129#define CAN_FD1_IsRxErrorPassive CAN1_IsRxErrorPassive
134#define CAN_FD1_IsRxErrorWarning CAN1_IsRxErrorWarning
139#define CAN_FD1_IsRxErrorActive CAN1_IsRxErrorActive
144#define CAN_FD1_Sleep CAN1_Sleep
149#define CAN_FD1_ReceivedMessageCountGet CAN1_ReceivedMessageCountGet
154#define CAN_FD1_Tasks CAN1_Tasks
159#define CAN_FD1_InvalidMessageCallbackRegister CAN1_InvalidMessageCallbackRegister
164#define CAN_FD1_BusWakeUpActivityCallbackRegister CAN1_BusWakeUpActivityCallbackRegister
169#define CAN_FD1_BusErrorCallbackRegister CAN1_BusErrorCallbackRegister
174#define CAN_FD1_ModeChangeCallbackRegister CAN1_ModeChangeCallbackRegister
179#define CAN_FD1_SystemErrorCallbackRegister CAN1_SystemErrorCallbackRegister
184#define CAN_FD1_TxAttemptCallbackRegister CAN1_TxAttemptCallbackRegister
189#define CAN_FD1_RxBufferOverFlowCallbackRegister CAN1_RxBufferOverFlowCallbackRegister
196#define CAN1_TX_TXQ CAN1_TXQ
202#define CAN1_RX_FIFO1 CAN1_FIFO_1
This is the generated driver types header file for the CAN driver using CCL.
void CAN1_ModeChangeCallbackRegister(void(*handler)(void))
This function can be used to override default callback and to define custom callback for CAN1_ModeCha...
void CAN1_RxBufferOverFlowCallbackRegister(void(*handler)(void))
This function can be used to override default callback and to define custom callback for CAN1_RxBuffe...
enum CAN_TX_FIFO_STATUS CAN1_TransmitFIFOStatusGet(const enum CAN1_TX_FIFO_CHANNELS fifoChannel)
Returns the CAN1 transmitter FIFO status.
bool CAN1_ReceiveMessageGet(const enum CAN1_RX_FIFO_CHANNELS fifoChannel, struct CAN_MSG_OBJ *rxCanMsg)
Reads the received single message object from the CAN1 receive FIFO.
bool CAN1_IsTxErrorActive(void)
Returns the transmit error active state.
bool CAN1_IsRxErrorWarning(void)
Returns the receive error warning state. If Receiver error counter is above 95 to below 128,...
void CAN1_TxAttemptCallback(void)
This is the default callback with weak attribute. The user can override and implement the default cal...
const struct CAN_INTERFACE CAN_FD1
Structure object of type CAN_INTERFACE with the custom name given by the user in the Melody Driver Us...
void CAN1_Sleep(void)
Sets the CAN node in sleep mode.
uint8_t CAN1_RX_FIFO_StatusGet(const enum CAN1_RX_FIFO_CHANNELS fifoNum)
This returns the CAN1 receive FIFO status.
bool CAN1_Receive(struct CAN_MSG_OBJ *rxCanMsg)
Reads the received single message object.
void CAN1_BusErrorCallbackRegister(void(*handler)(void))
This function can be used to override default callback and to define custom callback for CAN1_BusErro...
void CAN1_SystemErrorCallbackRegister(void(*handler)(void))
This function can be used to override default callback and to define custom callback for CAN1_SystemE...
CAN_TX_FIFO_STATUS
Defines the CAN transmit status get Api return status.
void CAN1_BusWakeUpActivityCallback(void)
This is the default callback with weak attribute. The user can override and implement the default cal...
bool CAN1_IsRxErrorActive(void)
Returns the receive error active state.
CAN_OP_MODE_STATUS
Defines the CAN operation set Api return status.
void CAN1_Tasks(void)
This routine is used to implement the tasks for polled implementations.
void CAN1_SystemErrorCallback(void)
This is the default callback with weak attribute. The user can override and implement the default cal...
bool CAN1_IsRxErrorPassive(void)
Returns the receive error passive state.
void CAN1_ModeChangeCallback(void)
This is the default callback with weak attribute. The user can override and implement the default cal...
void CAN1_InvalidMessageCallback(void)
This is the default callback with weak attribute. The user can override and implement the default cal...
bool CAN1_IsTxErrorWarning(void)
Returns the transmit error warning state. If Transmitter error counter is above 95 to below 128,...
bool CAN1_IsTxErrorPassive(void)
Returns the transmit error passive state.
CAN1_TX_FIFO_CHANNELS
This enumeration defines the can Transmit FIFO Configured in MCC Melody CAN user interface.
uint8_t CAN1_ReceivedMessageCountGet(void)
Returns the number of CAN messages received in all the FIFO.
CAN_TX_MSG_REQUEST_STATUS
Defines the CAN transmit Api return status.
bool CAN1_IsBusOff(void)
Returns the bus off status.
void CAN1_BusErrorCallback(void)
This is the default callback with weak attribute. The user can override and implement the default cal...
void CAN1_RxBufferOverFlowCallback(void)
This is the default callback with weak attribute. The user can override and implement the default cal...
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.
void CAN1_Initialize(void)
Initializes CAN1 module.
void CAN1_InvalidMessageCallbackRegister(void(*handler)(void))
This function can be used to override default callback and to define custom callback for CAN1_Invalid...
CAN_OP_MODES
Defines the CAN operation modes are available for the module to use.
void CAN1_BusWakeUpActivityCallbackRegister(void(*handler)(void))
This function can be used to override default callback and to define custom callback for CAN1_BusWake...
CAN1_RX_FIFO_CHANNELS
This enumeration defines the can receive FIFO.
void CAN1_Deinitialize(void)
Deinitializes CAN1 to POR values.
enum CAN_OP_MODES CAN1_OperationModeGet(void)
Get the CAN1 operation mode.
void CAN1_TxAttemptCallbackRegister(void(*handler)(void))
This function can be used to override default callback and to define custom callback for CAN1_TxAttem...
enum CAN_OP_MODE_STATUS CAN1_OperationModeSet(const enum CAN_OP_MODES requestMode)
Sets the CAN1 operation mode.
Structure containing the function pointers of CAN driver.
This data structure used to configure the CAN FD message object.