C:/nxpdrv/LPC1700CMSIS/Drivers/source/lpc17xx_can.c File Reference
: Contains all functions support for CAN firmware library on LPC17xx More...
#include "lpc17xx_can.h"
#include "lpc17xx_clkpwr.h"
#include "lpc17xx_libcfg_default.h"
Go to the source code of this file.
Functions | |
void | CAN_SetBaudRate (LPC_CAN_TypeDef *CANx, uint32_t baudrate) |
Setting CAN baud rate (bps). | |
void | CAN_Init (LPC_CAN_TypeDef *CANx, uint32_t baudrate) |
Initialize CAN peripheral with given baudrate. | |
void | CAN_DeInit (LPC_CAN_TypeDef *CANx) |
CAN deInit. | |
CAN_ERROR | CAN_SetupAFLUT (LPC_CANAF_TypeDef *CANAFx, AF_SectionDef *AFSection) |
Setup Acceptance Filter Look-Up Table. | |
CAN_ERROR | CAN_LoadExplicitEntry (LPC_CAN_TypeDef *CANx, uint32_t id, CAN_ID_FORMAT_Type format) |
Add Explicit ID into AF Look-Up Table dynamically. | |
CAN_ERROR | CAN_LoadFullCANEntry (LPC_CAN_TypeDef *CANx, uint16_t id) |
Load FullCAN entry into AFLUT. | |
CAN_ERROR | CAN_LoadGroupEntry (LPC_CAN_TypeDef *CANx, uint32_t lowerID, uint32_t upperID, CAN_ID_FORMAT_Type format) |
Load Group entry into AFLUT. | |
CAN_ERROR | CAN_RemoveEntry (AFLUT_ENTRY_Type EntryType, uint16_t position) |
Remove AFLUT entry (FullCAN entry and Explicit Standard entry). | |
Status | CAN_SendMsg (LPC_CAN_TypeDef *CANx, CAN_MSG_Type *CAN_Msg) |
Send message data. | |
Status | CAN_ReceiveMsg (LPC_CAN_TypeDef *CANx, CAN_MSG_Type *CAN_Msg) |
Receive message data. | |
CAN_ERROR | FCAN_ReadObj (LPC_CANAF_TypeDef *CANAFx, CAN_MSG_Type *CAN_Msg) |
Receive FullCAN Object. | |
uint32_t | CAN_GetCTRLStatus (LPC_CAN_TypeDef *CANx, CAN_CTRL_STS_Type arg) |
Get CAN Control Status. | |
uint32_t | CAN_GetCRStatus (LPC_CANCR_TypeDef *CANCRx, CAN_CR_STS_Type arg) |
Get CAN Central Status. | |
void | CAN_IRQCmd (LPC_CAN_TypeDef *CANx, CAN_INT_EN_Type arg, FunctionalState NewState) |
Enable/Disable CAN Interrupt. | |
void | CAN_SetupCBS (CAN_INT_EN_Type arg, fnCANCbs_Type *pnCANCbs) |
Install interrupt call-back function. | |
void | CAN_SetAFMode (LPC_CANAF_TypeDef *CANAFx, CAN_AFMODE_Type AFMode) |
Setting Acceptance Filter mode. | |
void | CAN_ModeConfig (LPC_CAN_TypeDef *CANx, CAN_MODE_Type mode, FunctionalState NewState) |
Enable/Disable CAN Mode. | |
void | CAN_IntHandler (LPC_CAN_TypeDef *CANx) |
Standard CAN interrupt handler, this function will check all interrupt status of CAN channels, then execute the call back function if they're already installed. | |
Variables | |
FunctionalState | FULLCAN_ENABLE |
LPC_CAN_TypeDef * | CAN1x = LPC_CAN1 |
LPC_CAN_TypeDef * | CAN2x = LPC_CAN2 |
LPC_CANAF_RAM_TypeDef * | CANAFRAMx = LPC_CANAF_RAM |
LPC_CANAF_TypeDef * | CANAFx = LPC_CANAF |
const uint32_t | CAN_BIT_TIME [] |
uint16_t | CANAF_FullCAN_cnt = 0 |
uint16_t | CANAF_std_cnt = 0 |
uint16_t | CANAF_gstd_cnt = 0 |
uint16_t | CANAF_ext_cnt = 0 |
uint16_t | CANAF_gext_cnt = 0 |
Detailed Description
: Contains all functions support for CAN firmware library on LPC17xx
- Version:
- : 1.0
- Date:
- : 1.June.2009
- Author:
- : NguyenCao
Definition in file lpc17xx_can.c.
Generated on Mon Feb 8 10:01:41 2010 for LPC1700CMSIS Standard Peripheral Firmware Library by
