Skip to main content

atsamd51p20a/pac/
statusd.rs

1#[doc = "Reader of register STATUSD"]
2pub type R = crate::R<u32, super::STATUSD>;
3#[doc = "Reader of field `SERCOM4_`"]
4pub type SERCOM4__R = crate::R<bool, bool>;
5#[doc = "Reader of field `SERCOM5_`"]
6pub type SERCOM5__R = crate::R<bool, bool>;
7#[doc = "Reader of field `SERCOM6_`"]
8pub type SERCOM6__R = crate::R<bool, bool>;
9#[doc = "Reader of field `SERCOM7_`"]
10pub type SERCOM7__R = crate::R<bool, bool>;
11#[doc = "Reader of field `TCC4_`"]
12pub type TCC4__R = crate::R<bool, bool>;
13#[doc = "Reader of field `TC6_`"]
14pub type TC6__R = crate::R<bool, bool>;
15#[doc = "Reader of field `TC7_`"]
16pub type TC7__R = crate::R<bool, bool>;
17#[doc = "Reader of field `ADC0_`"]
18pub type ADC0__R = crate::R<bool, bool>;
19#[doc = "Reader of field `ADC1_`"]
20pub type ADC1__R = crate::R<bool, bool>;
21#[doc = "Reader of field `DAC_`"]
22pub type DAC__R = crate::R<bool, bool>;
23#[doc = "Reader of field `I2S_`"]
24pub type I2S__R = crate::R<bool, bool>;
25#[doc = "Reader of field `PCC_`"]
26pub type PCC__R = crate::R<bool, bool>;
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 & 0x01) != 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) & 0x01) != 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) & 0x01) != 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) & 0x01) != 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) & 0x01) != 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) & 0x01) != 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) & 0x01) != 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) & 0x01) != 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) & 0x01) != 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) & 0x01) != 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) & 0x01) != 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) & 0x01) != 0)
87    }
88}