Struct atsamd_hal::pwm::Tcc2Pwm  
source · [−]Implementations
Trait Implementations
sourceimpl<I: PinId, M: PinMode> Pwm for Tcc2Pwm<I, M>
 
impl<I: PinId, M: PinMode> Pwm for Tcc2Pwm<I, M>
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<I, M> RefUnwindSafe for Tcc2Pwm<I, M>where
    I: RefUnwindSafe,
    M: RefUnwindSafe,
impl<I, M> Send for Tcc2Pwm<I, M>where
    I: Send,
    M: Send,
impl<I, M> !Sync for Tcc2Pwm<I, M>
impl<I, M> Unpin for Tcc2Pwm<I, M>where
    I: Unpin,
    M: Unpin,
impl<I, M> UnwindSafe for Tcc2Pwm<I, M>where
    I: UnwindSafe,
    M: UnwindSafe,
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