esp32c3/apb_saradc/
sar2_status.rs

1#[doc = "Register `SAR2_STATUS` reader"]
2pub type R = crate::R<SAR2_STATUS_SPEC>;
3#[doc = "Field `SAR2_STATUS` reader - saradc2 status about data and channel"]
4pub type SAR2_STATUS_R = crate::FieldReader<u32>;
5impl R {
6    #[doc = "Bits 0:31 - saradc2 status about data and channel"]
7    #[inline(always)]
8    pub fn sar2_status(&self) -> SAR2_STATUS_R {
9        SAR2_STATUS_R::new(self.bits)
10    }
11}
12#[cfg(feature = "impl-register-debug")]
13impl core::fmt::Debug for R {
14    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
15        f.debug_struct("SAR2_STATUS")
16            .field("sar2_status", &self.sar2_status())
17            .finish()
18    }
19}
20#[doc = "digital saradc configure register\n\nYou can [`read`](crate::Reg::read) this register and get [`sar2_status::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
21pub struct SAR2_STATUS_SPEC;
22impl crate::RegisterSpec for SAR2_STATUS_SPEC {
23    type Ux = u32;
24}
25#[doc = "`read()` method returns [`sar2_status::R`](R) reader structure"]
26impl crate::Readable for SAR2_STATUS_SPEC {}
27#[doc = "`reset()` method sets SAR2_STATUS to value 0"]
28impl crate::Resettable for SAR2_STATUS_SPEC {
29    const RESET_VALUE: u32 = 0;
30}