Type Alias esp32::sens::sar_read_ctrl2::R

source ·
pub type R = R<SAR_READ_CTRL2_SPEC>;
Expand description

Register SAR_READ_CTRL2 reader

Implementations§

source§

impl R

source

pub fn sar2_clk_div(&self) -> SAR2_CLK_DIV_R

Bits 0:7 - clock divider

source

pub fn sar2_sample_cycle(&self) -> SAR2_SAMPLE_CYCLE_R

Bits 8:15 - sample cycles for SAR ADC2

source

pub fn sar2_sample_bit(&self) -> SAR2_SAMPLE_BIT_R

Bits 16:17 - 00: for 9-bit width 01: for 10-bit width 10: for 11-bit width 11: for 12-bit width

source

pub fn sar2_clk_gated(&self) -> SAR2_CLK_GATED_R

Bit 18

source

pub fn sar2_sample_num(&self) -> SAR2_SAMPLE_NUM_R

Bits 19:26

source

pub fn sar2_pwdet_force(&self) -> SAR2_PWDET_FORCE_R

Bit 27

source

pub fn sar2_dig_force(&self) -> SAR2_DIG_FORCE_R

Bit 28 - 1: SAR ADC2 controlled by DIG ADC2 CTRL or PWDET CTRL 0: SAR ADC2 controlled by RTC ADC2 CTRL

source

pub fn sar2_data_inv(&self) -> SAR2_DATA_INV_R

Bit 29 - Invert SAR ADC2 data