eos_s3/wdt/
wdogperiphid1.rs

1#[doc = "Register `WDOGPERIPHID1` reader"]
2pub struct R(crate::R<WDOGPERIPHID1_SPEC>);
3impl core::ops::Deref for R {
4    type Target = crate::R<WDOGPERIPHID1_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl From<crate::R<WDOGPERIPHID1_SPEC>> for R {
11    #[inline(always)]
12    fn from(reader: crate::R<WDOGPERIPHID1_SPEC>) -> Self {
13        R(reader)
14    }
15}
16#[doc = "Field `WDOGPERIPHID1` reader - Peripheral ID Register 1. \\[7:4\\]
17jep106_id_3_0. \\[3:0\\]
18Part number \\[11:8\\]."]
19pub struct WDOGPERIPHID1_R(crate::FieldReader<u8, u8>);
20impl WDOGPERIPHID1_R {
21    #[inline(always)]
22    pub(crate) fn new(bits: u8) -> Self {
23        WDOGPERIPHID1_R(crate::FieldReader::new(bits))
24    }
25}
26impl core::ops::Deref for WDOGPERIPHID1_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 - Peripheral ID Register 1. \\[7:4\\]
35jep106_id_3_0. \\[3:0\\]
36Part number \\[11:8\\]."]
37    #[inline(always)]
38    pub fn wdogperiphid1(&self) -> WDOGPERIPHID1_R {
39        WDOGPERIPHID1_R::new((self.bits & 0xff) as u8)
40    }
41}
42#[doc = "Peripheral ID Register 1. \\[7:4\\]
43jep106_id_3_0. \\[3:0\\]
44Part number \\[11:8\\].\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 [wdogperiphid1](index.html) module"]
45pub struct WDOGPERIPHID1_SPEC;
46impl crate::RegisterSpec for WDOGPERIPHID1_SPEC {
47    type Ux = u32;
48}
49#[doc = "`read()` method returns [wdogperiphid1::R](R) reader structure"]
50impl crate::Readable for WDOGPERIPHID1_SPEC {
51    type Reader = R;
52}
53#[doc = "`reset()` method sets WDOGPERIPHID1 to value 0xb8"]
54impl crate::Resettable for WDOGPERIPHID1_SPEC {
55    #[inline(always)]
56    fn reset_value() -> Self::Ux {
57        0xb8
58    }
59}