Struct esp32s2::apb_saradc::ctrl2::W
source · pub struct W(_);
Expand description
Register CTRL2
writer
Implementations§
source§impl W
impl W
sourcepub fn meas_num_limit(&mut self) -> MEAS_NUM_LIMIT_W<'_, 0>
pub fn meas_num_limit(&mut self) -> MEAS_NUM_LIMIT_W<'_, 0>
Bit 0 - Enable limit times of SAR ADC sample.
sourcepub fn max_meas_num(&mut self) -> MAX_MEAS_NUM_W<'_, 1>
pub fn max_meas_num(&mut self) -> MAX_MEAS_NUM_W<'_, 1>
Bits 1:8 - Set maximum conversion number.
sourcepub fn sar1_inv(&mut self) -> SAR1_INV_W<'_, 9>
pub fn sar1_inv(&mut self) -> SAR1_INV_W<'_, 9>
Bit 9 - 1: data to DIG ADC1 CTRL is inverted, otherwise not.
sourcepub fn sar2_inv(&mut self) -> SAR2_INV_W<'_, 10>
pub fn sar2_inv(&mut self) -> SAR2_INV_W<'_, 10>
Bit 10 - 1: data to DIG ADC2 CTRL is inverted, otherwise not.
sourcepub fn timer_sel(&mut self) -> TIMER_SEL_W<'_, 11>
pub fn timer_sel(&mut self) -> TIMER_SEL_W<'_, 11>
Bit 11 - 1: select saradc timer 0: i2s_ws trigger
sourcepub fn timer_target(&mut self) -> TIMER_TARGET_W<'_, 12>
pub fn timer_target(&mut self) -> TIMER_TARGET_W<'_, 12>
Bits 12:23 - Set SAR ADC timer target.
sourcepub fn timer_en(&mut self) -> TIMER_EN_W<'_, 24>
pub fn timer_en(&mut self) -> TIMER_EN_W<'_, 24>
Bit 24 - Enable SAR ADC timer trigger.
Methods from Deref<Target = W<CTRL2_SPEC>>§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more