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