Struct stm32f1xx_hal::pac::otg_fs_device::doepctl2::W
source · pub struct W(_);
Expand description
Register DOEPCTL2
writer
Implementations§
source§impl W
impl W
sourcepub fn epena(&mut self) -> BitWriterRaw<'_, u32, DOEPCTL2_SPEC, bool, BitM, 31>
pub fn epena(&mut self) -> BitWriterRaw<'_, u32, DOEPCTL2_SPEC, bool, BitM, 31>
Bit 31 - EPENA
sourcepub fn epdis(&mut self) -> BitWriterRaw<'_, u32, DOEPCTL2_SPEC, bool, BitM, 30>
pub fn epdis(&mut self) -> BitWriterRaw<'_, u32, DOEPCTL2_SPEC, bool, BitM, 30>
Bit 30 - EPDIS
sourcepub fn soddfrm(
&mut self
) -> BitWriterRaw<'_, u32, DOEPCTL2_SPEC, bool, BitM, 29>
pub fn soddfrm(
&mut self
) -> BitWriterRaw<'_, u32, DOEPCTL2_SPEC, bool, BitM, 29>
Bit 29 - SODDFRM
sourcepub fn sd0pid_sevnfrm(
&mut self
) -> BitWriterRaw<'_, u32, DOEPCTL2_SPEC, bool, BitM, 28>
pub fn sd0pid_sevnfrm(
&mut self
) -> BitWriterRaw<'_, u32, DOEPCTL2_SPEC, bool, BitM, 28>
Bit 28 - SD0PID/SEVNFRM
sourcepub fn snak(&mut self) -> BitWriterRaw<'_, u32, DOEPCTL2_SPEC, bool, BitM, 27>
pub fn snak(&mut self) -> BitWriterRaw<'_, u32, DOEPCTL2_SPEC, bool, BitM, 27>
Bit 27 - SNAK
sourcepub fn cnak(&mut self) -> BitWriterRaw<'_, u32, DOEPCTL2_SPEC, bool, BitM, 26>
pub fn cnak(&mut self) -> BitWriterRaw<'_, u32, DOEPCTL2_SPEC, bool, BitM, 26>
Bit 26 - CNAK
sourcepub fn stall(&mut self) -> BitWriterRaw<'_, u32, DOEPCTL2_SPEC, bool, BitM, 21>
pub fn stall(&mut self) -> BitWriterRaw<'_, u32, DOEPCTL2_SPEC, bool, BitM, 21>
Bit 21 - Stall
sourcepub fn snpm(&mut self) -> BitWriterRaw<'_, u32, DOEPCTL2_SPEC, bool, BitM, 20>
pub fn snpm(&mut self) -> BitWriterRaw<'_, u32, DOEPCTL2_SPEC, bool, BitM, 20>
Bit 20 - SNPM
sourcepub fn eptyp(
&mut self
) -> FieldWriterRaw<'_, u32, DOEPCTL2_SPEC, u8, u8, Unsafe, 2, 18>
pub fn eptyp(
&mut self
) -> FieldWriterRaw<'_, u32, DOEPCTL2_SPEC, u8, u8, Unsafe, 2, 18>
Bits 18:19 - EPTYP
sourcepub fn usbaep(&mut self) -> BitWriterRaw<'_, u32, DOEPCTL2_SPEC, bool, BitM, 15>
pub fn usbaep(&mut self) -> BitWriterRaw<'_, u32, DOEPCTL2_SPEC, bool, BitM, 15>
Bit 15 - USBAEP
Methods from Deref<Target = W<DOEPCTL2_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.