![]() |
M480 BSP
V3.05.001
The Board Support Package for M480 Series
|
M480 series CAN driver source file. More...
#include "NuMicro.h"Go to the source code of this file.
Functions | |
| void | CAN_EnterInitMode (CAN_T *tCAN, uint8_t u8Mask) |
| Enter initialization mode. More... | |
| void | CAN_LeaveInitMode (CAN_T *tCAN) |
| Leave initialization mode. More... | |
| void | CAN_WaitMsg (CAN_T *tCAN) |
| Wait message into message buffer in basic mode. More... | |
| uint32_t | CAN_GetCANBitRate (CAN_T *tCAN) |
| Get current bit rate. More... | |
| void | CAN_EnterTestMode (CAN_T *tCAN, uint8_t u8TestMask) |
| Switch the CAN into test mode. More... | |
| void | CAN_LeaveTestMode (CAN_T *tCAN) |
| Leave the test mode. More... | |
| uint32_t | CAN_IsNewDataReceived (CAN_T *tCAN, uint8_t u8MsgObj) |
| Get the waiting status of a received message. More... | |
| int32_t | CAN_BasicSendMsg (CAN_T *tCAN, STR_CANMSG_T *pCanMsg) |
| Send CAN message in BASIC mode of test mode. More... | |
| int32_t | CAN_BasicReceiveMsg (CAN_T *tCAN, STR_CANMSG_T *pCanMsg) |
| Get a message information in BASIC mode. More... | |
| int32_t | CAN_SetRxMsgObjAndMsk (CAN_T *tCAN, uint8_t u8MsgObj, uint8_t u8idType, uint32_t u32id, uint32_t u32idmask, uint8_t u8singleOrFifoLast) |
| Set Rx message object, include ID mask. More... | |
| int32_t | CAN_SetRxMsgObj (CAN_T *tCAN, uint8_t u8MsgObj, uint8_t u8idType, uint32_t u32id, uint8_t u8singleOrFifoLast) |
| Set Rx message object. More... | |
| int32_t | CAN_ReadMsgObj (CAN_T *tCAN, uint8_t u8MsgObj, uint8_t u8Release, STR_CANMSG_T *pCanMsg) |
| Gets the message. More... | |
| uint32_t | CAN_SetBaudRate (CAN_T *tCAN, uint32_t u32BaudRate) |
| Set bus baud-rate. More... | |
| void | CAN_Close (CAN_T *tCAN) |
| The function is used to disable all CAN interrupt. More... | |
| uint32_t | CAN_Open (CAN_T *tCAN, uint32_t u32BaudRate, uint32_t u32Mode) |
| Set CAN operation mode and target baud-rate. More... | |
| int32_t | CAN_SetTxMsg (CAN_T *tCAN, uint32_t u32MsgNum, STR_CANMSG_T *pCanMsg) |
| The function is used to configure a transmit object. More... | |
| int32_t | CAN_TriggerTxMsg (CAN_T *tCAN, uint32_t u32MsgNum) |
| Set transmit request bit. More... | |
| void | CAN_EnableInt (CAN_T *tCAN, uint32_t u32Mask) |
| Enable CAN interrupt. More... | |
| void | CAN_DisableInt (CAN_T *tCAN, uint32_t u32Mask) |
| Disable CAN interrupt. More... | |
| int32_t | CAN_SetRxMsg (CAN_T *tCAN, uint32_t u32MsgNum, uint32_t u32IDType, uint32_t u32ID) |
| The function is used to configure a receive message object. More... | |
| int32_t | CAN_SetRxMsgAndMsk (CAN_T *tCAN, uint32_t u32MsgNum, uint32_t u32IDType, uint32_t u32ID, uint32_t u32IDMask) |
| The function is used to configure a receive message object. More... | |
| int32_t | CAN_SetMultiRxMsg (CAN_T *tCAN, uint32_t u32MsgNum, uint32_t u32MsgCount, uint32_t u32IDType, uint32_t u32ID) |
| The function is used to configure several receive message objects. More... | |
| int32_t | CAN_Transmit (CAN_T *tCAN, uint32_t u32MsgNum, STR_CANMSG_T *pCanMsg) |
| Send CAN message. More... | |
| int32_t | CAN_Receive (CAN_T *tCAN, uint32_t u32MsgNum, STR_CANMSG_T *pCanMsg) |
| Gets the message, if received. More... | |
| void | CAN_CLR_INT_PENDING_BIT (CAN_T *tCAN, uint8_t u32MsgNum) |
| Clear interrupt pending bit. More... | |
M480 series CAN driver source file.
Definition in file can.c.
1.8.15