Struct esp32s2::apb_saradc::ctrl2::R
source · pub struct R(_);Expand description
Register CTRL2 reader
Implementations§
source§impl R
impl R
sourcepub fn meas_num_limit(&self) -> MEAS_NUM_LIMIT_R
pub fn meas_num_limit(&self) -> MEAS_NUM_LIMIT_R
Bit 0 - Enable limit times of SAR ADC sample.
sourcepub fn max_meas_num(&self) -> MAX_MEAS_NUM_R
pub fn max_meas_num(&self) -> MAX_MEAS_NUM_R
Bits 1:8 - Set maximum conversion number.
sourcepub fn sar1_inv(&self) -> SAR1_INV_R
pub fn sar1_inv(&self) -> SAR1_INV_R
Bit 9 - 1: data to DIG ADC1 CTRL is inverted, otherwise not.
sourcepub fn sar2_inv(&self) -> SAR2_INV_R
pub fn sar2_inv(&self) -> SAR2_INV_R
Bit 10 - 1: data to DIG ADC2 CTRL is inverted, otherwise not.
sourcepub fn timer_sel(&self) -> TIMER_SEL_R
pub fn timer_sel(&self) -> TIMER_SEL_R
Bit 11 - 1: select saradc timer 0: i2s_ws trigger
sourcepub fn timer_target(&self) -> TIMER_TARGET_R
pub fn timer_target(&self) -> TIMER_TARGET_R
Bits 12:23 - Set SAR ADC timer target.
sourcepub fn timer_en(&self) -> TIMER_EN_R
pub fn timer_en(&self) -> TIMER_EN_R
Bit 24 - Enable SAR ADC timer trigger.