Type Alias R

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

Register CTRL reader

Aliased Type§

struct R { /* private fields */ }

Implementations§

Source§

impl R

Source

pub fn sda_force_out(&self) -> SDA_FORCE_OUT_R

Bit 0 - SDA output mode. 0: open drain. 1: push pull.

Source

pub fn scl_force_out(&self) -> SCL_FORCE_OUT_R

Bit 1 - SCL output mode. 0: open drain. 1: push pull.

Source

pub fn ms_mode(&self) -> MS_MODE_R

Bit 2 - Set this bit to configure RTC I²C as a master.

Source

pub fn trans_start(&self) -> TRANS_START_R

Bit 3 - Set this bit to 1, RTC I2C starts sending data.

Source

pub fn tx_lsb_first(&self) -> TX_LSB_FIRST_R

Bit 4 - This bit is used to control the sending mode. 0: send data from the most significant bit. 1: send data from the least significant bit.

Source

pub fn rx_lsb_first(&self) -> RX_LSB_FIRST_R

Bit 5 - This bit is used to control the storage mode for received data. 0: receive data from the most significant bit. 1: receive data from the least significant bit.

Source

pub fn clk_gate_en(&self) -> CLK_GATE_EN_R

Bit 29 - RTC I²C controller clock gate.

Source

pub fn reset(&self) -> RESET_R

Bit 30 - RTC I²C software reset.

Source

pub fn clk_en(&self) -> CLK_EN_R

Bit 31 - rtc i2c reg clk gating