Type Alias esp32s2::sens::sar_i2c_ctrl::W

source ·
pub type W = W<SAR_I2C_CTRL_SPEC>;
Expand description

Register SAR_I2C_CTRL writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn sar_i2c_ctrl(&mut self) -> SAR_I2C_CTRL_W<'_, SAR_I2C_CTRL_SPEC>

Bits 0:27 - RTC I2C control data. Active only when SENS_SAR_I2C_START_FORCE = 1.

source

pub fn sar_i2c_start(&mut self) -> SAR_I2C_START_W<'_, SAR_I2C_CTRL_SPEC>

Bit 28 - Start RTC I2C. Active only when SENS_SAR_I2C_START_FORCE = 1

source

pub fn sar_i2c_start_force( &mut self ) -> SAR_I2C_START_FORCE_W<'_, SAR_I2C_CTRL_SPEC>

Bit 29 - 0: RTC I2C started by FSM. 1: RTC I2C started by software.

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