Struct esp32c3_hal::pac::usb_device::conf0::W
pub struct W(_);
Expand description
Register CONF0
writer
Implementations
impl W
impl W
pub fn phy_sel(&mut self) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 0>
pub fn phy_sel(&mut self) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 0>
Bit 0 - Select internal/external PHY
pub fn exchg_pins_override(
&mut self
) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 1>
pub fn exchg_pins_override(
&mut self
) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 1>
Bit 1 - Enable software control USB D+ D- exchange
pub fn exchg_pins(&mut self) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 2>
pub fn exchg_pins(&mut self) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 2>
Bit 2 - USB D+ D- exchange
pub fn vrefh(
&mut self
) -> FieldWriterRaw<'_, u32, CONF0_SPEC, u8, u8, Unsafe, 2, 3>
pub fn vrefh(
&mut self
) -> FieldWriterRaw<'_, u32, CONF0_SPEC, u8, u8, Unsafe, 2, 3>
Bits 3:4 - Control single-end input high threshold,1.76V to 2V, step 80mV
pub fn vrefl(
&mut self
) -> FieldWriterRaw<'_, u32, CONF0_SPEC, u8, u8, Unsafe, 2, 5>
pub fn vrefl(
&mut self
) -> FieldWriterRaw<'_, u32, CONF0_SPEC, u8, u8, Unsafe, 2, 5>
Bits 5:6 - Control single-end input low threshold,0.8V to 1.04V, step 80mV
pub fn vref_override(
&mut self
) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 7>
pub fn vref_override(
&mut self
) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 7>
Bit 7 - Enable software control input threshold
pub fn pad_pull_override(
&mut self
) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 8>
pub fn pad_pull_override(
&mut self
) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 8>
Bit 8 - Enable software control USB D+ D- pullup pulldown
pub fn dp_pullup(&mut self) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 9>
pub fn dp_pullup(&mut self) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 9>
Bit 9 - Control USB D+ pull up.
pub fn dp_pulldown(
&mut self
) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 10>
pub fn dp_pulldown(
&mut self
) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 10>
Bit 10 - Control USB D+ pull down.
pub fn dm_pullup(&mut self) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 11>
pub fn dm_pullup(&mut self) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 11>
Bit 11 - Control USB D- pull up.
pub fn dm_pulldown(
&mut self
) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 12>
pub fn dm_pulldown(
&mut self
) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 12>
Bit 12 - Control USB D- pull down.
pub fn pullup_value(
&mut self
) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 13>
pub fn pullup_value(
&mut self
) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 13>
Bit 13 - Control pull up value.
pub fn usb_pad_enable(
&mut self
) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 14>
pub fn usb_pad_enable(
&mut self
) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 14>
Bit 14 - Enable USB pad function.
Methods from Deref<Target = W<CONF0_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.
Safety
Read datasheet or reference manual to find what values are allowed to pass.
Trait Implementations
impl From<W<CONF0_SPEC>> for W
impl From<W<CONF0_SPEC>> for W
fn from(writer: W<CONF0_SPEC>) -> W
fn from(writer: W<CONF0_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