28 lines
890 B
C
28 lines
890 B
C
|
|
#ifndef CORE_INCLUDE_IVEC_MCAL_MCAN_H_
|
|
#define CORE_INCLUDE_IVEC_MCAL_MCAN_H_
|
|
|
|
#include "ti_msp_dl_config.h"
|
|
#include "..\utils\utils.h"
|
|
|
|
typedef enum
|
|
{
|
|
STD_ID = 0x00,
|
|
EXT_ID = 0x01,
|
|
ERROR = 0x02
|
|
} xCanIdType_t;
|
|
|
|
|
|
|
|
IVEC_McalStatus_e xMCAL_MCANInit(MCAN_Regs* const mcan, xCAN_baud_t BAUD);
|
|
IVEC_McalStatus_e xMCAL_MCANDeInit(MCAN_Regs* const mcan);
|
|
IVEC_McalStatus_e xMCAL_MCANTx(MCAN_Regs *MCAN, DL_MCAN_TxBufElement *TxMsg ,uint16_t *TxData, uint32_t BufNum, int Bytes);
|
|
IVEC_McalStatus_e xMCAL_MCANRx(MCAN_Regs *MCAN, DL_MCAN_RxBufElement *RxMsg ,uint32_t FifoNum,uint8_t *RxData,int DLC);
|
|
IVEC_McalStatus_e xMCAL_getMCAN_ErrorStatus(char *ErrorStatus);
|
|
IVEC_McalStatus_e xMCAL_getMCAN_InterruptLine1Status(uint32_t *Interrupt_Status);
|
|
|
|
void mcu_FDCAN_RxFifo_Callback(uint32_t Identifier, uint8_t *data, uint16_t DataLength);
|
|
|
|
|
|
#endif /* CORE_INCLUDE_IVEC_MCAL_MCAN_H_ */
|