Struct esp32::sens::sar_read_ctrl2::R
source · pub struct R(_);Expand description
Register SAR_READ_CTRL2 reader
Implementations§
source§impl R
impl R
sourcepub fn sar2_clk_div(&self) -> SAR2_CLK_DIV_R
pub fn sar2_clk_div(&self) -> SAR2_CLK_DIV_R
Bits 0:7 - clock divider
sourcepub fn sar2_sample_cycle(&self) -> SAR2_SAMPLE_CYCLE_R
pub fn sar2_sample_cycle(&self) -> SAR2_SAMPLE_CYCLE_R
Bits 8:15 - sample cycles for SAR ADC2
sourcepub fn sar2_sample_bit(&self) -> SAR2_SAMPLE_BIT_R
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
sourcepub fn sar2_clk_gated(&self) -> SAR2_CLK_GATED_R
pub fn sar2_clk_gated(&self) -> SAR2_CLK_GATED_R
Bit 18
sourcepub fn sar2_sample_num(&self) -> SAR2_SAMPLE_NUM_R
pub fn sar2_sample_num(&self) -> SAR2_SAMPLE_NUM_R
Bits 19:26
sourcepub fn sar2_pwdet_force(&self) -> SAR2_PWDET_FORCE_R
pub fn sar2_pwdet_force(&self) -> SAR2_PWDET_FORCE_R
Bit 27
sourcepub fn sar2_dig_force(&self) -> SAR2_DIG_FORCE_R
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
sourcepub fn sar2_data_inv(&self) -> SAR2_DATA_INV_R
pub fn sar2_data_inv(&self) -> SAR2_DATA_INV_R
Bit 29 - Invert SAR ADC2 data