Struct esp32c2_hal::pac::i2c0::clk_conf::R
pub struct R(_);
Expand description
Register CLK_CONF
reader
Implementations
impl R
impl R
pub fn sclk_div_num(&self) -> FieldReaderRaw<u8, u8>
pub fn sclk_div_num(&self) -> FieldReaderRaw<u8, u8>
Bits 0:7 - the integral part of the fractional divisor for i2c module
pub fn sclk_div_a(&self) -> FieldReaderRaw<u8, u8>
pub fn sclk_div_a(&self) -> FieldReaderRaw<u8, u8>
Bits 8:13 - the numerator of the fractional part of the fractional divisor for i2c module
pub fn sclk_div_b(&self) -> FieldReaderRaw<u8, u8>
pub fn sclk_div_b(&self) -> FieldReaderRaw<u8, u8>
Bits 14:19 - the denominator of the fractional part of the fractional divisor for i2c module
pub fn sclk_sel(&self) -> BitReaderRaw<bool>
pub fn sclk_sel(&self) -> BitReaderRaw<bool>
Bit 20 - The clock selection for i2c module:0-XTAL,1-CLK_8MHz.
pub fn sclk_active(&self) -> BitReaderRaw<bool>
pub fn sclk_active(&self) -> BitReaderRaw<bool>
Bit 21 - The clock switch for i2c module
Methods from Deref<Target = R<CLK_CONF_SPEC>>
pub fn bits(&self) -> <REG as RegisterSpec>::Ux
pub fn bits(&self) -> <REG as RegisterSpec>::Ux
Reads raw bits from register.
Trait Implementations
impl From<R<CLK_CONF_SPEC>> for R
impl From<R<CLK_CONF_SPEC>> for R
fn from(reader: R<CLK_CONF_SPEC>) -> R
fn from(reader: R<CLK_CONF_SPEC>) -> R
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