Type Alias esp32::sdhost::cardthrctl::W

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

Register CARDTHRCTL writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn cardrdthren(&mut self) -> CARDRDTHREN_W<'_, CARDTHRCTL_SPEC>

Bit 0 - Card read threshold enable. 1’b0-Card read threshold disabled. 1’b1-Card read threshold enabled.

source

pub fn cardclrinten(&mut self) -> CARDCLRINTEN_W<'_, CARDTHRCTL_SPEC>

Bit 1 - Busy clear interrupt generation: 1’b0-Busy clear interrypt disabled. 1’b1-Busy clear interrypt enabled.

source

pub fn cardwrthren(&mut self) -> CARDWRTHREN_W<'_, CARDTHRCTL_SPEC>

Bit 2 - Applicable when HS400 mode is enabled. 1’b0-Card write Threshold disabled. 1’b1-Card write Threshold enabled.

source

pub fn cardthreshold(&mut self) -> CARDTHRESHOLD_W<'_, CARDTHRCTL_SPEC>

Bits 16:31 - The inside FIFO size is 512,This register is applicable when SDHOST_CARDERTHREN_REG is set to 1 or SDHOST_CARDRDTHREN_REG set to 1.

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