esp32s3/apb_saradc/
ctrl_date.rs

1#[doc = "Register `CTRL_DATE` reader"]
2pub type R = crate::R<CTRL_DATE_SPEC>;
3#[doc = "Register `CTRL_DATE` writer"]
4pub type W = crate::W<CTRL_DATE_SPEC>;
5#[doc = "Field `DATE` reader - version"]
6pub type DATE_R = crate::FieldReader<u32>;
7#[doc = "Field `DATE` writer - version"]
8pub type DATE_W<'a, REG> = crate::FieldWriter<'a, REG, 32, u32>;
9impl R {
10    #[doc = "Bits 0:31 - version"]
11    #[inline(always)]
12    pub fn date(&self) -> DATE_R {
13        DATE_R::new(self.bits)
14    }
15}
16#[cfg(feature = "impl-register-debug")]
17impl core::fmt::Debug for R {
18    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
19        f.debug_struct("CTRL_DATE")
20            .field("date", &self.date())
21            .finish()
22    }
23}
24impl W {
25    #[doc = "Bits 0:31 - version"]
26    #[inline(always)]
27    pub fn date(&mut self) -> DATE_W<CTRL_DATE_SPEC> {
28        DATE_W::new(self, 0)
29    }
30}
31#[doc = "version\n\nYou can [`read`](crate::Reg::read) this register and get [`ctrl_date::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ctrl_date::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
32pub struct CTRL_DATE_SPEC;
33impl crate::RegisterSpec for CTRL_DATE_SPEC {
34    type Ux = u32;
35}
36#[doc = "`read()` method returns [`ctrl_date::R`](R) reader structure"]
37impl crate::Readable for CTRL_DATE_SPEC {}
38#[doc = "`write(|w| ..)` method takes [`ctrl_date::W`](W) writer structure"]
39impl crate::Writable for CTRL_DATE_SPEC {
40    type Safety = crate::Unsafe;
41}
42#[doc = "`reset()` method sets CTRL_DATE to value 0x0210_1180"]
43impl crate::Resettable for CTRL_DATE_SPEC {
44    const RESET_VALUE: u32 = 0x0210_1180;
45}