pub type W = W<CTRL_SPEC>;
Expand description
Register CTRL
writer
Aliased Type§
struct W { /* private fields */ }
Implementations§
Source§impl W
impl W
Sourcepub fn sda_force_out(&mut self) -> SDA_FORCE_OUT_W<'_, CTRL_SPEC>
pub fn sda_force_out(&mut self) -> SDA_FORCE_OUT_W<'_, CTRL_SPEC>
Bit 0 - SDA output mode. 0: open drain. 1: push pull.
Sourcepub fn scl_force_out(&mut self) -> SCL_FORCE_OUT_W<'_, CTRL_SPEC>
pub fn scl_force_out(&mut self) -> SCL_FORCE_OUT_W<'_, CTRL_SPEC>
Bit 1 - SCL output mode. 0: open drain. 1: push pull.
Sourcepub fn ms_mode(&mut self) -> MS_MODE_W<'_, CTRL_SPEC>
pub fn ms_mode(&mut self) -> MS_MODE_W<'_, CTRL_SPEC>
Bit 2 - Set this bit to configure RTC I²C as a master.
Sourcepub fn trans_start(&mut self) -> TRANS_START_W<'_, CTRL_SPEC>
pub fn trans_start(&mut self) -> TRANS_START_W<'_, CTRL_SPEC>
Bit 3 - Set this bit to 1, RTC I2C starts sending data.
Sourcepub fn tx_lsb_first(&mut self) -> TX_LSB_FIRST_W<'_, CTRL_SPEC>
pub fn tx_lsb_first(&mut self) -> TX_LSB_FIRST_W<'_, CTRL_SPEC>
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.
Sourcepub fn rx_lsb_first(&mut self) -> RX_LSB_FIRST_W<'_, CTRL_SPEC>
pub fn rx_lsb_first(&mut self) -> RX_LSB_FIRST_W<'_, CTRL_SPEC>
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.
Sourcepub fn clk_gate_en(&mut self) -> CLK_GATE_EN_W<'_, CTRL_SPEC>
pub fn clk_gate_en(&mut self) -> CLK_GATE_EN_W<'_, CTRL_SPEC>
Bit 29 - RTC I²C controller clock gate.