Struct esp32s2::apb_saradc::thres_ctrl::R
source · [−]pub struct R(_);
Expand description
Register THRES_CTRL
reader
Implementations
sourceimpl R
impl R
sourcepub fn adc2_thres_mode(&self) -> ADC2_THRES_MODE_R
pub fn adc2_thres_mode(&self) -> ADC2_THRES_MODE_R
Bit 2 - 1: ADC_DATA > = threshold, generate interrupt. 0: ADC_DATA < threshold, generate interrupt.
sourcepub fn adc1_thres_mode(&self) -> ADC1_THRES_MODE_R
pub fn adc1_thres_mode(&self) -> ADC1_THRES_MODE_R
Bit 3 - 1: ADC_DATA > = threshold, generate interrupt. 0: ADC_DATA < threshold, generate interrupt.
sourcepub fn adc2_thres(&self) -> ADC2_THRES_R
pub fn adc2_thres(&self) -> ADC2_THRES_R
Bits 4:16 - ADC2 threshold.
sourcepub fn adc1_thres(&self) -> ADC1_THRES_R
pub fn adc1_thres(&self) -> ADC1_THRES_R
Bits 17:29 - ADC1 threshold.
sourcepub fn adc2_thres_en(&self) -> ADC2_THRES_EN_R
pub fn adc2_thres_en(&self) -> ADC2_THRES_EN_R
Bit 30 - Enable ADC2 threshold monitor.
sourcepub fn adc1_thres_en(&self) -> ADC1_THRES_EN_R
pub fn adc1_thres_en(&self) -> ADC1_THRES_EN_R
Bit 31 - Enable ADC1 threshold monitor.
Methods from Deref<Target = R<THRES_CTRL_SPEC>>
Trait Implementations
sourceimpl From<R<THRES_CTRL_SPEC>> for R
impl From<R<THRES_CTRL_SPEC>> for R
sourcefn from(reader: R<THRES_CTRL_SPEC>) -> Self
fn from(reader: R<THRES_CTRL_SPEC>) -> Self
Converts to this type from the input type.
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more