Struct nrf52840_hal::pwm::PwmGroup[][src]

pub struct PwmGroup<'a, T> where
    T: Instance
{ /* fields omitted */ }

PWM group

Implementations

impl<'a, T> PwmGroup<'a, T> where
    T: Instance
[src]

pub fn new(pwm: &'a Pwm<T>, group: Group) -> PwmGroup<'a, T>[src]

pub fn enable(&self)[src]

pub fn disable(&self)[src]

pub fn max_duty(&self) -> u16[src]

pub fn set_duty(&self, duty: u16)[src]

pub fn set_duty_on(&self, duty: u16)[src]

pub fn set_duty_off(&self, duty: u16)[src]

pub fn duty_on(&self) -> u16[src]

pub fn duty_off(&self) -> u16[src]

Trait Implementations

impl<'a, T> Debug for PwmGroup<'a, T> where
    T: Instance + Debug
[src]

impl<'a, T> PwmPin for PwmGroup<'a, T> where
    T: Instance
[src]

type Duty = u16

Type for the duty methods Read more

Auto Trait Implementations

impl<'a, T> Send for PwmGroup<'a, T> where
    T: Sync

impl<'a, T> Sync for PwmGroup<'a, T> where
    T: Sync

impl<'a, T> Unpin for PwmGroup<'a, T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<Src, Dst> LosslessTryInto<Dst> for Src where
    Dst: LosslessTryFrom<Src>, 
[src]

impl<Src, Dst> LossyInto<Dst> for Src where
    Dst: LossyFrom<Src>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.