Struct W

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

Register INTEN writer

Implementations§

Source§

impl W

Source

pub fn usbreset( &mut self, ) -> BitWriterRaw<'_, u32, INTEN_SPEC, USBRESET_A, BitM, 0>

Bit 0 - Enable or disable interrupt for event USBRESET

Source

pub fn started( &mut self, ) -> BitWriterRaw<'_, u32, INTEN_SPEC, STARTED_A, BitM, 1>

Bit 1 - Enable or disable interrupt for event STARTED

Source

pub fn endepin0( &mut self, ) -> BitWriterRaw<'_, u32, INTEN_SPEC, ENDEPIN0_A, BitM, 2>

Bit 2 - Enable or disable interrupt for event ENDEPIN[0]

Source

pub fn endepin1( &mut self, ) -> BitWriterRaw<'_, u32, INTEN_SPEC, ENDEPIN1_A, BitM, 3>

Bit 3 - Enable or disable interrupt for event ENDEPIN[1]

Source

pub fn endepin2( &mut self, ) -> BitWriterRaw<'_, u32, INTEN_SPEC, ENDEPIN2_A, BitM, 4>

Bit 4 - Enable or disable interrupt for event ENDEPIN[2]

Source

pub fn endepin3( &mut self, ) -> BitWriterRaw<'_, u32, INTEN_SPEC, ENDEPIN3_A, BitM, 5>

Bit 5 - Enable or disable interrupt for event ENDEPIN[3]

Source

pub fn endepin4( &mut self, ) -> BitWriterRaw<'_, u32, INTEN_SPEC, ENDEPIN4_A, BitM, 6>

Bit 6 - Enable or disable interrupt for event ENDEPIN[4]

Source

pub fn endepin5( &mut self, ) -> BitWriterRaw<'_, u32, INTEN_SPEC, ENDEPIN5_A, BitM, 7>

Bit 7 - Enable or disable interrupt for event ENDEPIN[5]

Source

pub fn endepin6( &mut self, ) -> BitWriterRaw<'_, u32, INTEN_SPEC, ENDEPIN6_A, BitM, 8>

Bit 8 - Enable or disable interrupt for event ENDEPIN[6]

Source

pub fn endepin7( &mut self, ) -> BitWriterRaw<'_, u32, INTEN_SPEC, ENDEPIN7_A, BitM, 9>

Bit 9 - Enable or disable interrupt for event ENDEPIN[7]

Source

pub fn ep0datadone( &mut self, ) -> BitWriterRaw<'_, u32, INTEN_SPEC, EP0DATADONE_A, BitM, 10>

Bit 10 - Enable or disable interrupt for event EP0DATADONE

Source

pub fn endisoin( &mut self, ) -> BitWriterRaw<'_, u32, INTEN_SPEC, ENDISOIN_A, BitM, 11>

Bit 11 - Enable or disable interrupt for event ENDISOIN

Source

pub fn endepout0( &mut self, ) -> BitWriterRaw<'_, u32, INTEN_SPEC, ENDEPOUT0_A, BitM, 12>

Bit 12 - Enable or disable interrupt for event ENDEPOUT[0]

Source

pub fn endepout1( &mut self, ) -> BitWriterRaw<'_, u32, INTEN_SPEC, ENDEPOUT1_A, BitM, 13>

Bit 13 - Enable or disable interrupt for event ENDEPOUT[1]

Source

pub fn endepout2( &mut self, ) -> BitWriterRaw<'_, u32, INTEN_SPEC, ENDEPOUT2_A, BitM, 14>

Bit 14 - Enable or disable interrupt for event ENDEPOUT[2]

Source

pub fn endepout3( &mut self, ) -> BitWriterRaw<'_, u32, INTEN_SPEC, ENDEPOUT3_A, BitM, 15>

Bit 15 - Enable or disable interrupt for event ENDEPOUT[3]

Source

pub fn endepout4( &mut self, ) -> BitWriterRaw<'_, u32, INTEN_SPEC, ENDEPOUT4_A, BitM, 16>

Bit 16 - Enable or disable interrupt for event ENDEPOUT[4]

Source

pub fn endepout5( &mut self, ) -> BitWriterRaw<'_, u32, INTEN_SPEC, ENDEPOUT5_A, BitM, 17>

Bit 17 - Enable or disable interrupt for event ENDEPOUT[5]

