Type Alias esp32c6::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:11 - The integral part of the frequency divider factor.

source

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

Bits 20:23 - The decimal part of the frequency divider 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