Struct atsamd_hal::pwm::Pwm2
source · [−]pub struct Pwm2 { /* private fields */ }
Implementations
Trait Implementations
sourceimpl Pwm for Pwm2
impl Pwm for Pwm2
sourcefn get_period(&self) -> Self::Time
fn get_period(&self) -> Self::Time
Returns the current PWM period
sourcefn get_max_duty(&self) -> Self::Duty
fn get_max_duty(&self) -> Self::Duty
Returns the maximum duty cycle value
sourcefn set_period<P>(&mut self, period: P)where
P: Into<Self::Time>,
fn set_period<P>(&mut self, period: P)where
P: Into<Self::Time>,
Sets a new PWM period
Auto Trait Implementations
impl RefUnwindSafe for Pwm2
impl Send for Pwm2
impl !Sync for Pwm2
impl Unpin for Pwm2
impl UnwindSafe for Pwm2
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more