Struct stm32f1xx_hal::pac::otg_fs_device::fs_diepctl0::W
source · pub struct W(_);
Expand description
Register FS_DIEPCTL0
writer
Implementations§
source§impl W
impl W
sourcepub fn mpsiz(
&mut self
) -> FieldWriterRaw<'_, u32, FS_DIEPCTL0_SPEC, u8, u8, Unsafe, 2, 0>
pub fn mpsiz(
&mut self
) -> FieldWriterRaw<'_, u32, FS_DIEPCTL0_SPEC, u8, u8, Unsafe, 2, 0>
Bits 0:1 - Maximum packet size
sourcepub fn stall(
&mut self
) -> BitWriterRaw<'_, u32, FS_DIEPCTL0_SPEC, bool, BitM, 21>
pub fn stall(
&mut self
) -> BitWriterRaw<'_, u32, FS_DIEPCTL0_SPEC, bool, BitM, 21>
Bit 21 - STALL handshake
sourcepub fn txfnum(
&mut self
) -> FieldWriterRaw<'_, u32, FS_DIEPCTL0_SPEC, u8, u8, Unsafe, 4, 22>
pub fn txfnum(
&mut self
) -> FieldWriterRaw<'_, u32, FS_DIEPCTL0_SPEC, u8, u8, Unsafe, 4, 22>
Bits 22:25 - TxFIFO number
sourcepub fn cnak(
&mut self
) -> BitWriterRaw<'_, u32, FS_DIEPCTL0_SPEC, bool, BitM, 26>
pub fn cnak(
&mut self
) -> BitWriterRaw<'_, u32, FS_DIEPCTL0_SPEC, bool, BitM, 26>
Bit 26 - Clear NAK
sourcepub fn snak(
&mut self
) -> BitWriterRaw<'_, u32, FS_DIEPCTL0_SPEC, bool, BitM, 27>
pub fn snak(
&mut self
) -> BitWriterRaw<'_, u32, FS_DIEPCTL0_SPEC, bool, BitM, 27>
Bit 27 - Set NAK
Methods from Deref<Target = W<FS_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.