Type Alias esp32s3::apb_saradc::ctrl2::W
source · pub type W = W<CTRL2_SPEC>;Expand description
Register CTRL2 writer
Aliased Type§
struct W { /* private fields */ }Implementations§
source§impl W
impl W
sourcepub fn meas_num_limit(&mut self) -> MEAS_NUM_LIMIT_W<'_, CTRL2_SPEC>
pub fn meas_num_limit(&mut self) -> MEAS_NUM_LIMIT_W<'_, CTRL2_SPEC>
Bit 0 - enable apb saradc limit the sample num
sourcepub fn max_meas_num(&mut self) -> MAX_MEAS_NUM_W<'_, CTRL2_SPEC>
pub fn max_meas_num(&mut self) -> MAX_MEAS_NUM_W<'_, CTRL2_SPEC>
Bits 1:8 - max conversion number
sourcepub fn sar1_inv(&mut self) -> SAR1_INV_W<'_, CTRL2_SPEC>
pub fn sar1_inv(&mut self) -> SAR1_INV_W<'_, CTRL2_SPEC>
Bit 9 - 1: data to DIG ADC1 CTRL is inverted, otherwise not
sourcepub fn sar2_inv(&mut self) -> SAR2_INV_W<'_, CTRL2_SPEC>
pub fn sar2_inv(&mut self) -> SAR2_INV_W<'_, CTRL2_SPEC>
Bit 10 - 1: data to DIG ADC2 CTRL is inverted, otherwise not
sourcepub fn timer_sel(&mut self) -> TIMER_SEL_W<'_, CTRL2_SPEC>
pub fn timer_sel(&mut self) -> TIMER_SEL_W<'_, CTRL2_SPEC>
Bit 11 - 1: select saradc timer 0: i2s_ws trigger
sourcepub fn timer_target(&mut self) -> TIMER_TARGET_W<'_, CTRL2_SPEC>
pub fn timer_target(&mut self) -> TIMER_TARGET_W<'_, CTRL2_SPEC>
Bits 12:23 - to set saradc timer target
sourcepub fn timer_en(&mut self) -> TIMER_EN_W<'_, CTRL2_SPEC>
pub fn timer_en(&mut self) -> TIMER_EN_W<'_, CTRL2_SPEC>
Bit 24 - to enable saradc timer trigger