TIM_REGISTER_BIT_DEFINITION
[TIM_Private_Macros]
Defines | |
#define | TIM_IR_CLR(n) _BIT(n) |
#define | TIM_MATCH_INT(n) (_BIT(n & 0x0F)) |
#define | TIM_CAP_INT(n) (_BIT(((n & 0x0F) + 4))) |
#define | TIM_ENABLE ((uint32_t)(1<<0)) |
#define | TIM_RESET ((uint32_t)(1<<1)) |
#define | TIM_TCR_MASKBIT ((uint32_t)(3)) |
#define | TIM_INT_ON_MATCH(n) (_BIT((n * 3))) |
#define | TIM_RESET_ON_MATCH(n) (_BIT(((n * 3) + 1))) |
#define | TIM_STOP_ON_MATCH(n) (_BIT(((n * 3) + 2))) |
#define | TIM_MCR_MASKBIT ((uint32_t)(0x0FFF)) |
#define | TIM_MCR_CHANNEL_MASKBIT(n) ((uint32_t)(7<<n)) |
#define | TIM_CAP_RISING(n) (_BIT((n * 3))) |
#define | TIM_CAP_FALLING(n) (_BIT(((n * 3) + 1))) |
#define | TIM_INT_ON_CAP(n) (_BIT(((n * 3) + 2))) |
#define | TIM_EDGE_MASK(n) (_SBF((n * 3), 0x03)) |
#define | TIM_CCR_MASKBIT ((uint32_t)(0x3F)) |
#define | TIM_CCR_CHANNEL_MASKBIT(n) ((uint32_t)(7<<n)) |
#define | TIM_EM(n) _BIT(n) |
#define | TIM_EM_NOTHING ((uint8_t)(0x0)) |
#define | TIM_EM_LOW ((uint8_t)(0x1)) |
#define | TIM_EM_HIGH ((uint8_t)(0x2)) |
#define | TIM_EM_TOGGLE ((uint8_t)(0x3)) |
#define | TIM_EM_SET(n, s) (_SBF(((n << 1) + 4), (s & 0x03))) |
#define | TIM_EM_MASK(n) (_SBF(((n << 1) + 4), 0x03)) |
#define | TIM_EMR_MASKBIT 0x0FFF |
#define | TIM_CTCR_MODE_MASK 0x3 |
#define | TIM_CTCR_INPUT_MASK 0xC |
#define | TIM_CTCR_MASKBIT 0xF |
#define | TIM_COUNTER_MODE ((uint8_t)(1)) |
Define Documentation
#define TIM_CAP_FALLING | ( | n | ) | (_BIT(((n * 3) + 1))) |
Bit location for CAP.n on CRx falling edge, n = 0 to 3
Definition at line 87 of file lpc17xx_timer.h.
#define TIM_CAP_INT | ( | n | ) | (_BIT(((n & 0x0F) + 4))) |
Macro for getting a capture event interrupt bit
Definition at line 56 of file lpc17xx_timer.h.
#define TIM_CAP_RISING | ( | n | ) | (_BIT((n * 3))) |
Bit location for CAP.n on CRx rising edge, n = 0 to 3
Definition at line 85 of file lpc17xx_timer.h.
#define TIM_CCR_CHANNEL_MASKBIT | ( | n | ) | ((uint32_t)(7<<n)) |
Timer Capture control bit mask for specific channel
Definition at line 95 of file lpc17xx_timer.h.
#define TIM_CCR_MASKBIT ((uint32_t)(0x3F)) |
Timer capture control bit mask
Definition at line 93 of file lpc17xx_timer.h.
#define TIM_COUNTER_MODE ((uint8_t)(1)) |
Definition at line 126 of file lpc17xx_timer.h.
#define TIM_CTCR_INPUT_MASK 0xC |
Mask to get the count input select bits
Definition at line 123 of file lpc17xx_timer.h.
#define TIM_CTCR_MASKBIT 0xF |
Timer Count control bit mask
Definition at line 125 of file lpc17xx_timer.h.
#define TIM_CTCR_MODE_MASK 0x3 |
Mask to get the Counter/timer mode bits
Definition at line 121 of file lpc17xx_timer.h.
#define TIM_EDGE_MASK | ( | n | ) | (_SBF((n * 3), 0x03)) |
Mask bit for rising and falling edge bit
Definition at line 91 of file lpc17xx_timer.h.
#define TIM_EM | ( | n | ) | _BIT(n) |
Bit location for output state change of MAT.n when external match happens, n = 0 to 3
Definition at line 102 of file lpc17xx_timer.h.
#define TIM_EM_HIGH ((uint8_t)(0x2)) |
Output state change of MAT.n when external match happens: high
Definition at line 108 of file lpc17xx_timer.h.
#define TIM_EM_LOW ((uint8_t)(0x1)) |
Output state change of MAT.n when external match happens: low
Definition at line 106 of file lpc17xx_timer.h.
#define TIM_EM_MASK | ( | n | ) | (_SBF(((n << 1) + 4), 0x03)) |
Mask for the MAT.n change state bits
Definition at line 114 of file lpc17xx_timer.h.
#define TIM_EM_NOTHING ((uint8_t)(0x0)) |
Output state change of MAT.n when external match happens: no change
Definition at line 104 of file lpc17xx_timer.h.
#define TIM_EM_SET | ( | n, | |||
s | ) | (_SBF(((n << 1) + 4), (s & 0x03))) |
Macro for setting for the MAT.n change state bits
Definition at line 112 of file lpc17xx_timer.h.
#define TIM_EM_TOGGLE ((uint8_t)(0x3)) |
Output state change of MAT.n when external match happens: toggle
Definition at line 110 of file lpc17xx_timer.h.
#define TIM_EMR_MASKBIT 0x0FFF |
Timer external match bit mask
Definition at line 116 of file lpc17xx_timer.h.
#define TIM_ENABLE ((uint32_t)(1<<0)) |
Timer/counter enable bit
Definition at line 62 of file lpc17xx_timer.h.
#define TIM_INT_ON_CAP | ( | n | ) | (_BIT(((n * 3) + 2))) |
Bit location for CAP.n on CRx interrupt enable, n = 0 to 3
Definition at line 89 of file lpc17xx_timer.h.
#define TIM_INT_ON_MATCH | ( | n | ) | (_BIT((n * 3))) |
Bit location for interrupt on MRx match, n = 0 to 3
Definition at line 72 of file lpc17xx_timer.h.
#define TIM_IR_CLR | ( | n | ) | _BIT(n) |
Macro to clean interrupt pending
Definition at line 48 of file lpc17xx_timer.h.
#define TIM_MATCH_INT | ( | n | ) | (_BIT(n & 0x0F)) |
Macro for getting a timer match interrupt bit
Definition at line 54 of file lpc17xx_timer.h.
#define TIM_MCR_CHANNEL_MASKBIT | ( | n | ) | ((uint32_t)(7<<n)) |
Timer Match control bit mask for specific channel
Definition at line 80 of file lpc17xx_timer.h.
#define TIM_MCR_MASKBIT ((uint32_t)(0x0FFF)) |
Timer Match control bit mask
Definition at line 78 of file lpc17xx_timer.h.
#define TIM_RESET ((uint32_t)(1<<1)) |
Timer/counter reset bit
Definition at line 64 of file lpc17xx_timer.h.
#define TIM_RESET_ON_MATCH | ( | n | ) | (_BIT(((n * 3) + 1))) |
Bit location for reset on MRx match, n = 0 to 3
Definition at line 74 of file lpc17xx_timer.h.
#define TIM_STOP_ON_MATCH | ( | n | ) | (_BIT(((n * 3) + 2))) |
Bit location for stop on MRx match, n = 0 to 3
Definition at line 76 of file lpc17xx_timer.h.
#define TIM_TCR_MASKBIT ((uint32_t)(3)) |
Timer control bit mask
Definition at line 66 of file lpc17xx_timer.h.
Generated on Mon Feb 8 10:01:48 2010 for LPC1700CMSIS Standard Peripheral Firmware Library by 1.5.9