atsaml21e17b/pac/
statusd.rs1#[doc = "Register `STATUSD` reader"]
2pub struct R(crate::R<STATUSD_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<STATUSD_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<STATUSD_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<STATUSD_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Field `EVSYS_` reader - EVSYS APB Protect Enable"]
17pub type EVSYS__R = crate::BitReader<bool>;
18#[doc = "Field `SERCOM5_` reader - SERCOM5 APB Protect Enable"]
19pub type SERCOM5__R = crate::BitReader<bool>;
20#[doc = "Field `TC4_` reader - TC4 APB Protect Enable"]
21pub type TC4__R = crate::BitReader<bool>;
22#[doc = "Field `ADC_` reader - ADC APB Protect Enable"]
23pub type ADC__R = crate::BitReader<bool>;
24#[doc = "Field `AC_` reader - AC APB Protect Enable"]
25pub type AC__R = crate::BitReader<bool>;
26#[doc = "Field `PTC_` reader - PTC APB Protect Enable"]
27pub type PTC__R = crate::BitReader<bool>;
28#[doc = "Field `OPAMP_` reader - OPAMP APB Protect Enable"]
29pub type OPAMP__R = crate::BitReader<bool>;
30#[doc = "Field `CCL_` reader - CCL APB Protect Enable"]
31pub type CCL__R = crate::BitReader<bool>;
32impl R {
33 #[doc = "Bit 0 - EVSYS APB Protect Enable"]
34 #[inline(always)]
35 pub fn evsys_(&self) -> EVSYS__R {
36 EVSYS__R::new((self.bits & 1) != 0)
37 }
38 #[doc = "Bit 1 - SERCOM5 APB Protect Enable"]
39 #[inline(always)]
40 pub fn sercom5_(&self) -> SERCOM5__R {
41 SERCOM5__R::new(((self.bits >> 1) & 1) != 0)
42 }
43 #[doc = "Bit 2 - TC4 APB Protect Enable"]
44 #[inline(always)]
45 pub fn tc4_(&self) -> TC4__R {
46 TC4__R::new(((self.bits >> 2) & 1) != 0)
47 }
48 #[doc = "Bit 3 - ADC APB Protect Enable"]
49 #[inline(always)]
50 pub fn adc_(&self) -> ADC__R {
51 ADC__R::new(((self.bits >> 3) & 1) != 0)
52 }
53 #[doc = "Bit 4 - AC APB Protect Enable"]
54 #[inline(always)]
55 pub fn ac_(&self) -> AC__R {
56 AC__R::new(((self.bits >> 4) & 1) != 0)
57 }
58 #[doc = "Bit 5 - PTC APB Protect Enable"]
59 #[inline(always)]
60 pub fn ptc_(&self) -> PTC__R {
61 PTC__R::new(((self.bits >> 5) & 1) != 0)
62 }
63 #[doc = "Bit 6 - OPAMP APB Protect Enable"]
64 #[inline(always)]
65 pub fn opamp_(&self) -> OPAMP__R {
66 OPAMP__R::new(((self.bits >> 6) & 1) != 0)
67 }
68 #[doc = "Bit 7 - CCL APB Protect Enable"]
69 #[inline(always)]
70 pub fn ccl_(&self) -> CCL__R {
71 CCL__R::new(((self.bits >> 7) & 1) != 0)
72 }
73}
74#[doc = "Peripheral write protection status - Bridge D\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 [statusd](index.html) module"]
75pub struct STATUSD_SPEC;
76impl crate::RegisterSpec for STATUSD_SPEC {
77 type Ux = u32;
78}
79#[doc = "`read()` method returns [statusd::R](R) reader structure"]
80impl crate::Readable for STATUSD_SPEC {
81 type Reader = R;
82}
83#[doc = "`reset()` method sets STATUSD to value 0"]
84impl crate::Resettable for STATUSD_SPEC {
85 const RESET_VALUE: Self::Ux = 0;
86}