Struct esp32c2_hal::pac::uart0::clkdiv::W
pub struct W(_);
Expand description
Register CLKDIV
writer
Implementations
impl W
impl W
pub fn clkdiv(
&mut self
) -> FieldWriterRaw<'_, u32, CLKDIV_SPEC, u16, u16, Unsafe, 12, 0>
pub fn clkdiv(
&mut self
) -> FieldWriterRaw<'_, u32, CLKDIV_SPEC, u16, u16, Unsafe, 12, 0>
Bits 0:11 - The integral part of the frequency divider factor.
pub fn frag(
&mut self
) -> FieldWriterRaw<'_, u32, CLKDIV_SPEC, u8, u8, Unsafe, 4, 20>
pub fn frag(
&mut self
) -> FieldWriterRaw<'_, u32, CLKDIV_SPEC, u8, u8, Unsafe, 4, 20>
Bits 20:23 - The decimal part of the frequency divider factor.
Methods from Deref<Target = W<CLKDIV_SPEC>>
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
Writes raw bits to the register.
Safety
Read datasheet or reference manual to find what values are allowed to pass.
Trait Implementations
impl From<W<CLKDIV_SPEC>> for W
impl From<W<CLKDIV_SPEC>> for W
fn from(writer: W<CLKDIV_SPEC>) -> W
fn from(writer: W<CLKDIV_SPEC>) -> W
Converts to this type from the input type.
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more