Type Alias esp32h2::usb_device::mem_conf::W

source ·
pub type W = W<MEM_CONF_SPEC>;
Expand description

Register MEM_CONF writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn usb_mem_pd(&mut self) -> USB_MEM_PD_W<'_, MEM_CONF_SPEC, 0>

Bit 0 - 1: power down usb memory.

source

pub fn usb_mem_clk_en(&mut self) -> USB_MEM_CLK_EN_W<'_, MEM_CONF_SPEC, 1>

Bit 1 - 1: Force clock on for usb memory.

source

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

Writes raw bits to the register.

Safety

Passing incorrect value can cause undefined behaviour. See reference manual