Source

pub fn endepout6( &mut self, ) -> BitWriterRaw<'_, u32, INTEN_SPEC, ENDEPOUT6_A, BitM, 18>

Bit 18 - Enable or disable interrupt for event ENDEPOUT[6]

Source

pub fn endepout7( &mut self, ) -> BitWriterRaw<'_, u32, INTEN_SPEC, ENDEPOUT7_A, BitM, 19>

Bit 19 - Enable or disable interrupt for event ENDEPOUT[7]

Source

pub fn endisoout( &mut self, ) -> BitWriterRaw<'_, u32, INTEN_SPEC, ENDISOOUT_A, BitM, 20>

Bit 20 - Enable or disable interrupt for event ENDISOOUT

Source

pub fn sof(&mut self) -> BitWriterRaw<'_, u32, INTEN_SPEC, SOF_A, BitM, 21>

Bit 21 - Enable or disable interrupt for event SOF

Source

pub fn usbevent( &mut self, ) -> BitWriterRaw<'_, u32, INTEN_SPEC, USBEVENT_A, BitM, 22>

Bit 22 - Enable or disable interrupt for event USBEVENT

Source

pub fn ep0setup( &mut self, ) -> BitWriterRaw<'_, u32, INTEN_SPEC, EP0SETUP_A, BitM, 23>

Bit 23 - Enable or disable interrupt for event EP0SETUP

Source

pub fn epdata( &mut self, ) -> BitWriterRaw<'_, u32, INTEN_SPEC, EPDATA_A, BitM, 24>

Bit 24 - Enable or disable interrupt for event EPDATA

Source

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

Writes raw bits to the register.

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

Source

pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>

Writes raw bits to the register.

Trait Implementations§

Source§

impl Deref for W

Source§

type Target = W<INTEN_SPEC>

The resulting type after dereferencing.
Source§

fn deref(&self) -> &<W as Deref>::Target

Dereferences the value.
Source§

impl DerefMut for W

Source§

fn deref_mut(&mut self) -> &mut <W as Deref>::Target

Mutably dereferences the value.
Source§

impl From<W<INTEN_SPEC>> for W

Source§

fn from(writer: W<INTEN_SPEC>) -> W

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> Az for T

Source§

fn az<Dst>(self) -> Dst
where T: Cast<Dst>,

Casts the value.
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<Src, Dst> CastFrom<Src> for Dst
where Src: Cast<Dst>,

Source§

fn cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<T> CheckedAs for T

Source§

fn checked_as<Dst>(self) -> Option<Dst>
where T: CheckedCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> CheckedCastFrom<Src> for Dst
where Src: CheckedCast<Dst>,

Source§

fn checked_cast_from(src: Src) -> Option<Dst>

Casts the value.
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<Src, Dst> LosslessTryInto<Dst> for Src
where Dst: LosslessTryFrom<Src>,

Source§

fn lossless_try_into(self) -> Option<Dst>

Performs the conversion.
Source§

impl<Src, Dst> LossyInto<Dst> for Src
where Dst: LossyFrom<Src>,

Source§

fn lossy_into(self) -> Dst

Performs the conversion.
Source§

impl<T> OverflowingAs for T

Source§

fn overflowing_as<Dst>(self) -> (Dst, bool)
where T: OverflowingCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> OverflowingCastFrom<Src> for Dst
where Src: OverflowingCast<Dst>,

Source§

fn overflowing_cast_from(src: Src) -> (Dst, bool)

Casts the value.
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> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> SaturatingAs for T

Source§

fn saturating_as<Dst>(self) -> Dst
where T: SaturatingCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> SaturatingCastFrom<Src> for Dst
where Src: SaturatingCast<Dst>,

Source§

fn saturating_cast_from(src: Src) -> Dst

Casts the value.
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.
Source§

impl<T> UnwrappedAs for T

Source§

fn unwrapped_as<Dst>(self) -> Dst
where T: UnwrappedCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> UnwrappedCastFrom<Src> for Dst
where Src: UnwrappedCast<Dst>,

Source§

fn unwrapped_cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<T> WrappingAs for T

Source§

fn wrapping_as<Dst>(self) -> Dst
where T: WrappingCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> WrappingCastFrom<Src> for Dst
where Src: WrappingCast<Dst>,

Source§

fn wrapping_cast_from(src: Src) -> Dst

Casts the value.