[][src]Module msp430fr2x5x_hal::pwm

PWM ports

Configures the board's TimerB peripherals into PWM ports. Each PWM port consists of multiple PWM pins which all share the same period but have their own duty cycles.

Each PWM pin starts off in an "uninitialized" state and must be initialized by passing in the appropriate alternate-function GPIO pin. Only initialized pins can be used for PWM.

Re-exports

pub use crate::timer::CapCmp;
pub use crate::timer::TimerConfig;
pub use crate::timer::TimerPeriph;

Structs

CCR0

Label for capture-compare register 0

CCR1

Label for capture-compare register 1

CCR2

Label for capture-compare register 2

CCR3

Label for capture-compare register 3

CCR4

Label for capture-compare register 4

CCR5

Label for capture-compare register 5

CCR6

Label for capture-compare register 6

Pwm

An initialized Pwm pin

PwmParts3

Collection of uninitialized PWM pins derived from timer peripheral with 3 capture-compare registers

PwmParts7

Collection of uninitialized PWM pins derived from timer peripheral with 7 capture-compare registers

PwmUninit

Uninitialized PWM pin

Enums

TimerDiv

Timer clock divider

TimerExDiv

Timer expansion clock divider, applied on top of the normal clock divider

Traits

PwmPeriph

Associates PWM pins with specific GPIO pins