Type Alias esp32::sdhost::clkdiv::R

source ·
pub type R = R<CLKDIV_SPEC>;
Expand description

Register CLKDIV reader

Aliased Type§

struct R { /* private fields */ }

Implementations§

source§

impl R

source

pub fn clk_divider0(&self) -> CLK_DIVIDER0_R

Bits 0:7 - Clock divider0 value. Clock divisor is 2n, where n = 0 bypasses the divider (divisor of 1). For example, a value of 1 means divided by 21 = 2, a value of 0xFF means divided by 2*255 = 510, and so on.

source

pub fn clk_divider1(&self) -> CLK_DIVIDER1_R

Bits 8:15 - Clock divider1 value. Clock divisor is 2n, where n = 0 bypasses the divider (divisor of 1). For example, a value of 1 means divided by 21 = 2, a value of 0xFF means divided by 2*255 = 510, and so on.

source

pub fn clk_divider2(&self) -> CLK_DIVIDER2_R

Bits 16:23 - Clock divider2 value. Clock divisor is 2n, where n = 0 bypasses the divider (divisor of 1). For example, a value of 1 means divided by 21 = 2, a value of 0xFF means divided by 2*255 = 510, and so on.

source

pub fn clk_divider3(&self) -> CLK_DIVIDER3_R

Bits 24:31 - Clock divider3 value. Clock divisor is 2n, where n = 0 bypasses the divider (divisor of 1). For example, a value of 1 means divided by 21 = 2, a value of 0xFF means divided by 2*255 = 510, and so on.