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