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 `ADC0_` reader - ADC0 APB Protect Enable"]
8pub type Adc0_R = crate::BitReader;
9#[doc = "Field `ADC1_` reader - ADC1 APB Protect Enable"]
10pub type Adc1_R = crate::BitReader;
11#[doc = "Field `DAC_` reader - DAC APB Protect Enable"]
12pub type Dac_R = crate::BitReader;
13#[doc = "Field `PCC_` reader - PCC APB Protect Enable"]
14pub type Pcc_R = crate::BitReader;
15impl R {
16 #[doc = "Bit 0 - SERCOM4 APB Protect Enable"]
17 #[inline(always)]
18 pub fn sercom4_(&self) -> Sercom4_R {
19 Sercom4_R::new((self.bits & 1) != 0)
20 }
21 #[doc = "Bit 1 - SERCOM5 APB Protect Enable"]
22 #[inline(always)]
23 pub fn sercom5_(&self) -> Sercom5_R {
24 Sercom5_R::new(((self.bits >> 1) & 1) != 0)
25 }
26 #[doc = "Bit 7 - ADC0 APB Protect Enable"]
27 #[inline(always)]
28 pub fn adc0_(&self) -> Adc0_R {
29 Adc0_R::new(((self.bits >> 7) & 1) != 0)
30 }
31 #[doc = "Bit 8 - ADC1 APB Protect Enable"]
32 #[inline(always)]
33 pub fn adc1_(&self) -> Adc1_R {
34 Adc1_R::new(((self.bits >> 8) & 1) != 0)
35 }
36 #[doc = "Bit 9 - DAC APB Protect Enable"]
37 #[inline(always)]
38 pub fn dac_(&self) -> Dac_R {
39 Dac_R::new(((self.bits >> 9) & 1) != 0)
40 }
41 #[doc = "Bit 11 - PCC APB Protect Enable"]
42 #[inline(always)]
43 pub fn pcc_(&self) -> Pcc_R {
44 Pcc_R::new(((self.bits >> 11) & 1) != 0)
45 }
46}
47#[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)."]
48pub struct StatusdSpec;
49impl crate::RegisterSpec for StatusdSpec {
50 type Ux = u32;
51}
52#[doc = "`read()` method returns [`statusd::R`](R) reader structure"]
53impl crate::Readable for StatusdSpec {}
54#[doc = "`reset()` method sets STATUSD to value 0"]
55impl crate::Resettable for StatusdSpec {
56 const RESET_VALUE: u32 = 0;
57}