[][src]Struct imxrt1062_usbnc1::W

pub struct W<U, REG> { /* fields omitted */ }

Register writer

Used as an argument to the closures in the write and modify methods of the register

Methods

impl<U, REG> W<U, REG>[src]

pub unsafe fn bits(&mut self, bits: U) -> &mut Self[src]

Writes raw bits to the register

impl W<u32, Reg<u32, _USB_OTG1_CTRL>>[src]

pub fn over_cur_dis(&mut self) -> OVER_CUR_DIS_W[src]

Bit 7 - Disable OTG1 Overcurrent Detection

pub fn over_cur_pol(&mut self) -> OVER_CUR_POL_W[src]

Bit 8 - OTG1 Polarity of Overcurrent The polarity of OTG1 port overcurrent event

pub fn pwr_pol(&mut self) -> PWR_POL_W[src]

Bit 9 - OTG1 Power Polarity This bit should be set according to PMIC Power Pin polarity.

pub fn wie(&mut self) -> WIE_W[src]

Bit 10 - OTG1 Wake-up Interrupt Enable This bit enables or disables the OTG1 wake-up interrupt

pub fn wkup_sw_en(&mut self) -> WKUP_SW_EN_W[src]

Bit 14 - OTG1 Software Wake-up Enable

pub fn wkup_sw(&mut self) -> WKUP_SW_W[src]

Bit 15 - OTG1 Software Wake-up

pub fn wkup_id_en(&mut self) -> WKUP_ID_EN_W[src]

Bit 16 - OTG1 Wake-up on ID change enable

pub fn wkup_vbus_en(&mut self) -> WKUP_VBUS_EN_W[src]

Bit 17 - OTG1 wake-up on VBUS change enable

pub fn wkup_dpdm_en(&mut self) -> WKUP_DPDM_EN_W[src]

Bit 29 - Wake-up on DPDM change enable

impl W<u32, Reg<u32, _USB_OTG1_PHY_CTRL_0>>[src]

pub fn utmi_clk_vld(&mut self) -> UTMI_CLK_VLD_W[src]

Bit 31 - Indicating whether OTG1 UTMI PHY clock is valid

Auto Trait Implementations

impl<U, REG> Send for W<U, REG> where
    REG: Send,
    U: Send

impl<U, REG> Sync for W<U, REG> where
    REG: Sync,
    U: Sync

impl<U, REG> Unpin for W<U, REG> where
    REG: Unpin,
    U: Unpin

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.