Type Alias esp32c3::rtc_cntl::sdio_conf::W

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

Register SDIO_CONF writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn sdio_timer_target(&mut self) -> SDIO_TIMER_TARGET_W<'_, SDIO_CONF_SPEC>

Bits 0:7 - timer count to apply reg_sdio_dcap after sdio power on

source

pub fn sdio_dthdrv(&mut self) -> SDIO_DTHDRV_W<'_, SDIO_CONF_SPEC>

Bits 9:10 - Tieh = 1 mode drive ability. Initially set to 0 to limit charge current

source

pub fn sdio_dcap(&mut self) -> SDIO_DCAP_W<'_, SDIO_CONF_SPEC>

Bits 11:12 - ability to prevent LDO from overshoot

source

pub fn sdio_initi(&mut self) -> SDIO_INITI_W<'_, SDIO_CONF_SPEC>

Bits 13:14 - add resistor from ldo output to ground. 0: no res

source

pub fn sdio_en_initi(&mut self) -> SDIO_EN_INITI_W<'_, SDIO_CONF_SPEC>

Bit 15 - 0 to set init[1:0]=0

source

pub fn sdio_dcurlim(&mut self) -> SDIO_DCURLIM_W<'_, SDIO_CONF_SPEC>

Bits 16:18 - tune current limit threshold when tieh = 0. About 800mA/(8+d)

source

pub fn sdio_modecurlim(&mut self) -> SDIO_MODECURLIM_W<'_, SDIO_CONF_SPEC>

Bit 19 - select current limit mode

source

pub fn sdio_encurlim(&mut self) -> SDIO_ENCURLIM_W<'_, SDIO_CONF_SPEC>

Bit 20 - enable current limit

source

pub fn sdio_reg_pd_en(&mut self) -> SDIO_REG_PD_EN_W<'_, SDIO_CONF_SPEC>

Bit 21 - power down SDIO_REG in sleep. Only active when reg_sdio_force = 0

source

pub fn sdio_force(&mut self) -> SDIO_FORCE_W<'_, SDIO_CONF_SPEC>

Bit 22 - 1: use SW option to control SDIO_REG

source

pub fn sdio_tieh(&mut self) -> SDIO_TIEH_W<'_, SDIO_CONF_SPEC>

Bit 23 - SW option for SDIO_TIEH. Only active when reg_sdio_force = 1

source

pub fn drefl_sdio(&mut self) -> DREFL_SDIO_W<'_, SDIO_CONF_SPEC>

Bits 25:26 - SW option for DREFL_SDIO. Only active when reg_sdio_force = 1

source

pub fn drefm_sdio(&mut self) -> DREFM_SDIO_W<'_, SDIO_CONF_SPEC>

Bits 27:28 - SW option for DREFM_SDIO. Only active when reg_sdio_force = 1

source

pub fn drefh_sdio(&mut self) -> DREFH_SDIO_W<'_, SDIO_CONF_SPEC>

Bits 29:30 - SW option for DREFH_SDIO. Only active when reg_sdio_force = 1

source

pub fn xpd_sdio(&mut self) -> XPD_SDIO_W<'_, SDIO_CONF_SPEC>

Bit 31