W

Struct W 

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

Register DEVCMDSTAT writer

Implementations§

Source§

impl W

Source

pub fn dev_addr(&mut self) -> DEV_ADDR_W<'_>

Bits 0:6 - USB device address.

Source

pub fn dev_en(&mut self) -> DEV_EN_W<'_>

Bit 7 - USB device enable.

Source

pub fn setup(&mut self) -> SETUP_W<'_>

Bit 8 - SETUP token received.

Source

pub fn force_needclk(&mut self) -> FORCE_NEEDCLK_W<'_>

Bit 9 - Forces the NEEDCLK output to always be on:.

Source

pub fn lpm_sup(&mut self) -> LPM_SUP_W<'_>

Bit 11 - LPM Supported:.

Source

pub fn intonnak_ao(&mut self) -> INTONNAK_AO_W<'_>

Bit 12 - Interrupt on NAK for interrupt and bulk OUT EP:.

Source

pub fn intonnak_ai(&mut self) -> INTONNAK_AI_W<'_>

Bit 13 - Interrupt on NAK for interrupt and bulk IN EP:.

Source

pub fn intonnak_co(&mut self) -> INTONNAK_CO_W<'_>

Bit 14 - Interrupt on NAK for control OUT EP:.

Source

pub fn intonnak_ci(&mut self) -> INTONNAK_CI_W<'_>

Bit 15 - Interrupt on NAK for control IN EP:.

Source

pub fn dcon(&mut self) -> DCON_W<'_>

Bit 16 - Device status - connect.

Source

pub fn dsus(&mut self) -> DSUS_W<'_>

Bit 17 - Device status - suspend.

Source

pub fn lpm_sus(&mut self) -> LPM_SUS_W<'_>

Bit 19 - Device status - LPM Suspend.

Source

pub fn dcon_c(&mut self) -> DCON_C_W<'_>

Bit 24 - Device status - connect change.

Source

pub fn dsus_c(&mut self) -> DSUS_C_W<'_>

Bit 25 - Device status - suspend change.

Source

pub fn dres_c(&mut self) -> DRES_C_W<'_>

Bit 26 - Device status - reset change.

Source

pub fn phy_test_mode(&mut self) -> PHY_TEST_MODE_W<'_>

Bits 29:31 - This field is written by firmware to put the PHY into a test mode as defined by the USB2.0 specification

Source

pub fn force_fs(&mut self) -> FORCE_FS_W<'_>

Bit 21 - Force USB device to operate in full-speed mode.

Source

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

Writes raw bits to the register.

Methods from Deref<Target = W<DEVCMDSTAT_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<DEVCMDSTAT_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<DEVCMDSTAT_SPEC>> for W

Source§

fn from(writer: W<DEVCMDSTAT_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.