esp32h2::pcr::i2c1_sclk_conf

Type Alias R

Source
pub type R = R<I2C1_SCLK_CONF_SPEC>;
Expand description

Register I2C1_SCLK_CONF reader

Aliased Type§

struct R { /* private fields */ }

Implementations§

Source§

impl R

Source

pub fn i2c1_sclk_div_a(&self) -> I2C1_SCLK_DIV_A_R

Bits 0:5 - The denominator of the frequency divider factor of the i2c function clock.

Source

pub fn i2c1_sclk_div_b(&self) -> I2C1_SCLK_DIV_B_R

Bits 6:11 - The numerator of the frequency divider factor of the i2c function clock.

Source

pub fn i2c1_sclk_div_num(&self) -> I2C1_SCLK_DIV_NUM_R

Bits 12:19 - The integral part of the frequency divider factor of the i2c function clock.

Source

pub fn i2c1_sclk_sel(&self) -> I2C1_SCLK_SEL_R

Bit 20 - set this field to select clock-source. 0(default): XTAL, 1: FOSC.

Source

pub fn i2c1_sclk_en(&self) -> I2C1_SCLK_EN_R

Bit 22 - Set 1 to enable i2c function clock