pub struct W(_);
Expand description
Register CLKDIV
writer
Implementations§
§impl W
impl W
pub fn clk_divider0(
&mut self
) -> FieldWriterRaw<'_, u32, CLKDIV_SPEC, u8, u8, Unsafe, 8, 0>
pub fn clk_divider0(
&mut self
) -> FieldWriterRaw<'_, u32, CLKDIV_SPEC, u8, u8, Unsafe, 8, 0>
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.
pub fn clk_divider1(
&mut self
) -> FieldWriterRaw<'_, u32, CLKDIV_SPEC, u8, u8, Unsafe, 8, 8>
pub fn clk_divider1(
&mut self
) -> FieldWriterRaw<'_, u32, CLKDIV_SPEC, u8, u8, Unsafe, 8, 8>
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.
pub fn clk_divider2(
&mut self
) -> FieldWriterRaw<'_, u32, CLKDIV_SPEC, u8, u8, Unsafe, 8, 16>
pub fn clk_divider2(
&mut self
) -> FieldWriterRaw<'_, u32, CLKDIV_SPEC, u8, u8, Unsafe, 8, 16>
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.
pub fn clk_divider3(
&mut self
) -> FieldWriterRaw<'_, u32, CLKDIV_SPEC, u8, u8, Unsafe, 8, 24>
pub fn clk_divider3(
&mut self
) -> FieldWriterRaw<'_, u32, CLKDIV_SPEC, u8, u8, Unsafe, 8, 24>
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.
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.