pub struct W(/* private fields */);
Expand description
Register DIEPCTL0
writer
Implementations§
Source§impl W
impl W
Sourcepub fn mpsiz(
&mut self,
) -> FieldWriterRaw<'_, u32, DIEPCTL0_SPEC, u8, u8, Unsafe, 2, 0>
pub fn mpsiz( &mut self, ) -> FieldWriterRaw<'_, u32, DIEPCTL0_SPEC, u8, u8, Unsafe, 2, 0>
Bits 0:1 - Maximum packet size
Sourcepub fn stall(&mut self) -> BitWriterRaw<'_, u32, DIEPCTL0_SPEC, bool, BitM, 21>
pub fn stall(&mut self) -> BitWriterRaw<'_, u32, DIEPCTL0_SPEC, bool, BitM, 21>
Bit 21 - STALL handshake
Sourcepub fn txfnum(
&mut self,
) -> FieldWriterRaw<'_, u32, DIEPCTL0_SPEC, u8, u8, Unsafe, 4, 22>
pub fn txfnum( &mut self, ) -> FieldWriterRaw<'_, u32, DIEPCTL0_SPEC, u8, u8, Unsafe, 4, 22>
Bits 22:25 - TxFIFO number
Sourcepub fn cnak(&mut self) -> BitWriterRaw<'_, u32, DIEPCTL0_SPEC, bool, BitM, 26>
pub fn cnak(&mut self) -> BitWriterRaw<'_, u32, DIEPCTL0_SPEC, bool, BitM, 26>
Bit 26 - Clear NAK
Sourcepub fn snak(&mut self) -> BitWriterRaw<'_, u32, DIEPCTL0_SPEC, bool, BitM, 27>
pub fn snak(&mut self) -> BitWriterRaw<'_, u32, DIEPCTL0_SPEC, bool, BitM, 27>
Bit 27 - Set NAK
Sourcepub fn epena(&mut self) -> BitWriterRaw<'_, u32, DIEPCTL0_SPEC, bool, BitM, 31>
pub fn epena(&mut self) -> BitWriterRaw<'_, u32, DIEPCTL0_SPEC, bool, BitM, 31>
Bit 31 - Endpoint enable
Methods from Deref<Target = W<DIEPCTL0_SPEC>>§
Sourcepub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
Writes raw bits to the register.
Trait Implementations§
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more