atsamd51g/pac/
statusc.rs

1#[doc = "Register `STATUSC` reader"]
2pub type R = crate::R<StatuscSpec>;
3#[doc = "Field `TCC2_` reader - TCC2 APB Protect Enable"]
4pub type Tcc2_R = crate::BitReader;
5#[doc = "Field `PDEC_` reader - PDEC APB Protect Enable"]
6pub type Pdec_R = crate::BitReader;
7#[doc = "Field `AC_` reader - AC APB Protect Enable"]
8pub type Ac_R = crate::BitReader;
9#[doc = "Field `AES_` reader - AES APB Protect Enable"]
10pub type Aes_R = crate::BitReader;
11#[doc = "Field `TRNG_` reader - TRNG APB Protect Enable"]
12pub type Trng_R = crate::BitReader;
13#[doc = "Field `ICM_` reader - ICM APB Protect Enable"]
14pub type Icm_R = crate::BitReader;
15#[doc = "Field `PUKCC_` reader - PUKCC APB Protect Enable"]
16pub type Pukcc_R = crate::BitReader;
17#[doc = "Field `QSPI_` reader - QSPI APB Protect Enable"]
18pub type Qspi_R = crate::BitReader;
19#[doc = "Field `CCL_` reader - CCL APB Protect Enable"]
20pub type Ccl_R = crate::BitReader;
21impl R {
22    #[doc = "Bit 3 - TCC2 APB Protect Enable"]
23    #[inline(always)]
24    pub fn tcc2_(&self) -> Tcc2_R {
25        Tcc2_R::new(((self.bits >> 3) & 1) != 0)
26    }
27    #[doc = "Bit 7 - PDEC APB Protect Enable"]
28    #[inline(always)]
29    pub fn pdec_(&self) -> Pdec_R {
30        Pdec_R::new(((self.bits >> 7) & 1) != 0)
31    }
32    #[doc = "Bit 8 - AC APB Protect Enable"]
33    #[inline(always)]
34    pub fn ac_(&self) -> Ac_R {
35        Ac_R::new(((self.bits >> 8) & 1) != 0)
36    }
37    #[doc = "Bit 9 - AES APB Protect Enable"]
38    #[inline(always)]
39    pub fn aes_(&self) -> Aes_R {
40        Aes_R::new(((self.bits >> 9) & 1) != 0)
41    }
42    #[doc = "Bit 10 - TRNG APB Protect Enable"]
43    #[inline(always)]
44    pub fn trng_(&self) -> Trng_R {
45        Trng_R::new(((self.bits >> 10) & 1) != 0)
46    }
47    #[doc = "Bit 11 - ICM APB Protect Enable"]
48    #[inline(always)]
49    pub fn icm_(&self) -> Icm_R {
50        Icm_R::new(((self.bits >> 11) & 1) != 0)
51    }
52    #[doc = "Bit 12 - PUKCC APB Protect Enable"]
53    #[inline(always)]
54    pub fn pukcc_(&self) -> Pukcc_R {
55        Pukcc_R::new(((self.bits >> 12) & 1) != 0)
56    }
57    #[doc = "Bit 13 - QSPI APB Protect Enable"]
58    #[inline(always)]
59    pub fn qspi_(&self) -> Qspi_R {
60        Qspi_R::new(((self.bits >> 13) & 1) != 0)
61    }
62    #[doc = "Bit 14 - CCL APB Protect Enable"]
63    #[inline(always)]
64    pub fn ccl_(&self) -> Ccl_R {
65        Ccl_R::new(((self.bits >> 14) & 1) != 0)
66    }
67}
68#[doc = "Peripheral write protection status - Bridge C\n\nYou can [`read`](crate::Reg::read) this register and get [`statusc::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
69pub struct StatuscSpec;
70impl crate::RegisterSpec for StatuscSpec {
71    type Ux = u32;
72}
73#[doc = "`read()` method returns [`statusc::R`](R) reader structure"]
74impl crate::Readable for StatuscSpec {}
75#[doc = "`reset()` method sets STATUSC to value 0"]
76impl crate::Resettable for StatuscSpec {
77    const RESET_VALUE: u32 = 0;
78}