LPCOpen Platform  v1.03
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ccan_18xx_43xx.h File Reference

Go to the source code of this file.

Macros

#define CCAN_SEG1_DEFAULT_VAL   5
 
#define CCAN_SEG2_DEFAULT_VAL   4
 
#define CCAN_SJW_DEFAULT_VAL   0
 

Functions

STATIC INLINE void Chip_CCAN_IntEnable (LPC_CCAN_T *pCCAN, FunctionalState NewState)
 Enable/Disable CCAN Interrupts.
 
STATIC INLINE uint32_t Chip_CCAN_GetIntID (LPC_CCAN_T *pCCAN)
 Get the source ID of an interrupt.
 
STATIC INLINE uint32_t Chip_CCAN_GetStatus (LPC_CCAN_T *pCCAN)
 Get the CCAN status register.
 
STATIC INLINE void Chip_CCAN_GetMsgObject (LPC_CCAN_T *pCCAN, uint8_t msg_num, message_object *msg_buf)
 Get a message object in message RAM into the message buffer.
 
void Chip_CCAN_Init (LPC_CCAN_T *pCCAN)
 Initialize the CCAN peripheral, free all message object in RAM.
 
void Chip_CCAN_DeInit (LPC_CCAN_T *pCCAN)
 De-initialize the CCAN peripheral.
 
void Chip_CCAN_SetBitRate (LPC_CCAN_T *pCCAN, uint32_t bitRate)
 Select bit rate for CCAN bus.
 
void Chip_CCAN_ClearStatus (LPC_CCAN_T *pCCAN, IP_CCAN_STATUS_T status)
 Clear the status of CCAN bus.
 
void Chip_CCAN_ClearIntPend (LPC_CCAN_T *pCCAN, uint8_t msg_num, uint8_t TRxMode)
 Clear the pending interrupt.
 
void Chip_CCAN_Send (LPC_CCAN_T *pCCAN, uint32_t RemoteEnable, message_object *msg_ptr)
 Send a message.
 
void Chip_CCAN_AddReceiveID (LPC_CCAN_T *pCCAN, uint32_t rev_id)
 Register a message ID for receiving.
 
void Chip_CCAN_DeleteReceiveID (LPC_CCAN_T *pCCAN, uint32_t rev_id)
 Remove a registered message ID from receiving.
 

Macro Definition Documentation

#define CCAN_SEG1_DEFAULT_VAL   5

Definition at line 39 of file ccan_18xx_43xx.h.

#define CCAN_SEG2_DEFAULT_VAL   4

Definition at line 40 of file ccan_18xx_43xx.h.

#define CCAN_SJW_DEFAULT_VAL   0

Definition at line 41 of file ccan_18xx_43xx.h.