Struct daisy::pac::otg1_hs_host::hcchar6::W
pub struct W(/* private fields */);
Expand description
Register HCCHAR6
writer
Implementations§
§impl W
impl W
pub fn mpsiz(
&mut self
) -> FieldWriterRaw<'_, u32, HCCHAR6_SPEC, u16, u16, Unsafe, 11, 0>
pub fn mpsiz( &mut self ) -> FieldWriterRaw<'_, u32, HCCHAR6_SPEC, u16, u16, Unsafe, 11, 0>
Bits 0:10 - Maximum packet size
pub fn epnum(
&mut self
) -> FieldWriterRaw<'_, u32, HCCHAR6_SPEC, u8, u8, Unsafe, 4, 11>
pub fn epnum( &mut self ) -> FieldWriterRaw<'_, u32, HCCHAR6_SPEC, u8, u8, Unsafe, 4, 11>
Bits 11:14 - Endpoint number
pub fn epdir(&mut self) -> BitWriterRaw<'_, u32, HCCHAR6_SPEC, bool, BitM, 15>
pub fn epdir(&mut self) -> BitWriterRaw<'_, u32, HCCHAR6_SPEC, bool, BitM, 15>
Bit 15 - Endpoint direction
pub fn lsdev(&mut self) -> BitWriterRaw<'_, u32, HCCHAR6_SPEC, bool, BitM, 17>
pub fn lsdev(&mut self) -> BitWriterRaw<'_, u32, HCCHAR6_SPEC, bool, BitM, 17>
Bit 17 - Low-speed device
pub fn eptyp(
&mut self
) -> FieldWriterRaw<'_, u32, HCCHAR6_SPEC, u8, u8, Unsafe, 2, 18>
pub fn eptyp( &mut self ) -> FieldWriterRaw<'_, u32, HCCHAR6_SPEC, u8, u8, Unsafe, 2, 18>
Bits 18:19 - Endpoint type
pub fn mc(
&mut self
) -> FieldWriterRaw<'_, u32, HCCHAR6_SPEC, u8, u8, Unsafe, 2, 20>
pub fn mc( &mut self ) -> FieldWriterRaw<'_, u32, HCCHAR6_SPEC, u8, u8, Unsafe, 2, 20>
Bits 20:21 - Multi Count (MC) / Error Count (EC)
pub fn dad(
&mut self
) -> FieldWriterRaw<'_, u32, HCCHAR6_SPEC, u8, u8, Unsafe, 7, 22>
pub fn dad( &mut self ) -> FieldWriterRaw<'_, u32, HCCHAR6_SPEC, u8, u8, Unsafe, 7, 22>
Bits 22:28 - Device address
pub fn oddfrm(&mut self) -> BitWriterRaw<'_, u32, HCCHAR6_SPEC, bool, BitM, 29>
pub fn oddfrm(&mut self) -> BitWriterRaw<'_, u32, HCCHAR6_SPEC, bool, BitM, 29>
Bit 29 - Odd frame
pub fn chdis(&mut self) -> BitWriterRaw<'_, u32, HCCHAR6_SPEC, bool, BitM, 30>
pub fn chdis(&mut self) -> BitWriterRaw<'_, u32, HCCHAR6_SPEC, bool, BitM, 30>
Bit 30 - Channel disable
pub fn chena(&mut self) -> BitWriterRaw<'_, u32, HCCHAR6_SPEC, bool, BitM, 31>
pub fn chena(&mut self) -> BitWriterRaw<'_, u32, HCCHAR6_SPEC, bool, BitM, 31>
Bit 31 - Channel enable
Methods from Deref<Target = W<HCCHAR6_SPEC>>§
pub 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§
§impl From<W<HCCHAR6_SPEC>> for W
impl From<W<HCCHAR6_SPEC>> for W
§fn from(writer: W<HCCHAR6_SPEC>) -> W
fn from(writer: W<HCCHAR6_SPEC>) -> W
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for W
impl RefUnwindSafe for W
impl Send for W
impl Sync for W
impl Unpin for W
impl UnwindSafe for W
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more