Struct atsamd_hal::pwm::Pwm1
source · [−]pub struct Pwm1 { /* private fields */ }
Implementations
Trait Implementations
sourceimpl Pwm for Pwm1
impl Pwm for Pwm1
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 Pwm1
impl Send for Pwm1
impl !Sync for Pwm1
impl Unpin for Pwm1
impl UnwindSafe for Pwm1
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