Struct stm32_hal2::pac::otg1_hs_device::diepctl1::W
source · [−]pub struct W(_);
Expand description
Register DIEPCTL1
writer
Implementations
sourceimpl W
impl W
sourcepub fn mpsiz(
&mut self
) -> FieldWriterRaw<'_, u32, DIEPCTL1_SPEC, u16, u16, Unsafe, 11, 0>
pub fn mpsiz(
&mut self
) -> FieldWriterRaw<'_, u32, DIEPCTL1_SPEC, u16, u16, Unsafe, 11, 0>
Bits 0:10 - Maximum packet size
sourcepub fn usbaep(&mut self) -> BitWriterRaw<'_, u32, DIEPCTL1_SPEC, bool, BitM, 15>
pub fn usbaep(&mut self) -> BitWriterRaw<'_, u32, DIEPCTL1_SPEC, bool, BitM, 15>
Bit 15 - USB active endpoint
sourcepub fn eptyp(
&mut self
) -> FieldWriterRaw<'_, u32, DIEPCTL1_SPEC, u8, u8, Unsafe, 2, 18>
pub fn eptyp(
&mut self
) -> FieldWriterRaw<'_, u32, DIEPCTL1_SPEC, u8, u8, Unsafe, 2, 18>
Bits 18:19 - Endpoint type
sourcepub fn stall(&mut self) -> BitWriterRaw<'_, u32, DIEPCTL1_SPEC, bool, BitM, 21>
pub fn stall(&mut self) -> BitWriterRaw<'_, u32, DIEPCTL1_SPEC, bool, BitM, 21>
Bit 21 - STALL handshake
sourcepub fn txfnum(
&mut self
) -> FieldWriterRaw<'_, u32, DIEPCTL1_SPEC, u8, u8, Unsafe, 4, 22>
pub fn txfnum(
&mut self
) -> FieldWriterRaw<'_, u32, DIEPCTL1_SPEC, u8, u8, Unsafe, 4, 22>
Bits 22:25 - TxFIFO number
sourcepub fn cnak(&mut self) -> BitWriterRaw<'_, u32, DIEPCTL1_SPEC, bool, BitM, 26>
pub fn cnak(&mut self) -> BitWriterRaw<'_, u32, DIEPCTL1_SPEC, bool, BitM, 26>
Bit 26 - Clear NAK
sourcepub fn snak(&mut self) -> BitWriterRaw<'_, u32, DIEPCTL1_SPEC, bool, BitM, 27>
pub fn snak(&mut self) -> BitWriterRaw<'_, u32, DIEPCTL1_SPEC, bool, BitM, 27>
Bit 27 - Set NAK
sourcepub fn sd0pid_sevnfrm(
&mut self
) -> BitWriterRaw<'_, u32, DIEPCTL1_SPEC, bool, BitM, 28>
pub fn sd0pid_sevnfrm(
&mut self
) -> BitWriterRaw<'_, u32, DIEPCTL1_SPEC, bool, BitM, 28>
Bit 28 - Set DATA0 PID
sourcepub fn soddfrm(
&mut self
) -> BitWriterRaw<'_, u32, DIEPCTL1_SPEC, bool, BitM, 29>
pub fn soddfrm(
&mut self
) -> BitWriterRaw<'_, u32, DIEPCTL1_SPEC, bool, BitM, 29>
Bit 29 - Set odd frame
sourcepub fn epdis(&mut self) -> BitWriterRaw<'_, u32, DIEPCTL1_SPEC, bool, BitM, 30>
pub fn epdis(&mut self) -> BitWriterRaw<'_, u32, DIEPCTL1_SPEC, bool, BitM, 30>
Bit 30 - Endpoint disable
sourcepub fn epena(&mut self) -> BitWriterRaw<'_, u32, DIEPCTL1_SPEC, bool, BitM, 31>
pub fn epena(&mut self) -> BitWriterRaw<'_, u32, DIEPCTL1_SPEC, bool, BitM, 31>
Bit 31 - Endpoint enable
Methods from Deref<Target = W<DIEPCTL1_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
sourceimpl From<W<DIEPCTL1_SPEC>> for W
impl From<W<DIEPCTL1_SPEC>> for W
sourcefn from(writer: W<DIEPCTL1_SPEC>) -> W
fn from(writer: W<DIEPCTL1_SPEC>) -> W
Converts to this type from the input type.
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more