Struct esp32s3::usb_wrap::otg_conf::W

source ·
pub struct W(_);
Expand description

Register OTG_CONF writer

Implementations§

source§

impl W

source

pub fn srp_sessend_override(&mut self) -> SRP_SESSEND_OVERRIDE_W<'_, 0>

Bit 0 - This bit is used to enable the software over-ride of srp session end signal. 1’b0: the signal is controlled by the chip input. 1’b1: the signal is controlled by the software.

source

pub fn srp_sessend_value(&mut self) -> SRP_SESSEND_VALUE_W<'_, 1>

Bit 1 - Software over-ride value of srp session end signal.

source

pub fn phy_sel(&mut self) -> PHY_SEL_W<'_, 2>

Bit 2 - Select internal external PHY. 1’b0: Select internal PHY. 1’b1: Select external PHY.

source

pub fn dfifo_force_pd(&mut self) -> DFIFO_FORCE_PD_W<'_, 3>

Bit 3 - Force the dfifo to go into low power mode. The data in dfifo will not lost.

source

pub fn dbnce_fltr_bypass(&mut self) -> DBNCE_FLTR_BYPASS_W<'_, 4>

Bit 4 - Bypass Debounce filters for avalid,bvalid,vbusvalid,session end, id signals

source

pub fn exchg_pins_override(&mut self) -> EXCHG_PINS_OVERRIDE_W<'_, 5>

Bit 5 - Enable software controlle USB D+ D- exchange

source

pub fn exchg_pins(&mut self) -> EXCHG_PINS_W<'_, 6>

Bit 6 - USB D+ D- exchange. 1’b0: don’t change. 1’b1: exchange D+ D-

source

pub fn vrefh(&mut self) -> VREFH_W<'_, 7>

Bits 7:8 - Control single-end input high threshold,1.76V to 2V, step 80mV

source

pub fn vrefl(&mut self) -> VREFL_W<'_, 9>

Bits 9:10 - Control single-end input low threshold,0.8V to 1.04V, step 80mV

source

pub fn vref_override(&mut self) -> VREF_OVERRIDE_W<'_, 11>

Bit 11 - Enable software controlle input threshold

source

pub fn pad_pull_override(&mut self) -> PAD_PULL_OVERRIDE_W<'_, 12>

Bit 12 - Enable software controlle USB D+ D- pullup pulldown

source

pub fn dp_pullup(&mut self) -> DP_PULLUP_W<'_, 13>

Bit 13 - Controlle USB D+ pullup

source

pub fn dp_pulldown(&mut self) -> DP_PULLDOWN_W<'_, 14>

Bit 14 - Controlle USB D+ pulldown

source

pub fn dm_pullup(&mut self) -> DM_PULLUP_W<'_, 15>

Bit 15 - Controlle USB D+ pullup

source

pub fn dm_pulldown(&mut self) -> DM_PULLDOWN_W<'_, 16>

Bit 16 - Controlle USB D+ pulldown

source

pub fn pullup_value(&mut self) -> PULLUP_VALUE_W<'_, 17>

Bit 17 - Controlle pullup value. 1’b0: typical value is 2.4K. 1’b1: typical value is 1.2K.

source

pub fn usb_pad_enable(&mut self) -> USB_PAD_ENABLE_W<'_, 18>

Bit 18 - Enable USB pad function

source

pub fn ahb_clk_force_on(&mut self) -> AHB_CLK_FORCE_ON_W<'_, 19>

Bit 19 - Force ahb clock always on

source

pub fn phy_clk_force_on(&mut self) -> PHY_CLK_FORCE_ON_W<'_, 20>

Bit 20 - Force phy clock always on

source

pub fn phy_tx_edge_sel(&mut self) -> PHY_TX_EDGE_SEL_W<'_, 21>

Bit 21 - Select phy tx signal output clock edge. 1’b0: negedge. 1’b1: posedge.

source

pub fn dfifo_force_pu(&mut self) -> DFIFO_FORCE_PU_W<'_, 22>

Bit 22 - Disable the dfifo to go into low power mode. The data in dfifo will not lost.

source

pub fn clk_en(&mut self) -> CLK_EN_W<'_, 31>

Bit 31 - Disable auto clock gating of CSR registers

source

pub unsafe fn bits(&mut self, bits: u32) -> &mut Self

Writes raw bits to the register.

Methods from Deref<Target = W<OTG_CONF_SPEC>>§

source

pub unsafe fn bits(&mut self, bits: REG::Ux) -> &mut Self

Writes raw bits to the register.

Safety

Read datasheet or reference manual to find what values are allowed to pass.

Trait Implementations§

source§

impl Deref for W

§

type Target = W<OTG_CONF_SPEC>

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl DerefMut for W

source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
source§

impl From<W<OTG_CONF_SPEC>> for W

source§

fn from(writer: W<OTG_CONF_SPEC>) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

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> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.