Struct stm32_hal2::pac::otg1_hs_device::doepctl0::W
source · [−]pub struct W(_);
Expand description
Register DOEPCTL0
writer
Implementations
sourceimpl W
impl W
sourcepub fn snpm(&mut self) -> BitWriterRaw<'_, u32, DOEPCTL0_SPEC, bool, BitM, 20>
pub fn snpm(&mut self) -> BitWriterRaw<'_, u32, DOEPCTL0_SPEC, bool, BitM, 20>
Bit 20 - Snoop mode
sourcepub fn stall(&mut self) -> BitWriterRaw<'_, u32, DOEPCTL0_SPEC, bool, BitM, 21>
pub fn stall(&mut self) -> BitWriterRaw<'_, u32, DOEPCTL0_SPEC, bool, BitM, 21>
Bit 21 - STALL handshake
sourcepub fn cnak(&mut self) -> BitWriterRaw<'_, u32, DOEPCTL0_SPEC, bool, BitM, 26>
pub fn cnak(&mut self) -> BitWriterRaw<'_, u32, DOEPCTL0_SPEC, bool, BitM, 26>
Bit 26 - Clear NAK
sourcepub fn snak(&mut self) -> BitWriterRaw<'_, u32, DOEPCTL0_SPEC, bool, BitM, 27>
pub fn snak(&mut self) -> BitWriterRaw<'_, u32, DOEPCTL0_SPEC, bool, BitM, 27>
Bit 27 - Set NAK
sourcepub fn epena(&mut self) -> BitWriterRaw<'_, u32, DOEPCTL0_SPEC, bool, BitM, 31>
pub fn epena(&mut self) -> BitWriterRaw<'_, u32, DOEPCTL0_SPEC, bool, BitM, 31>
Bit 31 - Endpoint enable
Methods from Deref<Target = W<DOEPCTL0_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<DOEPCTL0_SPEC>> for W
impl From<W<DOEPCTL0_SPEC>> for W
sourcefn from(writer: W<DOEPCTL0_SPEC>) -> W
fn from(writer: W<DOEPCTL0_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