CAN_Public_Macros
[CAN]
Defines | |
#define | PARAM_CANx(x) |
#define | PARAM_CANAFx(x) (((uint32_t*)x)== ((uint32_t*)LPC_CANAF)) |
#define | PARAM_CANAFRAMx(x) (((uint32_t*)x)== (uint32_t*)LPC_CANAF_RAM) |
#define | PARAM_CANCRx(x) (((uint32_t*)x)==((uint32_t*)LPC_CANCR)) |
#define | PARAM_I2S_DATA(data) ((data>=0)&&(data <= 0xFFFFFFFF)) |
#define | PRAM_I2S_FREQ(freq) ((freq>=16000)&&(freq <= 96000)) |
#define | PARAM_RD1_PIN(n) ((n==CAN_RD1_P0_0)||(n==CAN_RD1_P0_21)) |
#define | PARAM_TD1_PIN(n) ((n==CAN_TD1_P0_1)||(n==CAN_TD1_P0_22)) |
#define | PARAM_RD2_PIN(n) ((n==CAN_RD2_P0_4)||(n==CAN_RD2_P2_7)) |
#define | PARAM_TD2_PIN(n) ((n==CAN_TD2_P0_5)||(n==CAN_TD2_P2_8)) |
#define | PARAM_ID_11(n) ((n>>11)==0) |
#define | PARAM_ID_29(n) ((n>>29)==0) |
#define | PARAM_DLC(n) ((n>>4)==0) |
#define | PARAM_ID_FORMAT(n) ((n==STD_ID_FORMAT)||(n==EXT_ID_FORMAT)) |
#define | PARAM_GRP_ID(x, y) ((x<=y)) |
#define | PARAM_FRAME_TYPE(n) ((n==DATA_FRAME)||(n==REMOTE_FRAME)) |
#define | PARAM_CTRL_STS_TYPE(n) |
#define | PARAM_CR_STS_TYPE(n) |
#define | PARAM_AFMODE_TYPE(n) |
#define | PARAM_MODE_TYPE(n) |
#define | CAN1_CTRL ((uint8_t)(0)) |
#define | CAN2_CTRL ((uint8_t)(1)) |
#define | PARAM_CTRL(n) ((n==CAN1_CTRL)|(n==CAN2_CTRL)) |
#define | MSG_ENABLE ((uint8_t)(0)) |
#define | MSG_DISABLE ((uint8_t)(1)) |
#define | PARAM_MSG_DISABLE(n) ((n==MSG_ENABLE)|(n==MSG_DISABLE)) |
#define | PARAM_INT_EN_TYPE(n) |
#define | PARAM_AFLUT_ENTRY_TYPE(n) |
#define | PARAM_POSITION(n) ((n>=0)&&(n<512)) |
#define | CAN_RD1_P0_0 ((uint8_t)(0)) |
#define | CAN_RD1_P0_21 ((uint8_t)(1)) |
#define | CAN_TD1_P0_1 ((uint8_t)(0)) |
#define | CAN_TD1_P0_22 ((uint8_t)(1)) |
#define | CAN_RD2_P0_4 ((uint8_t)(0)) |
#define | CAN_RD2_P2_7 ((uint8_t)(1)) |
#define | CAN_TD2_P0_5 ((uint8_t)(0)) |
#define | CAN_TD2_P2_8 ((uint8_t)(1)) |
Define Documentation
#define CAN1_CTRL ((uint8_t)(0)) |
Macro define for struct AF_Section parameter
Definition at line 769 of file lpc17xx_can.h.
#define CAN2_CTRL ((uint8_t)(1)) |
Definition at line 770 of file lpc17xx_can.h.
#define CAN_RD1_P0_0 ((uint8_t)(0)) |
CAN function pin selection defines
Definition at line 792 of file lpc17xx_can.h.
#define CAN_RD1_P0_21 ((uint8_t)(1)) |
Definition at line 793 of file lpc17xx_can.h.
#define CAN_RD2_P0_4 ((uint8_t)(0)) |
Definition at line 797 of file lpc17xx_can.h.
#define CAN_RD2_P2_7 ((uint8_t)(1)) |
Definition at line 798 of file lpc17xx_can.h.
#define CAN_TD1_P0_1 ((uint8_t)(0)) |
Definition at line 794 of file lpc17xx_can.h.
#define CAN_TD1_P0_22 ((uint8_t)(1)) |
Definition at line 795 of file lpc17xx_can.h.
#define CAN_TD2_P0_5 ((uint8_t)(0)) |
Definition at line 799 of file lpc17xx_can.h.
#define CAN_TD2_P2_8 ((uint8_t)(1)) |
Definition at line 800 of file lpc17xx_can.h.
#define MSG_DISABLE ((uint8_t)(1)) |
Definition at line 774 of file lpc17xx_can.h.
#define MSG_ENABLE ((uint8_t)(0)) |
Definition at line 773 of file lpc17xx_can.h.
#define PARAM_AFLUT_ENTRY_TYPE | ( | n | ) |
Value:
((n==FULLCAN_ENTRY)||(n==EXPLICIT_STANDARD_ENTRY)\ ||(n==GROUP_STANDARD_ENTRY)||(n==EXPLICIT_EXTEND_ENTRY) \ ||(n==GROUP_EXTEND_ENTRY))
Definition at line 786 of file lpc17xx_can.h.
#define PARAM_AFMODE_TYPE | ( | n | ) |
Value:
((n==CAN_Normal)||(n==CAN_AccOff) \ ||(n==CAN_AccBP)||(n==CAN_eFCAN))
Definition at line 760 of file lpc17xx_can.h.
#define PARAM_CANAFRAMx | ( | x | ) | (((uint32_t*)x)== (uint32_t*)LPC_CANAF_RAM) |
Definition at line 732 of file lpc17xx_can.h.
#define PARAM_CANAFx | ( | x | ) | (((uint32_t*)x)== ((uint32_t*)LPC_CANAF)) |
Definition at line 731 of file lpc17xx_can.h.
#define PARAM_CANCRx | ( | x | ) | (((uint32_t*)x)==((uint32_t*)LPC_CANCR)) |
Definition at line 733 of file lpc17xx_can.h.
#define PARAM_CANx | ( | x | ) |
Value:
Macro to determine if it is valid CAN peripheralDefinition at line 728 of file lpc17xx_can.h.
#define PARAM_CR_STS_TYPE | ( | n | ) |
Value:
((n==CANCR_TX_STS)||(n==CANCR_RX_STS) \ ||(n==CANCR_MS))
Definition at line 757 of file lpc17xx_can.h.
#define PARAM_CTRL | ( | n | ) | ((n==CAN1_CTRL)|(n==CAN2_CTRL)) |
Definition at line 771 of file lpc17xx_can.h.
#define PARAM_CTRL_STS_TYPE | ( | n | ) |
Value:
((n==CANCTRL_GLOBAL_STS)||(n==CANCTRL_INT_CAP) \ ||(n==CANCTRL_ERR_WRN)||(n==CANCTRL_STS))
Definition at line 755 of file lpc17xx_can.h.
#define PARAM_DLC | ( | n | ) | ((n>>4)==0) |
Definition at line 749 of file lpc17xx_can.h.
#define PARAM_FRAME_TYPE | ( | n | ) | ((n==DATA_FRAME)||(n==REMOTE_FRAME)) |
Definition at line 752 of file lpc17xx_can.h.
#define PARAM_GRP_ID | ( | x, | |||
y | ) | ((x<=y)) |
Definition at line 751 of file lpc17xx_can.h.
#define PARAM_I2S_DATA | ( | data | ) | ((data>=0)&&(data <= 0xFFFFFFFF)) |
Macro to check Data to send valid
Definition at line 736 of file lpc17xx_can.h.
#define PARAM_ID_11 | ( | n | ) | ((n>>11)==0) |
Macro to check Frame Identifier
Definition at line 746 of file lpc17xx_can.h.
#define PARAM_ID_29 | ( | n | ) | ((n>>29)==0) |
Definition at line 747 of file lpc17xx_can.h.
#define PARAM_ID_FORMAT | ( | n | ) | ((n==STD_ID_FORMAT)||(n==EXT_ID_FORMAT)) |
Definition at line 750 of file lpc17xx_can.h.
#define PARAM_INT_EN_TYPE | ( | n | ) |
Value:
((n==CANINT_RIE)||(n==CANINT_TIE1) \ ||(n==CANINT_EIE)||(n==CANINT_DOIE) \ ||(n==CANINT_WUIE)||(n==CANINT_EPIE) \ ||(n==CANINT_ALIE)||(n==CANINT_BEIE) \ ||(n==CANINT_IDIE)||(n==CANINT_TIE2) \ ||(n==CANINT_TIE3)||(n==CANINT_FCE))
Definition at line 778 of file lpc17xx_can.h.
#define PARAM_MODE_TYPE | ( | n | ) |
Value:
((n==CAN_OPERATING_MODE)||(n==CAN_RESET_MODE) \ ||(n==CAN_LISTENONLY_MODE)||(n==CAN_SELFTEST_MODE) \ ||(n==CAN_TXPRIORITY_MODE)||(n==CAN_SLEEP_MODE) \ ||(n==CAN_RXPOLARITY_MODE)||(n==CAN_TEST_MODE))
Definition at line 763 of file lpc17xx_can.h.
#define PARAM_MSG_DISABLE | ( | n | ) | ((n==MSG_ENABLE)|(n==MSG_DISABLE)) |
Definition at line 775 of file lpc17xx_can.h.
#define PARAM_POSITION | ( | n | ) | ((n>=0)&&(n<512)) |
Definition at line 789 of file lpc17xx_can.h.
#define PARAM_RD1_PIN | ( | n | ) | ((n==CAN_RD1_P0_0)||(n==CAN_RD1_P0_21)) |
Macro to check Pin Selection value
Definition at line 740 of file lpc17xx_can.h.
#define PARAM_RD2_PIN | ( | n | ) | ((n==CAN_RD2_P0_4)||(n==CAN_RD2_P2_7)) |
Definition at line 742 of file lpc17xx_can.h.
#define PARAM_TD1_PIN | ( | n | ) | ((n==CAN_TD1_P0_1)||(n==CAN_TD1_P0_22)) |
Definition at line 741 of file lpc17xx_can.h.
#define PARAM_TD2_PIN | ( | n | ) | ((n==CAN_TD2_P0_5)||(n==CAN_TD2_P2_8)) |
Definition at line 743 of file lpc17xx_can.h.
#define PRAM_I2S_FREQ | ( | freq | ) | ((freq>=16000)&&(freq <= 96000)) |
Definition at line 737 of file lpc17xx_can.h.
Generated on Mon Feb 8 10:01:43 2010 for LPC1700CMSIS Standard Peripheral Firmware Library by 1.5.9