Struct esp32c3_hal::pac::usb_device::conf0::W

pub struct W(_);
Expand description

Register CONF0 writer

Implementations

Bit 0 - Select internal/external PHY

Bit 1 - Enable software control USB D+ D- exchange

Bit 2 - USB D+ D- exchange

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

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

Bit 7 - Enable software control input threshold

Bit 8 - Enable software control USB D+ D- pullup pulldown

Bit 9 - Control USB D+ pull up.

Bit 10 - Control USB D+ pull down.

Bit 11 - Control USB D- pull up.

Bit 12 - Control USB D- pull down.

Bit 13 - Control pull up value.

Bit 14 - Enable USB pad function.

Writes raw bits to the register.

Methods from Deref<Target = W<CONF0_SPEC>>

Writes raw bits to the register.

Safety

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

Trait Implementations

The resulting type after dereferencing.
Dereferences the value.
Mutably dereferences the value.
Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.