eos_s3/wdt/
wdogperiphid3.rs

1#[doc = "Register `WDOGPERIPHID3` reader"]
2pub struct R(crate::R<WDOGPERIPHID3_SPEC>);
3impl core::ops::Deref for R {
4    type Target = crate::R<WDOGPERIPHID3_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl From<crate::R<WDOGPERIPHID3_SPEC>> for R {
11    #[inline(always)]
12    fn from(reader: crate::R<WDOGPERIPHID3_SPEC>) -> Self {
13        R(reader)
14    }
15}
16#[doc = "Field `WDOGPERIPHID3` reader - Peripherial ID Register 3. \\[7:4\\]
17ECO revision number. \\[3:0\\]
18Customer modification number."]
19pub struct WDOGPERIPHID3_R(crate::FieldReader<u8, u8>);
20impl WDOGPERIPHID3_R {
21    #[inline(always)]
22    pub(crate) fn new(bits: u8) -> Self {
23        WDOGPERIPHID3_R(crate::FieldReader::new(bits))
24    }
25}
26impl core::ops::Deref for WDOGPERIPHID3_R {
27    type Target = crate::FieldReader<u8, u8>;
28    #[inline(always)]
29    fn deref(&self) -> &Self::Target {
30        &self.0
31    }
32}
33impl R {
34    #[doc = "Bits 0:7 - Peripherial ID Register 3. \\[7:4\\]
35ECO revision number. \\[3:0\\]
36Customer modification number."]
37    #[inline(always)]
38    pub fn wdogperiphid3(&self) -> WDOGPERIPHID3_R {
39        WDOGPERIPHID3_R::new((self.bits & 0xff) as u8)
40    }
41}
42#[doc = "Peripherial ID Register 3. \\[7:4\\]
43ECO revision number. \\[3:0\\]
44Customer modification number.\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [wdogperiphid3](index.html) module"]
45pub struct WDOGPERIPHID3_SPEC;
46impl crate::RegisterSpec for WDOGPERIPHID3_SPEC {
47    type Ux = u32;
48}
49#[doc = "`read()` method returns [wdogperiphid3::R](R) reader structure"]
50impl crate::Readable for WDOGPERIPHID3_SPEC {
51    type Reader = R;
52}
53#[doc = "`reset()` method sets WDOGPERIPHID3 to value 0"]
54impl crate::Resettable for WDOGPERIPHID3_SPEC {
55    #[inline(always)]
56    fn reset_value() -> Self::Ux {
57        0
58    }
59}