W

Struct W 

Source
pub struct W(/* private fields */);
Expand description

Register CTRL writer

Implementations§

Source§

impl W

Source

pub fn enhostdiscondetect(&mut self) -> ENHOSTDISCONDETECT_W<'_>

Bit 1 - For host mode, enables high-speed disconnect detector

Source

pub fn enirqhostdiscon(&mut self) -> ENIRQHOSTDISCON_W<'_>

Bit 2 - Enable IRQ for Host disconnect: Enables interrupt for detection of disconnection to Device when in high-speed host mode

Source

pub fn hostdiscondetect_irq(&mut self) -> HOSTDISCONDETECT_IRQ_W<'_>

Bit 3 - Indicates that the device has disconnected in High-Speed mode

Source

pub fn endevplugindet(&mut self) -> ENDEVPLUGINDET_W<'_>

Bit 4 - Enables non-standard resistive plugged-in detection This bit field controls connection of nominal 200kohm resistors to both the USB_DP and USB_DM pins as one method of detecting when a USB cable is attached in device mode

Source

pub fn devplugin_polarity(&mut self) -> DEVPLUGIN_POLARITY_W<'_>

Bit 5 - Device plugin polarity: For device mode, if this bit is cleared to 0, then it trips the interrupt if the device is plugged in

Source

pub fn resumeirqsticky(&mut self) -> RESUMEIRQSTICKY_W<'_>

Bit 8 - Resume IRQ: Set to 1 will make RESUME_IRQ bit a sticky bit until software clear it

Source

pub fn enirqresumedetect(&mut self) -> ENIRQRESUMEDETECT_W<'_>

Bit 9 - Enable IRQ Resume detect: Enables interrupt for detection of a non-J state on the USB line

Source

pub fn resume_irq(&mut self) -> RESUME_IRQ_W<'_>

Bit 10 - Resume IRQ: Indicates that the host is sending a wake-up after suspend

Source

pub fn devplugin_irq(&mut self) -> DEVPLUGIN_IRQ_W<'_>

Bit 12 - Indicates that the device is connected

Source

pub fn enutmilevel2(&mut self) -> ENUTMILEVEL2_W<'_>

Bit 14 - Enables UTMI+ Level 2 operation for the USB HS PHY

Source

pub fn enutmilevel3(&mut self) -> ENUTMILEVEL3_W<'_>

Bit 15 - Enables UTMI+ Level 3 operation for the USB HS PHY

Source

pub fn enirqwakeup(&mut self) -> ENIRQWAKEUP_W<'_>

Bit 16 - Enable wake-up IRQ: Enables interrupt for the wake-up events.

Source

pub fn wakeup_irq(&mut self) -> WAKEUP_IRQ_W<'_>

Bit 17 - Wake-up IRQ: Indicates that there is a wak-eup event

Source

pub fn autoresume_en(&mut self) -> AUTORESUME_EN_W<'_>

Bit 18 - Enable the auto resume feature, when set, HW will use 32KHz clock to send Resume to respond to the device remote wakeup(for host mode only)

Source

pub fn enautoclr_clkgate(&mut self) -> ENAUTOCLR_CLKGATE_W<'_>

Bit 19 - Enables the feature to auto-clear the CLKGATE bit if there is wakeup event while USB is suspended

Source

pub fn enautoclr_phy_pwd(&mut self) -> ENAUTOCLR_PHY_PWD_W<'_>

Bit 20 - Enables the feature to auto-clear the PWD register bits in PWD if there is wakeup event while USB is suspended

Source

pub fn endpdmchg_wkup(&mut self) -> ENDPDMCHG_WKUP_W<'_>

Bit 21 - Enable DP DM change wake-up: Not for customer use

Source

pub fn envbuschg_wkup(&mut self) -> ENVBUSCHG_WKUP_W<'_>

Bit 23 - Enable VBUS change wake-up: Enables the feature to wake-up USB if VBUS is toggled when USB is suspended

Source

pub fn enautoclr_usbclkgate(&mut self) -> ENAUTOCLR_USBCLKGATE_W<'_>

Bit 25 - Enable auto-clear USB Clock gate: Enables the feature to auto-clear the USB0_CLKGATE/USB1_CLKGATE register bit in HW_DIGCTL_CTRL if there is wake-up event on USB0/USB1 while USB0/USB1 is suspended

Source

pub fn enautoset_usbclks(&mut self) -> ENAUTOSET_USBCLKS_W<'_>

Bit 26 - Enable auto-set of USB clocks: Enables the feature to auto-clear the EN_USB_CLKS register bits in HW_CLKCTRL_PLL1CTRL0/HW_CLKCTRL_P LL1CTRL1 if there is wake-up event on USB0/USB1 while USB0/USB1 is suspended

Source

pub fn host_force_ls_se0(&mut self) -> HOST_FORCE_LS_SE0_W<'_>

Bit 28 - Forces the next FS packet that is transmitted to have a EOP with low-speed timing

Source

pub fn utmi_suspendm(&mut self) -> UTMI_SUSPENDM_W<'_>

Bit 29 - Used by the PHY to indicate a powered-down state

Source

pub fn clkgate(&mut self) -> CLKGATE_W<'_>

Bit 30 - Gate UTMI Clocks

Source

pub fn sftrst(&mut self) -> SFTRST_W<'_>

Bit 31 - Writing a 1 to this bit will soft-reset the PWD, TX, RX, and CTRL registers

Source

pub unsafe fn bits(&mut self, bits: u32) -> &mut Self

Writes raw bits to the register.

Methods from Deref<Target = W<CTRL_SPEC>>§

Source

pub unsafe fn bits(&mut self, bits: REG::Ux) -> &mut Self

Writes raw bits to the register.

Trait Implementations§

Source§

impl Deref for W

Source§

type Target = W<CTRL_SPEC>

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl DerefMut for W

Source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
Source§

impl From<W<CTRL_SPEC>> for W

Source§

fn from(writer: W<CTRL_SPEC>) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl Freeze for W

§

impl RefUnwindSafe for W

§

impl Send for W

§

impl Sync for W

§

impl Unpin for W

§

impl UnwindSafe for W

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.