PWM_Public_Types
[PWM]
Data Structures | |
struct | PWM_TIMERCFG_Type |
Configuration structure in PWM TIMER mode. More... | |
struct | PWM_COUNTERCFG_Type |
Configuration structure in PWM COUNTER mode. More... | |
struct | PWM_MATCHCFG_Type |
PWM Match channel configuration structure. More... | |
struct | PWM_CAPTURECFG_Type |
PWM Capture Input configuration structure. More... | |
Defines | |
#define | PARAM_PWMx(n) (((uint32_t *)n)==((uint32_t *)LPC_PWM1)) |
#define | PARAM_PWM1_MATCH_CHANNEL(n) ((n>=0) && (n<=6)) |
#define | PARAM_PWM1_CHANNEL(n) ((n>=1) && (n<=6)) |
#define | PARAM_PWM1_EDGE_MODE_CHANNEL(n) ((n>=2) && (n<=6)) |
#define | PARAM_PWM1_CAPTURE_CHANNEL(n) ((n==0) || (n==1)) |
#define | PARAM_PWM_TC_MODE(n) ((n==PWM_MODE_TIMER) || (n==PWM_MODE_COUNTER)) |
#define | PARAM_PWM_TIMER_PRESCALE(n) ((n==PWM_TIMER_PRESCALE_TICKVAL) || (n==PWM_TIMER_PRESCALE_USVAL)) |
#define | PARAM_PWM_COUNTER_INPUTSEL(n) ((n==PWM_COUNTER_PCAP1_0) || (n==PWM_COUNTER_PCAP1_1)) |
#define | PARAM_PWM_COUNTER_EDGE(n) |
#define | PARAM_PWM_CHANNEL_EDGE(n) ((n==PWM_CHANNEL_SINGLE_EDGE) || (n==PWM_CHANNEL_DUAL_EDGE)) |
#define | PARAM_PWM_MATCH_UPDATE(n) ((n==PWM_MATCH_UPDATE_NOW) || (n==PWM_MATCH_UPDATE_NEXT_RST)) |
#define | PARAM_PWM_INTSTAT(n) |
Enumerations | |
enum | PWM_TC_MODE_OPT { PWM_MODE_TIMER = 0, PWM_MODE_COUNTER } |
PMW TC mode select option. More... | |
enum | PWM_TIMER_PRESCALE_OPT { PWM_TIMER_PRESCALE_TICKVAL = 0, PWM_TIMER_PRESCALE_USVAL } |
PWM Timer/Counter prescale option. More... | |
enum | PWM_COUNTER_INPUTSEL_OPT { PWM_COUNTER_PCAP1_0 = 0, PWM_COUNTER_PCAP1_1 } |
PWM Input Select in counter mode. More... | |
enum | PWM_COUNTER_EDGE_OPT { PWM_COUNTER_RISING = 1, PWM_COUNTER_FALLING = 2, PWM_COUNTER_ANY = 3 } |
PWM Input Edge Option in counter mode. More... | |
enum | PWM_CHANNEL_EDGE_OPT { PWM_CHANNEL_SINGLE_EDGE, PWM_CHANNEL_DUAL_EDGE } |
PWM operating mode options. More... | |
enum | PWM_MATCH_UPDATE_OPT { PWM_MATCH_UPDATE_NOW = 0, PWM_MATCH_UPDATE_NEXT_RST } |
PWM update type. More... | |
enum | PWM_INTSTAT_TYPE { PWM_INTSTAT_MR0 = PWM_IR_PWMMRn(0), PWM_INTSTAT_MR1 = PWM_IR_PWMMRn(1), PWM_INTSTAT_MR2 = PWM_IR_PWMMRn(2), PWM_INTSTAT_MR3 = PWM_IR_PWMMRn(3), PWM_INTSTAT_CAP0 = PWM_IR_PWMCAPn(0), PWM_INTSTAT_CAP1 = PWM_IR_PWMCAPn(1), PWM_INTSTAT_MR4 = PWM_IR_PWMMRn(4), PWM_INTSTAT_MR6 = PWM_IR_PWMMRn(5), PWM_INTSTAT_MR5 = PWM_IR_PWMMRn(6) } |
PWM interrupt status type definition -----------------------------------------------------. More... |
Define Documentation
#define PARAM_PWM1_CAPTURE_CHANNEL | ( | n | ) | ((n==0) || (n==1)) |
Definition at line 213 of file lpc17xx_pwm.h.
#define PARAM_PWM1_CHANNEL | ( | n | ) | ((n>=1) && (n<=6)) |
Definition at line 211 of file lpc17xx_pwm.h.
#define PARAM_PWM1_EDGE_MODE_CHANNEL | ( | n | ) | ((n>=2) && (n<=6)) |
Definition at line 212 of file lpc17xx_pwm.h.
#define PARAM_PWM1_MATCH_CHANNEL | ( | n | ) | ((n>=0) && (n<=6)) |
Definition at line 210 of file lpc17xx_pwm.h.
#define PARAM_PWM_CHANNEL_EDGE | ( | n | ) | ((n==PWM_CHANNEL_SINGLE_EDGE) || (n==PWM_CHANNEL_DUAL_EDGE)) |
Definition at line 263 of file lpc17xx_pwm.h.
#define PARAM_PWM_COUNTER_EDGE | ( | n | ) |
Value:
((n==PWM_COUNTER_RISING) || (n==PWM_COUNTER_FALLING) \ || (n==PWM_COUNTER_ANY))
Definition at line 252 of file lpc17xx_pwm.h.
#define PARAM_PWM_COUNTER_INPUTSEL | ( | n | ) | ((n==PWM_COUNTER_PCAP1_0) || (n==PWM_COUNTER_PCAP1_1)) |
Definition at line 243 of file lpc17xx_pwm.h.
#define PARAM_PWM_INTSTAT | ( | n | ) |
Value:
((n==PWM_INTSTAT_MR0) || (n==PWM_INTSTAT_MR1) || (n==PWM_INTSTAT_MR2) \ || (n==PWM_INTSTAT_MR3) || (n==PWM_INTSTAT_MR4) || (n==PWM_INTSTAT_MR5) \ || (n==PWM_INTSTAT_MR6) || (n==PWM_INTSTAT_CAP0) || (n==PWM_INTSTAT_CAP1))
Definition at line 291 of file lpc17xx_pwm.h.
#define PARAM_PWM_MATCH_UPDATE | ( | n | ) | ((n==PWM_MATCH_UPDATE_NOW) || (n==PWM_MATCH_UPDATE_NEXT_RST)) |
Definition at line 273 of file lpc17xx_pwm.h.
#define PARAM_PWM_TC_MODE | ( | n | ) | ((n==PWM_MODE_TIMER) || (n==PWM_MODE_COUNTER)) |
Definition at line 224 of file lpc17xx_pwm.h.
#define PARAM_PWM_TIMER_PRESCALE | ( | n | ) | ((n==PWM_TIMER_PRESCALE_TICKVAL) || (n==PWM_TIMER_PRESCALE_USVAL)) |
Definition at line 234 of file lpc17xx_pwm.h.
#define PARAM_PWMx | ( | n | ) | (((uint32_t *)n)==((uint32_t *)LPC_PWM1)) |
Macro to determine if it is valid PWM peripheral
Definition at line 208 of file lpc17xx_pwm.h.
Enumeration Type Documentation
enum PWM_CHANNEL_EDGE_OPT |
PWM operating mode options.
- Enumerator:
-
PWM_CHANNEL_SINGLE_EDGE PWM Channel Single edge mode PWM_CHANNEL_DUAL_EDGE PWM Channel Dual edge mode
Definition at line 258 of file lpc17xx_pwm.h.
enum PWM_COUNTER_EDGE_OPT |
PWM Input Edge Option in counter mode.
- Enumerator:
-
PWM_COUNTER_RISING Rising edge mode PWM_COUNTER_FALLING Falling edge mode PWM_COUNTER_ANY Both rising and falling mode
Definition at line 246 of file lpc17xx_pwm.h.
PWM Input Select in counter mode.
- Enumerator:
-
PWM_COUNTER_PCAP1_0 PWM Counter input selected is PCAP1.0 pin PWM_COUNTER_PCAP1_1 PWM counter input selected is CAP1.1 pin
Definition at line 238 of file lpc17xx_pwm.h.
enum PWM_INTSTAT_TYPE |
PWM interrupt status type definition -----------------------------------------------------.
PWM Interrupt status type
- Enumerator:
Definition at line 278 of file lpc17xx_pwm.h.
enum PWM_MATCH_UPDATE_OPT |
PWM update type.
- Enumerator:
-
PWM_MATCH_UPDATE_NOW PWM Match Channel Update Now PWM_MATCH_UPDATE_NEXT_RST PWM Match Channel Update on next PWM Counter resetting
Definition at line 267 of file lpc17xx_pwm.h.
enum PWM_TC_MODE_OPT |
PWM Timer/Counter prescale option.
- Enumerator:
-
PWM_TIMER_PRESCALE_TICKVAL Prescale in absolute value PWM_TIMER_PRESCALE_USVAL Prescale in microsecond value
Definition at line 228 of file lpc17xx_pwm.h.
Generated on Mon Feb 8 10:01:46 2010 for LPC1700CMSIS Standard Peripheral Firmware Library by 1.5.9