Struct esp32c3_hal::pac::usb_device::mem_conf::W
pub struct W(_);
Expand description
Register MEM_CONF
writer
Implementations
impl W
impl W
pub fn usb_mem_pd(
&mut self
) -> BitWriterRaw<'_, u32, MEM_CONF_SPEC, bool, BitM, 0>
pub fn usb_mem_pd(
&mut self
) -> BitWriterRaw<'_, u32, MEM_CONF_SPEC, bool, BitM, 0>
Bit 0 - 1: power down usb memory.
pub fn usb_mem_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, MEM_CONF_SPEC, bool, BitM, 1>
pub fn usb_mem_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, MEM_CONF_SPEC, bool, BitM, 1>
Bit 1 - 1: Force clock on for usb memory.
Methods from Deref<Target = W<MEM_CONF_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<MEM_CONF_SPEC>> for W
impl From<W<MEM_CONF_SPEC>> for W
fn from(writer: W<MEM_CONF_SPEC>) -> W
fn from(writer: W<MEM_CONF_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