Struct stm32f4xx_hal::pac::otg_fs_device::doeptsiz0::W
source · [−]pub struct W(_);
Expand description
Register DOEPTSIZ0
writer
Implementations
sourceimpl W
impl W
sourcepub fn stupcnt(
&mut self
) -> FieldWriterRaw<'_, u32, DOEPTSIZ0_SPEC, u8, u8, Unsafe, 2, 29>
pub fn stupcnt(
&mut self
) -> FieldWriterRaw<'_, u32, DOEPTSIZ0_SPEC, u8, u8, Unsafe, 2, 29>
Bits 29:30 - SETUP packet count
sourcepub fn pktcnt(
&mut self
) -> BitWriterRaw<'_, u32, DOEPTSIZ0_SPEC, bool, BitM, 19>
pub fn pktcnt(
&mut self
) -> BitWriterRaw<'_, u32, DOEPTSIZ0_SPEC, bool, BitM, 19>
Bit 19 - Packet count
Methods from Deref<Target = W<DOEPTSIZ0_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<DOEPTSIZ0_SPEC>> for W
impl From<W<DOEPTSIZ0_SPEC>> for W
sourcefn from(writer: W<DOEPTSIZ0_SPEC>) -> W
fn from(writer: W<DOEPTSIZ0_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