Struct stm32f4xx_hal::pac::otg_fs_device::dctl::W
source · [−]pub struct W(_);
Expand description
Register DCTL
writer
Implementations
sourceimpl W
impl W
sourcepub fn rwusig(&mut self) -> BitWriterRaw<'_, u32, DCTL_SPEC, bool, BitM, 0>
pub fn rwusig(&mut self) -> BitWriterRaw<'_, u32, DCTL_SPEC, bool, BitM, 0>
Bit 0 - Remote wakeup signaling
sourcepub fn sdis(&mut self) -> BitWriterRaw<'_, u32, DCTL_SPEC, bool, BitM, 1>
pub fn sdis(&mut self) -> BitWriterRaw<'_, u32, DCTL_SPEC, bool, BitM, 1>
Bit 1 - Soft disconnect
sourcepub fn tctl(
&mut self
) -> FieldWriterRaw<'_, u32, DCTL_SPEC, u8, u8, Unsafe, 3, 4>
pub fn tctl(
&mut self
) -> FieldWriterRaw<'_, u32, DCTL_SPEC, u8, u8, Unsafe, 3, 4>
Bits 4:6 - Test control
sourcepub fn sginak(&mut self) -> BitWriterRaw<'_, u32, DCTL_SPEC, bool, BitM, 7>
pub fn sginak(&mut self) -> BitWriterRaw<'_, u32, DCTL_SPEC, bool, BitM, 7>
Bit 7 - Set global IN NAK
sourcepub fn cginak(&mut self) -> BitWriterRaw<'_, u32, DCTL_SPEC, bool, BitM, 8>
pub fn cginak(&mut self) -> BitWriterRaw<'_, u32, DCTL_SPEC, bool, BitM, 8>
Bit 8 - Clear global IN NAK
sourcepub fn sgonak(&mut self) -> BitWriterRaw<'_, u32, DCTL_SPEC, bool, BitM, 9>
pub fn sgonak(&mut self) -> BitWriterRaw<'_, u32, DCTL_SPEC, bool, BitM, 9>
Bit 9 - Set global OUT NAK
sourcepub fn cgonak(&mut self) -> BitWriterRaw<'_, u32, DCTL_SPEC, bool, BitM, 10>
pub fn cgonak(&mut self) -> BitWriterRaw<'_, u32, DCTL_SPEC, bool, BitM, 10>
Bit 10 - Clear global OUT NAK
Methods from Deref<Target = W<DCTL_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
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