Struct esp32s2::apb_saradc::thres_ctrl::W
source · pub struct W(_);
Expand description
Register THRES_CTRL
writer
Implementations§
source§impl W
impl W
sourcepub fn adc2_thres_mode(&mut self) -> ADC2_THRES_MODE_W<'_, 2>
pub fn adc2_thres_mode(&mut self) -> ADC2_THRES_MODE_W<'_, 2>
Bit 2 - 1: ADC_DATA > = threshold, generate interrupt. 0: ADC_DATA < threshold, generate interrupt.
sourcepub fn adc1_thres_mode(&mut self) -> ADC1_THRES_MODE_W<'_, 3>
pub fn adc1_thres_mode(&mut self) -> ADC1_THRES_MODE_W<'_, 3>
Bit 3 - 1: ADC_DATA > = threshold, generate interrupt. 0: ADC_DATA < threshold, generate interrupt.
sourcepub fn adc2_thres(&mut self) -> ADC2_THRES_W<'_, 4>
pub fn adc2_thres(&mut self) -> ADC2_THRES_W<'_, 4>
Bits 4:16 - ADC2 threshold.
sourcepub fn adc1_thres(&mut self) -> ADC1_THRES_W<'_, 17>
pub fn adc1_thres(&mut self) -> ADC1_THRES_W<'_, 17>
Bits 17:29 - ADC1 threshold.
sourcepub fn adc2_thres_en(&mut self) -> ADC2_THRES_EN_W<'_, 30>
pub fn adc2_thres_en(&mut self) -> ADC2_THRES_EN_W<'_, 30>
Bit 30 - Enable ADC2 threshold monitor.
sourcepub fn adc1_thres_en(&mut self) -> ADC1_THRES_EN_W<'_, 31>
pub fn adc1_thres_en(&mut self) -> ADC1_THRES_EN_W<'_, 31>
Bit 31 - Enable ADC1 threshold monitor.