uc-sdk
|
Classes | |
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... | |
Macros | |
#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)) |
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 PARAM_PWM_CHANNEL_EDGE | ( | n) | ((n==PWM_CHANNEL_SINGLE_EDGE) || (n==PWM_CHANNEL_DUAL_EDGE)) |
Definition at line 260 of file lpc17xx_pwm.h.
#define PARAM_PWM_COUNTER_EDGE | ( | n) |
Definition at line 249 of file lpc17xx_pwm.h.
#define PARAM_PWM_COUNTER_INPUTSEL | ( | n) | ((n==PWM_COUNTER_PCAP1_0) || (n==PWM_COUNTER_PCAP1_1)) |
Definition at line 240 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 270 of file lpc17xx_pwm.h.
#define PARAM_PWM_TC_MODE | ( | n) | ((n==PWM_MODE_TIMER) || (n==PWM_MODE_COUNTER)) |
Definition at line 221 of file lpc17xx_pwm.h.
#define PARAM_PWM_TIMER_PRESCALE | ( | n) | ((n==PWM_TIMER_PRESCALE_TICKVAL) || (n==PWM_TIMER_PRESCALE_USVAL)) |
Definition at line 231 of file lpc17xx_pwm.h.
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 255 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 243 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 235 of file lpc17xx_pwm.h.
enum PWM_INTSTAT_TYPE |
PWM interrupt status type definition -----------------------------------------------——.
PWM Interrupt status type
Definition at line 275 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 264 of file lpc17xx_pwm.h.
enum PWM_TC_MODE_OPT |
PMW TC mode select option.
Enumerator | |
---|---|
PWM_MODE_TIMER |
PWM using Timer mode |
PWM_MODE_COUNTER |
PWM using Counter mode |
Definition at line 216 of file lpc17xx_pwm.h.
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 225 of file lpc17xx_pwm.h.