pub struct Pwm<OCMP, TIMEBASE> { /* private fields */ }Expand description
Output compare modules configured for PWM
Implementations§
Source§impl Pwm<OCMP1, TimebaseUninit>
impl Pwm<OCMP1, TimebaseUninit>
Source§impl<TIMEBASE> Pwm<OCMP1, TIMEBASE>
impl<TIMEBASE> Pwm<OCMP1, TIMEBASE>
Sourcepub fn timebase16even(self) -> Pwm<OCMP1, Timebase16even>
pub fn timebase16even(self) -> Pwm<OCMP1, Timebase16even>
Select the even numbered 16-bit timer as the time base.
Sourcepub fn timebase16odd(self) -> Pwm<OCMP1, Timebase16odd>
pub fn timebase16odd(self) -> Pwm<OCMP1, Timebase16odd>
Select the odd numbered 16-bit timer as the time base.
Sourcepub fn timebase32(self) -> Pwm<OCMP1, Timebase32>
pub fn timebase32(self) -> Pwm<OCMP1, Timebase32>
Select both 16-bit timers as a 32-bit time base.
Source§impl Pwm<OCMP2, TimebaseUninit>
impl Pwm<OCMP2, TimebaseUninit>
Source§impl<TIMEBASE> Pwm<OCMP2, TIMEBASE>
impl<TIMEBASE> Pwm<OCMP2, TIMEBASE>
Sourcepub fn timebase16even(self) -> Pwm<OCMP2, Timebase16even>
pub fn timebase16even(self) -> Pwm<OCMP2, Timebase16even>
Select the even numbered 16-bit timer as the time base.
Sourcepub fn timebase16odd(self) -> Pwm<OCMP2, Timebase16odd>
pub fn timebase16odd(self) -> Pwm<OCMP2, Timebase16odd>
Select the odd numbered 16-bit timer as the time base.
Sourcepub fn timebase32(self) -> Pwm<OCMP2, Timebase32>
pub fn timebase32(self) -> Pwm<OCMP2, Timebase32>
Select both 16-bit timers as a 32-bit time base.
Source§impl Pwm<OCMP3, TimebaseUninit>
impl Pwm<OCMP3, TimebaseUninit>
Source§impl<TIMEBASE> Pwm<OCMP3, TIMEBASE>
impl<TIMEBASE> Pwm<OCMP3, TIMEBASE>
Sourcepub fn timebase16even(self) -> Pwm<OCMP3, Timebase16even>
pub fn timebase16even(self) -> Pwm<OCMP3, Timebase16even>
Select the even numbered 16-bit timer as the time base.
Sourcepub fn timebase16odd(self) -> Pwm<OCMP3, Timebase16odd>
pub fn timebase16odd(self) -> Pwm<OCMP3, Timebase16odd>
Select the odd numbered 16-bit timer as the time base.
Sourcepub fn timebase32(self) -> Pwm<OCMP3, Timebase32>
pub fn timebase32(self) -> Pwm<OCMP3, Timebase32>
Select both 16-bit timers as a 32-bit time base.
Source§impl Pwm<OCMP4, TimebaseUninit>
impl Pwm<OCMP4, TimebaseUninit>
Source§impl<TIMEBASE> Pwm<OCMP4, TIMEBASE>
impl<TIMEBASE> Pwm<OCMP4, TIMEBASE>
Sourcepub fn timebase16even(self) -> Pwm<OCMP4, Timebase16even>
pub fn timebase16even(self) -> Pwm<OCMP4, Timebase16even>
Select the even numbered 16-bit timer as the time base.
Sourcepub fn timebase16odd(self) -> Pwm<OCMP4, Timebase16odd>
pub fn timebase16odd(self) -> Pwm<OCMP4, Timebase16odd>
Select the odd numbered 16-bit timer as the time base.
Sourcepub fn timebase32(self) -> Pwm<OCMP4, Timebase32>
pub fn timebase32(self) -> Pwm<OCMP4, Timebase32>
Select both 16-bit timers as a 32-bit time base.
Source§impl Pwm<OCMP5, TimebaseUninit>
impl Pwm<OCMP5, TimebaseUninit>
Source§impl<TIMEBASE> Pwm<OCMP5, TIMEBASE>
impl<TIMEBASE> Pwm<OCMP5, TIMEBASE>
Sourcepub fn timebase16even(self) -> Pwm<OCMP5, Timebase16even>
pub fn timebase16even(self) -> Pwm<OCMP5, Timebase16even>
Select the even numbered 16-bit timer as the time base.
Sourcepub fn timebase16odd(self) -> Pwm<OCMP5, Timebase16odd>
pub fn timebase16odd(self) -> Pwm<OCMP5, Timebase16odd>
Select the odd numbered 16-bit timer as the time base.
Sourcepub fn timebase32(self) -> Pwm<OCMP5, Timebase32>
pub fn timebase32(self) -> Pwm<OCMP5, Timebase32>
Select both 16-bit timers as a 32-bit time base.
Trait Implementations§
Source§impl PwmPin for Pwm<OCMP1, Timebase16even>
impl PwmPin for Pwm<OCMP1, Timebase16even>
Source§fn get_max_duty(&self) -> Self::Duty
fn get_max_duty(&self) -> Self::Duty
Source§impl PwmPin for Pwm<OCMP1, Timebase16odd>
impl PwmPin for Pwm<OCMP1, Timebase16odd>
Source§fn get_max_duty(&self) -> Self::Duty
fn get_max_duty(&self) -> Self::Duty
Source§impl PwmPin for Pwm<OCMP1, Timebase32>
impl PwmPin for Pwm<OCMP1, Timebase32>
Source§fn get_max_duty(&self) -> Self::Duty
fn get_max_duty(&self) -> Self::Duty
Source§impl PwmPin for Pwm<OCMP2, Timebase16even>
impl PwmPin for Pwm<OCMP2, Timebase16even>
Source§fn get_max_duty(&self) -> Self::Duty
fn get_max_duty(&self) -> Self::Duty
Source§impl PwmPin for Pwm<OCMP2, Timebase16odd>
impl PwmPin for Pwm<OCMP2, Timebase16odd>
Source§fn get_max_duty(&self) -> Self::Duty
fn get_max_duty(&self) -> Self::Duty
Source§impl PwmPin for Pwm<OCMP2, Timebase32>
impl PwmPin for Pwm<OCMP2, Timebase32>
Source§fn get_max_duty(&self) -> Self::Duty
fn get_max_duty(&self) -> Self::Duty
Source§impl PwmPin for Pwm<OCMP3, Timebase16even>
impl PwmPin for Pwm<OCMP3, Timebase16even>
Source§fn get_max_duty(&self) -> Self::Duty
fn get_max_duty(&self) -> Self::Duty
Source§impl PwmPin for Pwm<OCMP3, Timebase16odd>
impl PwmPin for Pwm<OCMP3, Timebase16odd>
Source§fn get_max_duty(&self) -> Self::Duty
fn get_max_duty(&self) -> Self::Duty
Source§impl PwmPin for Pwm<OCMP3, Timebase32>
impl PwmPin for Pwm<OCMP3, Timebase32>
Source§fn get_max_duty(&self) -> Self::Duty
fn get_max_duty(&self) -> Self::Duty
Source§impl PwmPin for Pwm<OCMP4, Timebase16even>
impl PwmPin for Pwm<OCMP4, Timebase16even>
Source§fn get_max_duty(&self) -> Self::Duty
fn get_max_duty(&self) -> Self::Duty
Source§impl PwmPin for Pwm<OCMP4, Timebase16odd>
impl PwmPin for Pwm<OCMP4, Timebase16odd>
Source§fn get_max_duty(&self) -> Self::Duty
fn get_max_duty(&self) -> Self::Duty
Source§impl PwmPin for Pwm<OCMP4, Timebase32>
impl PwmPin for Pwm<OCMP4, Timebase32>
Source§fn get_max_duty(&self) -> Self::Duty
fn get_max_duty(&self) -> Self::Duty
Source§impl PwmPin for Pwm<OCMP5, Timebase16even>
impl PwmPin for Pwm<OCMP5, Timebase16even>
Source§fn get_max_duty(&self) -> Self::Duty
fn get_max_duty(&self) -> Self::Duty
Source§impl PwmPin for Pwm<OCMP5, Timebase16odd>
impl PwmPin for Pwm<OCMP5, Timebase16odd>
Source§fn get_max_duty(&self) -> Self::Duty
fn get_max_duty(&self) -> Self::Duty
Source§impl PwmPin for Pwm<OCMP5, Timebase32>
impl PwmPin for Pwm<OCMP5, Timebase32>
Source§fn get_max_duty(&self) -> Self::Duty
fn get_max_duty(&self) -> Self::Duty
Source§impl SetDutyCycle for Pwm<OCMP1, Timebase16even>
impl SetDutyCycle for Pwm<OCMP1, Timebase16even>
Source§fn max_duty_cycle(&self) -> u16
fn max_duty_cycle(&self) -> u16
Source§fn set_duty_cycle(&mut self, duty: u16) -> Result<(), Self::Error>
fn set_duty_cycle(&mut self, duty: u16) -> Result<(), Self::Error>
duty / max_duty. Read moreSource§fn set_duty_cycle_fully_off(&mut self) -> Result<(), Self::Error>
fn set_duty_cycle_fully_off(&mut self) -> Result<(), Self::Error>
Source§fn set_duty_cycle_fully_on(&mut self) -> Result<(), Self::Error>
fn set_duty_cycle_fully_on(&mut self) -> Result<(), Self::Error>
Source§impl SetDutyCycle for Pwm<OCMP1, Timebase16odd>
impl SetDutyCycle for Pwm<OCMP1, Timebase16odd>
Source§fn max_duty_cycle(&self) -> u16
fn max_duty_cycle(&self) -> u16
Source§fn set_duty_cycle(&mut self, duty: u16) -> Result<(), Self::Error>
fn set_duty_cycle(&mut self, duty: u16) -> Result<(), Self::Error>
duty / max_duty. Read moreSource§fn set_duty_cycle_fully_off(&mut self) -> Result<(), Self::Error>
fn set_duty_cycle_fully_off(&mut self) -> Result<(), Self::Error>
Source§fn set_duty_cycle_fully_on(&mut self) -> Result<(), Self::Error>
fn set_duty_cycle_fully_on(&mut self) -> Result<(), Self::Error>
Source§impl SetDutyCycle for Pwm<OCMP2, Timebase16even>
impl SetDutyCycle for Pwm<OCMP2, Timebase16even>
Source§fn max_duty_cycle(&self) -> u16
fn max_duty_cycle(&self) -> u16
Source§fn set_duty_cycle(&mut self, duty: u16) -> Result<(), Self::Error>
fn set_duty_cycle(&mut self, duty: u16) -> Result<(), Self::Error>
duty / max_duty. Read moreSource§fn set_duty_cycle_fully_off(&mut self) -> Result<(), Self::Error>
fn set_duty_cycle_fully_off(&mut self) -> Result<(), Self::Error>
Source§fn set_duty_cycle_fully_on(&mut self) -> Result<(), Self::Error>
fn set_duty_cycle_fully_on(&mut self) -> Result<(), Self::Error>
Source§impl SetDutyCycle for Pwm<OCMP2, Timebase16odd>
impl SetDutyCycle for Pwm<OCMP2, Timebase16odd>
Source§fn max_duty_cycle(&self) -> u16
fn max_duty_cycle(&self) -> u16
Source§fn set_duty_cycle(&mut self, duty: u16) -> Result<(), Self::Error>
fn set_duty_cycle(&mut self, duty: u16) -> Result<(), Self::Error>
duty / max_duty. Read moreSource§fn set_duty_cycle_fully_off(&mut self) -> Result<(), Self::Error>
fn set_duty_cycle_fully_off(&mut self) -> Result<(), Self::Error>
Source§fn set_duty_cycle_fully_on(&mut self) -> Result<(), Self::Error>
fn set_duty_cycle_fully_on(&mut self) -> Result<(), Self::Error>
Source§impl SetDutyCycle for Pwm<OCMP3, Timebase16even>
impl SetDutyCycle for Pwm<OCMP3, Timebase16even>
Source§fn max_duty_cycle(&self) -> u16
fn max_duty_cycle(&self) -> u16
Source§fn set_duty_cycle(&mut self, duty: u16) -> Result<(), Self::Error>
fn set_duty_cycle(&mut self, duty: u16) -> Result<(), Self::Error>
duty / max_duty. Read moreSource§fn set_duty_cycle_fully_off(&mut self) -> Result<(), Self::Error>
fn set_duty_cycle_fully_off(&mut self) -> Result<(), Self::Error>
Source§fn set_duty_cycle_fully_on(&mut self) -> Result<(), Self::Error>
fn set_duty_cycle_fully_on(&mut self) -> Result<(), Self::Error>
Source§impl SetDutyCycle for Pwm<OCMP3, Timebase16odd>
impl SetDutyCycle for Pwm<OCMP3, Timebase16odd>
Source§fn max_duty_cycle(&self) -> u16
fn max_duty_cycle(&self) -> u16
Source§fn set_duty_cycle(&mut self, duty: u16) -> Result<(), Self::Error>
fn set_duty_cycle(&mut self, duty: u16) -> Result<(), Self::Error>
duty / max_duty. Read moreSource§fn set_duty_cycle_fully_off(&mut self) -> Result<(), Self::Error>
fn set_duty_cycle_fully_off(&mut self) -> Result<(), Self::Error>
Source§fn set_duty_cycle_fully_on(&mut self) -> Result<(), Self::Error>
fn set_duty_cycle_fully_on(&mut self) -> Result<(), Self::Error>
Source§impl SetDutyCycle for Pwm<OCMP4, Timebase16even>
impl SetDutyCycle for Pwm<OCMP4, Timebase16even>
Source§fn max_duty_cycle(&self) -> u16
fn max_duty_cycle(&self) -> u16
Source§fn set_duty_cycle(&mut self, duty: u16) -> Result<(), Self::Error>
fn set_duty_cycle(&mut self, duty: u16) -> Result<(), Self::Error>
duty / max_duty. Read moreSource§fn set_duty_cycle_fully_off(&mut self) -> Result<(), Self::Error>
fn set_duty_cycle_fully_off(&mut self) -> Result<(), Self::Error>
Source§fn set_duty_cycle_fully_on(&mut self) -> Result<(), Self::Error>
fn set_duty_cycle_fully_on(&mut self) -> Result<(), Self::Error>
Source§impl SetDutyCycle for Pwm<OCMP4, Timebase16odd>
impl SetDutyCycle for Pwm<OCMP4, Timebase16odd>
Source§fn max_duty_cycle(&self) -> u16
fn max_duty_cycle(&self) -> u16
Source§fn set_duty_cycle(&mut self, duty: u16) -> Result<(), Self::Error>
fn set_duty_cycle(&mut self, duty: u16) -> Result<(), Self::Error>
duty / max_duty. Read moreSource§fn set_duty_cycle_fully_off(&mut self) -> Result<(), Self::Error>
fn set_duty_cycle_fully_off(&mut self) -> Result<(), Self::Error>
Source§fn set_duty_cycle_fully_on(&mut self) -> Result<(), Self::Error>
fn set_duty_cycle_fully_on(&mut self) -> Result<(), Self::Error>
Source§impl SetDutyCycle for Pwm<OCMP5, Timebase16even>
impl SetDutyCycle for Pwm<OCMP5, Timebase16even>
Source§fn max_duty_cycle(&self) -> u16
fn max_duty_cycle(&self) -> u16
Source§fn set_duty_cycle(&mut self, duty: u16) -> Result<(), Self::Error>
fn set_duty_cycle(&mut self, duty: u16) -> Result<(), Self::Error>
duty / max_duty. Read moreSource§fn set_duty_cycle_fully_off(&mut self) -> Result<(), Self::Error>
fn set_duty_cycle_fully_off(&mut self) -> Result<(), Self::Error>
Source§fn set_duty_cycle_fully_on(&mut self) -> Result<(), Self::Error>
fn set_duty_cycle_fully_on(&mut self) -> Result<(), Self::Error>
Source§impl SetDutyCycle for Pwm<OCMP5, Timebase16odd>
impl SetDutyCycle for Pwm<OCMP5, Timebase16odd>
Source§fn max_duty_cycle(&self) -> u16
fn max_duty_cycle(&self) -> u16
Source§fn set_duty_cycle(&mut self, duty: u16) -> Result<(), Self::Error>
fn set_duty_cycle(&mut self, duty: u16) -> Result<(), Self::Error>
duty / max_duty. Read more