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