eos_s3/wdt/
wdogperiphid2.rs1#[doc = "Register `WDOGPERIPHID2` reader"]
2pub struct R(crate::R<WDOGPERIPHID2_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<WDOGPERIPHID2_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<WDOGPERIPHID2_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<WDOGPERIPHID2_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Field `WDOGPERIPHID2` reader - Peripheral ID Register 2. \\[7:4\\]
17Revision. \\[3\\]
18jedec_used. \\[2:0\\]
19jep106_id_6_4."]
20pub struct WDOGPERIPHID2_R(crate::FieldReader<u8, u8>);
21impl WDOGPERIPHID2_R {
22 #[inline(always)]
23 pub(crate) fn new(bits: u8) -> Self {
24 WDOGPERIPHID2_R(crate::FieldReader::new(bits))
25 }
26}
27impl core::ops::Deref for WDOGPERIPHID2_R {
28 type Target = crate::FieldReader<u8, u8>;
29 #[inline(always)]
30 fn deref(&self) -> &Self::Target {
31 &self.0
32 }
33}
34impl R {
35 #[doc = "Bits 0:7 - Peripheral ID Register 2. \\[7:4\\]
36Revision. \\[3\\]
37jedec_used. \\[2:0\\]
38jep106_id_6_4."]
39 #[inline(always)]
40 pub fn wdogperiphid2(&self) -> WDOGPERIPHID2_R {
41 WDOGPERIPHID2_R::new((self.bits & 0xff) as u8)
42 }
43}
44#[doc = "Peripheral ID Register 2. \\[7:4\\]
45Revision. \\[3\\]
46jedec_used. \\[2:0\\]
47jep106_id_6_4.\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 [wdogperiphid2](index.html) module"]
48pub struct WDOGPERIPHID2_SPEC;
49impl crate::RegisterSpec for WDOGPERIPHID2_SPEC {
50 type Ux = u32;
51}
52#[doc = "`read()` method returns [wdogperiphid2::R](R) reader structure"]
53impl crate::Readable for WDOGPERIPHID2_SPEC {
54 type Reader = R;
55}
56#[doc = "`reset()` method sets WDOGPERIPHID2 to value 0x1b"]
57impl crate::Resettable for WDOGPERIPHID2_SPEC {
58 #[inline(always)]
59 fn reset_value() -> Self::Ux {
60 0x1b
61 }
62}