LPCOpen Platform  v1.03
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
can.c File Reference
#include "board.h"

Go to the source code of this file.

Macros

#define CAN_CTRL_NO   0
 
#define LPC_CAN   (LPC_CAN1)
 
#define AF_LUT_USED   1
 
#define FULL_CAN_AF_USED   1
 
#define CAN_TX_MSG_STD_ID   (0x200)
 
#define CAN_TX_MSG_REMOTE_STD_ID   (0x300)
 
#define CAN_TX_MSG_EXT_ID   (0x10000200)
 
#define CAN_RX_MSG_ID   (0x100)
 

Functions

static void PrintCANErrorInfo (uint32_t Status)
 
static void PrintCANMsg (CAN_MSG_T *pMsg)
 
static void ReplyRemoteMessage (CAN_MSG_T *pRcvMsg)
 
static void ReplyNormalMessage (CAN_MSG_T *pRcvMsg)
 
static void PrintAFLUT (void)
 
static void SetupAFLUT (void)
 
static void ChangeAFLUT (void)
 
void CAN_IRQHandler (void)
 
int main (void)
 Main program body.
 

Variables

static char WelcomeMenu []
 
CAN_STD_ID_ENTRY_T FullCANSection []
 
CAN_STD_ID_ENTRY_T SFFSection []
 
CAN_STD_ID_RANGE_ENTRY_T SffGrpSection []
 
CAN_EXT_ID_ENTRY_T EFFSection []
 
CAN_EXT_ID_RANGE_ENTRY_T EffGrpSection []
 
CANAF_LUT_T AFSections