Type Alias esp32::sdhost::clksrc::W

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

Register CLKSRC writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn clksrc(&mut self) -> CLKSRC_W<'_, CLKSRC_SPEC>

Bits 0:3 - Clock divider source for two SD cards is supported. Each card has two bits assigned to it. For example, bit[1:0] are assigned for card 0, bit[3:2] are assigned for card 1. Card 0 maps and internally routes clock divider[0:3] outputs to cclk_out[1:0] pins, depending on bit value. 00 : Clock divider 0; 01 : Clock divider 1; 10 : Clock divider 2; 11 : Clock divider 3.

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