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

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

PWM_Public_Types

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

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.

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.

PWM interrupt status type definition -----------------------------------------------------.

PWM Interrupt status type

Enumerator:
PWM_INTSTAT_MR0 

Interrupt flag for PWM match channel 0.

PWM_INTSTAT_MR1 

Interrupt flag for PWM match channel 1.

PWM_INTSTAT_MR2 

Interrupt flag for PWM match channel 2.

PWM_INTSTAT_MR3 

Interrupt flag for PWM match channel 3.

PWM_INTSTAT_CAP0 

Interrupt flag for capture input 0.

PWM_INTSTAT_CAP1 

Interrupt flag for capture input 1.

PWM_INTSTAT_MR4 

Interrupt flag for PWM match channel 4.

PWM_INTSTAT_MR6 

Interrupt flag for PWM match channel 5.

PWM_INTSTAT_MR5 

Interrupt flag for PWM match channel 6.

Definition at line 278 of file lpc17xx_pwm.h.

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.

PMW TC mode select option.

Enumerator:
PWM_MODE_TIMER 

PWM using Timer mode

PWM_MODE_COUNTER 

PWM using Counter mode

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.