Type Alias W

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

Register CTRL writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

Source§

impl W

Source

pub fn sda_force_out(&mut self) -> SDA_FORCE_OUT_W<'_, CTRL_SPEC>

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

Source

pub fn scl_force_out(&mut self) -> SCL_FORCE_OUT_W<'_, CTRL_SPEC>

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

Source

pub fn ms_mode(&mut self) -> MS_MODE_W<'_, CTRL_SPEC>

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

Source

pub fn trans_start(&mut self) -> TRANS_START_W<'_, CTRL_SPEC>

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

Source

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.

Source

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.

Source

pub fn clk_gate_en(&mut self) -> CLK_GATE_EN_W<'_, CTRL_SPEC>

Bit 29 - RTC I²C controller clock gate.

Source

pub fn reset(&mut self) -> RESET_W<'_, CTRL_SPEC>

Bit 30 - RTC I²C software reset.

Source

pub fn clk_en(&mut self) -> CLK_EN_W<'_, CTRL_SPEC>

Bit 31 - rtc i2c reg clk gating