Struct esp32c3_hal::pac::usb_device::conf0::R
pub struct R(_);
Expand description
Register CONF0
reader
Implementations
impl R
impl R
pub fn exchg_pins_override(&self) -> BitReaderRaw<bool>
pub fn exchg_pins_override(&self) -> BitReaderRaw<bool>
Bit 1 - Enable software control USB D+ D- exchange
pub fn exchg_pins(&self) -> BitReaderRaw<bool>
pub fn exchg_pins(&self) -> BitReaderRaw<bool>
Bit 2 - USB D+ D- exchange
pub fn vrefh(&self) -> FieldReaderRaw<u8, u8>
pub fn vrefh(&self) -> FieldReaderRaw<u8, u8>
Bits 3:4 - Control single-end input high threshold,1.76V to 2V, step 80mV
pub fn vrefl(&self) -> FieldReaderRaw<u8, u8>
pub fn vrefl(&self) -> FieldReaderRaw<u8, u8>
Bits 5:6 - Control single-end input low threshold,0.8V to 1.04V, step 80mV
pub fn vref_override(&self) -> BitReaderRaw<bool>
pub fn vref_override(&self) -> BitReaderRaw<bool>
Bit 7 - Enable software control input threshold
pub fn pad_pull_override(&self) -> BitReaderRaw<bool>
pub fn pad_pull_override(&self) -> BitReaderRaw<bool>
Bit 8 - Enable software control USB D+ D- pullup pulldown
pub fn dp_pulldown(&self) -> BitReaderRaw<bool>
pub fn dp_pulldown(&self) -> BitReaderRaw<bool>
Bit 10 - Control USB D+ pull down.
pub fn dm_pulldown(&self) -> BitReaderRaw<bool>
pub fn dm_pulldown(&self) -> BitReaderRaw<bool>
Bit 12 - Control USB D- pull down.
pub fn pullup_value(&self) -> BitReaderRaw<bool>
pub fn pullup_value(&self) -> BitReaderRaw<bool>
Bit 13 - Control pull up value.
pub fn usb_pad_enable(&self) -> BitReaderRaw<bool>
pub fn usb_pad_enable(&self) -> BitReaderRaw<bool>
Bit 14 - Enable USB pad function.
Methods from Deref<Target = R<CONF0_SPEC>>
pub fn bits(&self) -> <REG as RegisterSpec>::Ux
pub fn bits(&self) -> <REG as RegisterSpec>::Ux
Reads raw bits from register.
Trait Implementations
impl From<R<CONF0_SPEC>> for R
impl From<R<CONF0_SPEC>> for R
fn from(reader: R<CONF0_SPEC>) -> R
fn from(reader: R<CONF0_SPEC>) -> R
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