NXP's driver library for LPC17xx, ported to mbed's online compiler. Not tested! I had to fix a lot of warings and found a couple of pretty obvious bugs, so the chances are there are more. Original: http://ics.nxp.com/support/documents/microcontrollers/zip/lpc17xx.cmsis.driver.library.zip
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... | |
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... |
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 |
PMW TC mode select option.
Definition at line 219 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 228 of file lpc17xx_pwm.h.
Generated on Tue Jul 12 2022 17:06:03 by 1.7.2