Type Alias esp32s3_ulp::rtc_i2c::ctrl::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 - 1=push pull,0=open drain

source

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

Bit 1 - 1=push pull,0=open drain

source

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

Bit 2 - 1=master,0=slave

source

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

Bit 3 - force start

source

pub fn tx_lsb_first(&mut self) -> TX_LSB_FIRST_W<'_, CTRL_SPEC>

Bit 4 - transit lsb first

source

pub fn rx_lsb_first(&mut self) -> RX_LSB_FIRST_W<'_, CTRL_SPEC>

Bit 5 - receive lsb first

source

pub fn i2c_ctrl_clk_gate_en(&mut self) -> I2C_CTRL_CLK_GATE_EN_W<'_, CTRL_SPEC>

Bit 29 - configure i2c ctrl clk enable

source

pub fn i2c_reset(&mut self) -> I2C_RESET_W<'_, CTRL_SPEC>

Bit 30 - rtc i2c sw reset

source

pub fn i2cclk_en(&mut self) -> I2CCLK_EN_W<'_, CTRL_SPEC>

Bit 31 - rtc i2c reg clk gating

source

pub unsafe fn bits(&mut self, bits: u32) -> &mut Self

Writes raw bits to the register.

Safety

Passing incorrect value can cause undefined behaviour. See reference manual