Type Alias esp32::uart0::clkdiv::W

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

Register CLKDIV writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn clkdiv(&mut self) -> CLKDIV_W<'_, CLKDIV_SPEC>

Bits 0:19 - The register value is the integer part of the frequency divider’s factor.

source

pub fn frag(&mut self) -> FRAG_W<'_, CLKDIV_SPEC>

Bits 20:23 - The register value is the decimal part of the frequency divider’s factor.

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