chg-stn-motherboard-ti-mcu/Core/Include/ivec_mcal_mcan.h

17 lines
710 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"
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);
#endif /* CORE_INCLUDE_IVEC_MCAL_MCAN_H_ */