Struct esp32c2_hal::pac::i2c0::clk_conf::W
pub struct W(_);
Expand description
Register CLK_CONF
writer
Implementations§
§impl W
impl W
pub fn sclk_div_num(
&mut self
) -> FieldWriterRaw<'_, u32, CLK_CONF_SPEC, u8, u8, Unsafe, 8, 0>
pub fn sclk_div_num(
&mut self
) -> FieldWriterRaw<'_, u32, CLK_CONF_SPEC, u8, u8, Unsafe, 8, 0>
Bits 0:7 - the integral part of the fractional divisor for i2c module
pub fn sclk_div_a(
&mut self
) -> FieldWriterRaw<'_, u32, CLK_CONF_SPEC, u8, u8, Unsafe, 6, 8>
pub fn sclk_div_a(
&mut self
) -> FieldWriterRaw<'_, u32, CLK_CONF_SPEC, u8, u8, Unsafe, 6, 8>
Bits 8:13 - the numerator of the fractional part of the fractional divisor for i2c module
pub fn sclk_div_b(
&mut self
) -> FieldWriterRaw<'_, u32, CLK_CONF_SPEC, u8, u8, Unsafe, 6, 14>
pub fn sclk_div_b(
&mut self
) -> FieldWriterRaw<'_, u32, CLK_CONF_SPEC, u8, u8, Unsafe, 6, 14>
Bits 14:19 - the denominator of the fractional part of the fractional divisor for i2c module
pub fn sclk_sel(
&mut self
) -> BitWriterRaw<'_, u32, CLK_CONF_SPEC, bool, BitM, 20>
pub fn sclk_sel(
&mut self
) -> BitWriterRaw<'_, u32, CLK_CONF_SPEC, bool, BitM, 20>
Bit 20 - The clock selection for i2c module:0-XTAL,1-CLK_8MHz.
pub fn sclk_active(
&mut self
) -> BitWriterRaw<'_, u32, CLK_CONF_SPEC, bool, BitM, 21>
pub fn sclk_active(
&mut self
) -> BitWriterRaw<'_, u32, CLK_CONF_SPEC, bool, BitM, 21>
Bit 21 - The clock switch for i2c module
Methods from Deref<Target = W<CLK_CONF_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<CLK_CONF_SPEC>> for W
impl From<W<CLK_CONF_SPEC>> for W
§fn from(writer: W<CLK_CONF_SPEC>) -> W
fn from(writer: W<CLK_CONF_SPEC>) -> W
Converts to this type from the input type.