esp32c3/apb_saradc/
int_st.rs1#[doc = "Register `INT_ST` reader"]
2pub type R = crate::R<INT_ST_SPEC>;
3#[doc = "Field `THRES1_LOW` reader - saradc thres1 low interrupt state"]
4pub type THRES1_LOW_R = crate::BitReader;
5#[doc = "Field `THRES0_LOW` reader - saradc thres0 low interrupt state"]
6pub type THRES0_LOW_R = crate::BitReader;
7#[doc = "Field `THRES1_HIGH` reader - saradc thres1 high interrupt state"]
8pub type THRES1_HIGH_R = crate::BitReader;
9#[doc = "Field `THRES0_HIGH` reader - saradc thres0 high interrupt state"]
10pub type THRES0_HIGH_R = crate::BitReader;
11#[doc = "Field `ADC2_DONE` reader - saradc2 done interrupt state"]
12pub type ADC2_DONE_R = crate::BitReader;
13#[doc = "Field `ADC1_DONE` reader - saradc1 done interrupt state"]
14pub type ADC1_DONE_R = crate::BitReader;
15impl R {
16 #[doc = "Bit 26 - saradc thres1 low interrupt state"]
17 #[inline(always)]
18 pub fn thres1_low(&self) -> THRES1_LOW_R {
19 THRES1_LOW_R::new(((self.bits >> 26) & 1) != 0)
20 }
21 #[doc = "Bit 27 - saradc thres0 low interrupt state"]
22 #[inline(always)]
23 pub fn thres0_low(&self) -> THRES0_LOW_R {
24 THRES0_LOW_R::new(((self.bits >> 27) & 1) != 0)
25 }
26 #[doc = "Bit 28 - saradc thres1 high interrupt state"]
27 #[inline(always)]
28 pub fn thres1_high(&self) -> THRES1_HIGH_R {
29 THRES1_HIGH_R::new(((self.bits >> 28) & 1) != 0)
30 }
31 #[doc = "Bit 29 - saradc thres0 high interrupt state"]
32 #[inline(always)]
33 pub fn thres0_high(&self) -> THRES0_HIGH_R {
34 THRES0_HIGH_R::new(((self.bits >> 29) & 1) != 0)
35 }
36 #[doc = "Bit 30 - saradc2 done interrupt state"]
37 #[inline(always)]
38 pub fn adc2_done(&self) -> ADC2_DONE_R {
39 ADC2_DONE_R::new(((self.bits >> 30) & 1) != 0)
40 }
41 #[doc = "Bit 31 - saradc1 done interrupt state"]
42 #[inline(always)]
43 pub fn adc1_done(&self) -> ADC1_DONE_R {
44 ADC1_DONE_R::new(((self.bits >> 31) & 1) != 0)
45 }
46}
47#[cfg(feature = "impl-register-debug")]
48impl core::fmt::Debug for R {
49 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
50 f.debug_struct("INT_ST")
51 .field("thres1_low", &self.thres1_low())
52 .field("thres0_low", &self.thres0_low())
53 .field("thres1_high", &self.thres1_high())
54 .field("thres0_high", &self.thres0_high())
55 .field("adc2_done", &self.adc2_done())
56 .field("adc1_done", &self.adc1_done())
57 .finish()
58 }
59}
60#[doc = "digital saradc int register\n\nYou can [`read`](crate::Reg::read) this register and get [`int_st::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
61pub struct INT_ST_SPEC;
62impl crate::RegisterSpec for INT_ST_SPEC {
63 type Ux = u32;
64}
65#[doc = "`read()` method returns [`int_st::R`](R) reader structure"]
66impl crate::Readable for INT_ST_SPEC {}
67#[doc = "`reset()` method sets INT_ST to value 0"]
68impl crate::Resettable for INT_ST_SPEC {
69 const RESET_VALUE: u32 = 0;
70}