Macros | Functions
can.c File Reference
#include <ti/devices/msp432e4/inc/msp432e411y.h>
#include "types.h"
#include <stdbool.h>
#include <stdint.h>
#include "inc/hw_can.h"
#include "inc/hw_nvic.h"
#include "inc/hw_sysctl.h"
#include "can.h"
#include "debug.h"
#include "interrupt.h"
Include dependency graph for can.c:

Macros

#define CAN_MAX_11BIT_MSG_ID   0x7ff
 
#define CAN_MAX_BIT_DIVISOR   19
 
#define CAN_MIN_BIT_DIVISOR   4
 
#define CAN_MAX_PRE_DIVISOR   1024
 
#define CAN_MIN_PRE_DIVISOR   1
 
#define CAN_BIT_VALUE(seg1, seg2, sjw)
 

Functions

void CANInit (uint32_t ui32Base)
 
void CANEnable (uint32_t ui32Base)
 
void CANDisable (uint32_t ui32Base)
 
void CANBitTimingGet (uint32_t ui32Base, tCANBitClkParms *psClkParms)
 
uint32_t CANBitRateSet (uint32_t ui32Base, uint32_t ui32SourceClock, uint32_t ui32BitRate)
 
void CANBitTimingSet (uint32_t ui32Base, tCANBitClkParms *psClkParms)
 
void CANIntRegister (uint32_t ui32Base, void(*pfnHandler)(void))
 
void CANIntUnregister (uint32_t ui32Base)
 
void CANIntEnable (uint32_t ui32Base, uint32_t ui32IntFlags)
 
void CANIntDisable (uint32_t ui32Base, uint32_t ui32IntFlags)
 
uint32_t CANIntStatus (uint32_t ui32Base, tCANIntStsReg eIntStsReg)
 
void CANIntClear (uint32_t ui32Base, uint32_t ui32IntClr)
 
void CANRetrySet (uint32_t ui32Base, bool bAutoRetry)
 
bool CANRetryGet (uint32_t ui32Base)
 
uint32_t CANStatusGet (uint32_t ui32Base, tCANStsReg eStatusReg)
 
bool CANErrCntrGet (uint32_t ui32Base, uint32_t *pui32RxCount, uint32_t *pui32TxCount)
 
void CANMessageSet (uint32_t ui32Base, uint32_t ui32ObjID, tCANMsgObject *psMsgObject, tMsgObjType eMsgType)
 
void CANMessageGet (uint32_t ui32Base, uint32_t ui32ObjID, tCANMsgObject *psMsgObject, bool bClrPendingInt)
 
void CANMessageClear (uint32_t ui32Base, uint32_t ui32ObjID)
 
Copyright 2018, Texas Instruments Incorporated