uc-sdk
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
CAN Public Functions

Functions

void CAN_Init (LPC_CAN_TypeDef *CANx, uint32_t baudrate)
 
void CAN_DeInit (LPC_CAN_TypeDef *CANx)
 
Status CAN_SendMsg (LPC_CAN_TypeDef *CANx, CAN_MSG_Type *CAN_Msg)
 
Status CAN_ReceiveMsg (LPC_CAN_TypeDef *CANx, CAN_MSG_Type *CAN_Msg)
 
CAN_ERROR FCAN_ReadObj (LPC_CANAF_TypeDef *CANAFx, CAN_MSG_Type *CAN_Msg)
 
void CAN_ModeConfig (LPC_CAN_TypeDef *CANx, CAN_MODE_Type mode, FunctionalState NewState)
 
void CAN_SetAFMode (LPC_CANAF_TypeDef *CANAFx, CAN_AFMODE_Type AFmode)
 
void CAN_SetCommand (LPC_CAN_TypeDef *CANx, uint32_t CMRType)
 
CAN_ERROR CAN_SetupAFLUT (LPC_CANAF_TypeDef *CANAFx, AF_SectionDef *AFSection)
 
CAN_ERROR CAN_LoadFullCANEntry (LPC_CAN_TypeDef *CANx, uint16_t ID)
 
CAN_ERROR CAN_LoadExplicitEntry (LPC_CAN_TypeDef *CANx, uint32_t ID, CAN_ID_FORMAT_Type format)
 
CAN_ERROR CAN_LoadGroupEntry (LPC_CAN_TypeDef *CANx, uint32_t lowerID, uint32_t upperID, CAN_ID_FORMAT_Type format)
 
CAN_ERROR CAN_RemoveEntry (AFLUT_ENTRY_Type EntryType, uint16_t position)
 
void CAN_IRQCmd (LPC_CAN_TypeDef *CANx, CAN_INT_EN_Type arg, FunctionalState NewState)
 
uint32_t CAN_IntGetStatus (LPC_CAN_TypeDef *CANx)
 
IntStatus CAN_FullCANIntGetStatus (LPC_CANAF_TypeDef *CANAFx)
 
uint32_t CAN_FullCANPendGetStatus (LPC_CANAF_TypeDef *CANAFx, FullCAN_IC_Type type)
 
uint32_t CAN_GetCTRLStatus (LPC_CAN_TypeDef *CANx, CAN_CTRL_STS_Type arg)
 
uint32_t CAN_GetCRStatus (LPC_CANCR_TypeDef *CANCRx, CAN_CR_STS_Type arg)
 

Detailed Description

Function Documentation

void CAN_DeInit ( LPC_CAN_TypeDef CANx)
IntStatus CAN_FullCANIntGetStatus ( LPC_CANAF_TypeDef CANAFx)
uint32_t CAN_FullCANPendGetStatus ( LPC_CANAF_TypeDef CANAFx,
FullCAN_IC_Type  type 
)
uint32_t CAN_GetCRStatus ( LPC_CANCR_TypeDef CANCRx,
CAN_CR_STS_Type  arg 
)
uint32_t CAN_GetCTRLStatus ( LPC_CAN_TypeDef CANx,
CAN_CTRL_STS_Type  arg 
)
void CAN_Init ( LPC_CAN_TypeDef CANx,
uint32_t  baudrate 
)
uint32_t CAN_IntGetStatus ( LPC_CAN_TypeDef CANx)
void CAN_IRQCmd ( LPC_CAN_TypeDef CANx,
CAN_INT_EN_Type  arg,
FunctionalState  NewState 
)
CAN_ERROR CAN_LoadExplicitEntry ( LPC_CAN_TypeDef CANx,
uint32_t  ID,
CAN_ID_FORMAT_Type  format 
)
CAN_ERROR CAN_LoadFullCANEntry ( LPC_CAN_TypeDef CANx,
uint16_t  ID 
)
CAN_ERROR CAN_LoadGroupEntry ( LPC_CAN_TypeDef CANx,
uint32_t  lowerID,
uint32_t  upperID,
CAN_ID_FORMAT_Type  format 
)
void CAN_ModeConfig ( LPC_CAN_TypeDef CANx,
CAN_MODE_Type  mode,
FunctionalState  NewState 
)
Status CAN_ReceiveMsg ( LPC_CAN_TypeDef CANx,
CAN_MSG_Type CAN_Msg 
)
CAN_ERROR CAN_RemoveEntry ( AFLUT_ENTRY_Type  EntryType,
uint16_t  position 
)
Status CAN_SendMsg ( LPC_CAN_TypeDef CANx,
CAN_MSG_Type CAN_Msg 
)
void CAN_SetAFMode ( LPC_CANAF_TypeDef CANAFx,
CAN_AFMODE_Type  AFmode 
)
void CAN_SetCommand ( LPC_CAN_TypeDef CANx,
uint32_t  CMRType 
)
CAN_ERROR CAN_SetupAFLUT ( LPC_CANAF_TypeDef CANAFx,
AF_SectionDef AFSection 
)
CAN_ERROR FCAN_ReadObj ( LPC_CANAF_TypeDef CANAFx,
CAN_MSG_Type CAN_Msg 
)