[][src]Struct imxrt1062_pwm1::sm::smctrl::COMPMODE_W

pub struct COMPMODE_W<'a> { /* fields omitted */ }

Write proxy for field COMPMODE

Methods

impl<'a> COMPMODE_W<'a>[src]

pub fn variant(self, variant: COMPMODE_A) -> &'a mut W[src]

Writes variant to the field

pub fn compmode_0(self) -> &'a mut W[src]

The VAL* registers and the PWM counter are compared using an "equal to" method. This means that PWM edges are only produced when the counter is equal to one of the VAL* register values. This implies that a PWMA output that is high at the end of a period will maintain this state until a match with VAL3 clears the output in the following period.

pub fn compmode_1(self) -> &'a mut W[src]

The VAL* registers and the PWM counter are compared using an "equal to or greater than" method. This means that PWM edges are produced when the counter is equal to or greater than one of the VAL* register values. This implies that a PWMA output that is high at the end of a period could go low at the start of the next period if the starting counter value is greater than (but not necessarily equal to) the new VAL3 value.

pub fn set_bit(self) -> &'a mut W[src]

Sets the field bit

pub fn clear_bit(self) -> &'a mut W[src]

Clears the field bit

pub fn bit(self, value: bool) -> &'a mut W[src]

Writes raw bits to the field

Auto Trait Implementations

impl<'a> Send for COMPMODE_W<'a>

impl<'a> !Sync for COMPMODE_W<'a>

impl<'a> Unpin for COMPMODE_W<'a>

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<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.