esp32s2/apb_saradc/
int_raw.rs1#[doc = "Register `INT_RAW` reader"]
2pub type R = crate::R<INT_RAW_SPEC>;
3#[doc = "Field `ADC2_THRES` reader - Raw bit of APB_SARADC_ADC2_THRES_INT interrupt."]
4pub type ADC2_THRES_R = crate::BitReader;
5#[doc = "Field `ADC1_THRES` reader - Raw bit of APB_SARADC_ADC1_THRES_INT interrupt."]
6pub type ADC1_THRES_R = crate::BitReader;
7#[doc = "Field `ADC2_DONE` reader - Raw bit of APB_SARADC_ADC2_DONE_INT interrupt."]
8pub type ADC2_DONE_R = crate::BitReader;
9#[doc = "Field `ADC1_DONE` reader - Raw bit of APB_SARADC_ADC1_DONE_INT interrupt."]
10pub type ADC1_DONE_R = crate::BitReader;
11impl R {
12 #[doc = "Bit 28 - Raw bit of APB_SARADC_ADC2_THRES_INT interrupt."]
13 #[inline(always)]
14 pub fn adc2_thres(&self) -> ADC2_THRES_R {
15 ADC2_THRES_R::new(((self.bits >> 28) & 1) != 0)
16 }
17 #[doc = "Bit 29 - Raw bit of APB_SARADC_ADC1_THRES_INT interrupt."]
18 #[inline(always)]
19 pub fn adc1_thres(&self) -> ADC1_THRES_R {
20 ADC1_THRES_R::new(((self.bits >> 29) & 1) != 0)
21 }
22 #[doc = "Bit 30 - Raw bit of APB_SARADC_ADC2_DONE_INT interrupt."]
23 #[inline(always)]
24 pub fn adc2_done(&self) -> ADC2_DONE_R {
25 ADC2_DONE_R::new(((self.bits >> 30) & 1) != 0)
26 }
27 #[doc = "Bit 31 - Raw bit of APB_SARADC_ADC1_DONE_INT interrupt."]
28 #[inline(always)]
29 pub fn adc1_done(&self) -> ADC1_DONE_R {
30 ADC1_DONE_R::new(((self.bits >> 31) & 1) != 0)
31 }
32}
33#[cfg(feature = "impl-register-debug")]
34impl core::fmt::Debug for R {
35 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
36 f.debug_struct("INT_RAW")
37 .field("adc2_thres", &self.adc2_thres())
38 .field("adc1_thres", &self.adc1_thres())
39 .field("adc2_done", &self.adc2_done())
40 .field("adc1_done", &self.adc1_done())
41 .finish()
42 }
43}
44#[doc = "DIG ADC interrupt raw bits\n\nYou can [`read`](crate::Reg::read) this register and get [`int_raw::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
45pub struct INT_RAW_SPEC;
46impl crate::RegisterSpec for INT_RAW_SPEC {
47 type Ux = u32;
48}
49#[doc = "`read()` method returns [`int_raw::R`](R) reader structure"]
50impl crate::Readable for INT_RAW_SPEC {}
51#[doc = "`reset()` method sets INT_RAW to value 0"]
52impl crate::Resettable for INT_RAW_SPEC {}