1#[doc = "Register `ID` reader"]
2pub type R = crate::R<ID_SPEC>;
3#[doc = "Field `MOD_REV` reader - Module Revision"]
4pub type MOD_REV_R = crate::FieldReader;
5#[doc = "Field `MOD_TYPE` reader - Module Type"]
6pub type MOD_TYPE_R = crate::FieldReader;
7#[doc = "Field `MOD_NUMBER` reader - Module Number"]
8pub type MOD_NUMBER_R = crate::FieldReader<u16>;
9impl R {
10 #[doc = "Bits 0:7 - Module Revision"]
11 #[inline(always)]
12 pub fn mod_rev(&self) -> MOD_REV_R {
13 MOD_REV_R::new((self.bits & 0xff) as u8)
14 }
15 #[doc = "Bits 8:15 - Module Type"]
16 #[inline(always)]
17 pub fn mod_type(&self) -> MOD_TYPE_R {
18 MOD_TYPE_R::new(((self.bits >> 8) & 0xff) as u8)
19 }
20 #[doc = "Bits 16:31 - Module Number"]
21 #[inline(always)]
22 pub fn mod_number(&self) -> MOD_NUMBER_R {
23 MOD_NUMBER_R::new(((self.bits >> 16) & 0xffff) as u16)
24 }
25}
26#[doc = "WDT ID Register\n\nYou can [`read`](crate::Reg::read) this register and get [`id::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
27pub struct ID_SPEC;
28impl crate::RegisterSpec for ID_SPEC {
29 type Ux = u32;
30}
31#[doc = "`read()` method returns [`id::R`](R) reader structure"]
32impl crate::Readable for ID_SPEC {}
33#[doc = "`reset()` method sets ID to value 0x00ad_c000"]
34impl crate::Resettable for ID_SPEC {
35 const RESET_VALUE: u32 = 0x00ad_c000;
36}