pub struct W(_);
Expand description
Register EP%sR
writer
Implementations§
source§impl W
impl W
sourcepub fn ea(&mut self) -> FieldWriterRaw<'_, u32, EPR_SPEC, u8, u8, Safe, 4, 0>
pub fn ea(&mut self) -> FieldWriterRaw<'_, u32, EPR_SPEC, u8, u8, Safe, 4, 0>
Bits 0:3 - Endpoint address
sourcepub fn stat_tx(
&mut self
) -> FieldWriterRaw<'_, u32, EPR_SPEC, u8, STAT_TX_A, Safe, 2, 4>
pub fn stat_tx(
&mut self
) -> FieldWriterRaw<'_, u32, EPR_SPEC, u8, STAT_TX_A, Safe, 2, 4>
Bits 4:5 - Status bits, for transmission transfers
sourcepub fn dtog_tx(&mut self) -> BitWriterRaw<'_, u32, EPR_SPEC, bool, BitM, 6>
pub fn dtog_tx(&mut self) -> BitWriterRaw<'_, u32, EPR_SPEC, bool, BitM, 6>
Bit 6 - Data Toggle, for transmission transfers
sourcepub fn ctr_tx(&mut self) -> BitWriterRaw<'_, u32, EPR_SPEC, bool, BitM, 7>
pub fn ctr_tx(&mut self) -> BitWriterRaw<'_, u32, EPR_SPEC, bool, BitM, 7>
Bit 7 - Correct Transfer for transmission
sourcepub fn ep_kind(&mut self) -> BitWriterRaw<'_, u32, EPR_SPEC, bool, BitM, 8>
pub fn ep_kind(&mut self) -> BitWriterRaw<'_, u32, EPR_SPEC, bool, BitM, 8>
Bit 8 - Endpoint kind
sourcepub fn ep_type(
&mut self
) -> FieldWriterRaw<'_, u32, EPR_SPEC, u8, EP_TYPE_A, Safe, 2, 9>
pub fn ep_type(
&mut self
) -> FieldWriterRaw<'_, u32, EPR_SPEC, u8, EP_TYPE_A, Safe, 2, 9>
Bits 9:10 - Endpoint type
sourcepub fn setup(&mut self) -> BitWriterRaw<'_, u32, EPR_SPEC, bool, BitM, 11>
pub fn setup(&mut self) -> BitWriterRaw<'_, u32, EPR_SPEC, bool, BitM, 11>
Bit 11 - Setup transaction completed
sourcepub fn stat_rx(
&mut self
) -> FieldWriterRaw<'_, u32, EPR_SPEC, u8, STAT_RX_A, Safe, 2, 12>
pub fn stat_rx(
&mut self
) -> FieldWriterRaw<'_, u32, EPR_SPEC, u8, STAT_RX_A, Safe, 2, 12>
Bits 12:13 - Status bits, for reception transfers
sourcepub fn dtog_rx(&mut self) -> BitWriterRaw<'_, u32, EPR_SPEC, bool, BitM, 14>
pub fn dtog_rx(&mut self) -> BitWriterRaw<'_, u32, EPR_SPEC, bool, BitM, 14>
Bit 14 - Data Toggle, for reception transfers
Methods from Deref<Target = W<EPR_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.