atsamd51p/pac/
statusd.rs

1#[doc = "Register `STATUSD` reader"]
2pub type R = crate::R<StatusdSpec>;
3#[doc = "Field `SERCOM4_` reader - SERCOM4 APB Protect Enable"]
4pub type Sercom4_R = crate::BitReader;
5#[doc = "Field `SERCOM5_` reader - SERCOM5 APB Protect Enable"]
6pub type Sercom5_R = crate::BitReader;
7#[doc = "Field `SERCOM6_` reader - SERCOM6 APB Protect Enable"]
8pub type Sercom6_R = crate::BitReader;
9#[doc = "Field `SERCOM7_` reader - SERCOM7 APB Protect Enable"]
10pub type Sercom7_R = crate::BitReader;
11#[doc = "Field `TCC4_` reader - TCC4 APB Protect Enable"]
12pub type Tcc4_R = crate::BitReader;
13#[doc = "Field `TC6_` reader - TC6 APB Protect Enable"]
14pub type Tc6_R = crate::BitReader;
15#[doc = "Field `TC7_` reader - TC7 APB Protect Enable"]
16pub type Tc7_R = crate::BitReader;
17#[doc = "Field `ADC0_` reader - ADC0 APB Protect Enable"]
18pub type Adc0_R = crate::BitReader;
19#[doc = "Field `ADC1_` reader - ADC1 APB Protect Enable"]
20pub type Adc1_R = crate::BitReader;
21#[doc = "Field `DAC_` reader - DAC APB Protect Enable"]
22pub type Dac_R = crate::BitReader;
23#[doc = "Field `I2S_` reader - I2S APB Protect Enable"]
24pub type I2s_R = crate::BitReader;
25#[doc = "Field `PCC_` reader - PCC APB Protect Enable"]
26pub type Pcc_R = crate::BitReader;
27impl R {
28    #[doc = "Bit 0 - SERCOM4 APB Protect Enable"]
29    #[inline(always)]
30    pub fn sercom4_(&self) -> Sercom4_R {
31        Sercom4_R::new((self.bits & 1) != 0)
32    }
33    #[doc = "Bit 1 - SERCOM5 APB Protect Enable"]
34    #[inline(always)]
35    pub fn sercom5_(&self) -> Sercom5_R {
36        Sercom5_R::new(((self.bits >> 1) & 1) != 0)
37    }
38    #[doc = "Bit 2 - SERCOM6 APB Protect Enable"]
39    #[inline(always)]
40    pub fn sercom6_(&self) -> Sercom6_R {
41        Sercom6_R::new(((self.bits >> 2) & 1) != 0)
42    }
43    #[doc = "Bit 3 - SERCOM7 APB Protect Enable"]
44    #[inline(always)]
45    pub fn sercom7_(&self) -> Sercom7_R {
46        Sercom7_R::new(((self.bits >> 3) & 1) != 0)
47    }
48    #[doc = "Bit 4 - TCC4 APB Protect Enable"]
49    #[inline(always)]
50    pub fn tcc4_(&self) -> Tcc4_R {
51        Tcc4_R::new(((self.bits >> 4) & 1) != 0)
52    }
53    #[doc = "Bit 5 - TC6 APB Protect Enable"]
54    #[inline(always)]
55    pub fn tc6_(&self) -> Tc6_R {
56        Tc6_R::new(((self.bits >> 5) & 1) != 0)
57    }
58    #[doc = "Bit 6 - TC7 APB Protect Enable"]
59    #[inline(always)]
60    pub fn tc7_(&self) -> Tc7_R {
61        Tc7_R::new(((self.bits >> 6) & 1) != 0)
62    }
63    #[doc = "Bit 7 - ADC0 APB Protect Enable"]
64    #[inline(always)]
65    pub fn adc0_(&self) -> Adc0_R {
66        Adc0_R::new(((self.bits >> 7) & 1) != 0)
67    }
68    #[doc = "Bit 8 - ADC1 APB Protect Enable"]
69    #[inline(always)]
70    pub fn adc1_(&self) -> Adc1_R {
71        Adc1_R::new(((self.bits >> 8) & 1) != 0)
72    }
73    #[doc = "Bit 9 - DAC APB Protect Enable"]
74    #[inline(always)]
75    pub fn dac_(&self) -> Dac_R {
76        Dac_R::new(((self.bits >> 9) & 1) != 0)
77    }
78    #[doc = "Bit 10 - I2S APB Protect Enable"]
79    #[inline(always)]
80    pub fn i2s_(&self) -> I2s_R {
81        I2s_R::new(((self.bits >> 10) & 1) != 0)
82    }
83    #[doc = "Bit 11 - PCC APB Protect Enable"]
84    #[inline(always)]
85    pub fn pcc_(&self) -> Pcc_R {
86        Pcc_R::new(((self.bits >> 11) & 1) != 0)
87    }
88}
89#[doc = "Peripheral write protection status - Bridge D\n\nYou can [`read`](crate::Reg::read) this register and get [`statusd::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
90pub struct StatusdSpec;
91impl crate::RegisterSpec for StatusdSpec {
92    type Ux = u32;
93}
94#[doc = "`read()` method returns [`statusd::R`](R) reader structure"]
95impl crate::Readable for StatusdSpec {}
96#[doc = "`reset()` method sets STATUSD to value 0"]
97impl crate::Resettable for StatusdSpec {
98    const RESET_VALUE: u32 = 0;
99}