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 `TCC3_` reader - TCC3 APB Protect Enable"]
6pub type Tcc3_R = crate::BitReader;
7#[doc = "Field `TC4_` reader - TC4 APB Protect Enable"]
8pub type Tc4_R = crate::BitReader;
9#[doc = "Field `TC5_` reader - TC5 APB Protect Enable"]
10pub type Tc5_R = crate::BitReader;
11#[doc = "Field `PDEC_` reader - PDEC APB Protect Enable"]
12pub type Pdec_R = crate::BitReader;
13#[doc = "Field `AC_` reader - AC APB Protect Enable"]
14pub type Ac_R = crate::BitReader;
15#[doc = "Field `AES_` reader - AES APB Protect Enable"]
16pub type Aes_R = crate::BitReader;
17#[doc = "Field `TRNG_` reader - TRNG APB Protect Enable"]
18pub type Trng_R = crate::BitReader;
19#[doc = "Field `ICM_` reader - ICM APB Protect Enable"]
20pub type Icm_R = crate::BitReader;
21#[doc = "Field `PUKCC_` reader - PUKCC APB Protect Enable"]
22pub type Pukcc_R = crate::BitReader;
23#[doc = "Field `QSPI_` reader - QSPI APB Protect Enable"]
24pub type Qspi_R = crate::BitReader;
25#[doc = "Field `CCL_` reader - CCL APB Protect Enable"]
26pub type Ccl_R = crate::BitReader;
27impl R {
28 #[doc = "Bit 3 - TCC2 APB Protect Enable"]
29 #[inline(always)]
30 pub fn tcc2_(&self) -> Tcc2_R {
31 Tcc2_R::new(((self.bits >> 3) & 1) != 0)
32 }
33 #[doc = "Bit 4 - TCC3 APB Protect Enable"]
34 #[inline(always)]
35 pub fn tcc3_(&self) -> Tcc3_R {
36 Tcc3_R::new(((self.bits >> 4) & 1) != 0)
37 }
38 #[doc = "Bit 5 - TC4 APB Protect Enable"]
39 #[inline(always)]
40 pub fn tc4_(&self) -> Tc4_R {
41 Tc4_R::new(((self.bits >> 5) & 1) != 0)
42 }
43 #[doc = "Bit 6 - TC5 APB Protect Enable"]
44 #[inline(always)]
45 pub fn tc5_(&self) -> Tc5_R {
46 Tc5_R::new(((self.bits >> 6) & 1) != 0)
47 }
48 #[doc = "Bit 7 - PDEC APB Protect Enable"]
49 #[inline(always)]
50 pub fn pdec_(&self) -> Pdec_R {
51 Pdec_R::new(((self.bits >> 7) & 1) != 0)
52 }
53 #[doc = "Bit 8 - AC APB Protect Enable"]
54 #[inline(always)]
55 pub fn ac_(&self) -> Ac_R {
56 Ac_R::new(((self.bits >> 8) & 1) != 0)
57 }
58 #[doc = "Bit 9 - AES APB Protect Enable"]
59 #[inline(always)]
60 pub fn aes_(&self) -> Aes_R {
61 Aes_R::new(((self.bits >> 9) & 1) != 0)
62 }
63 #[doc = "Bit 10 - TRNG APB Protect Enable"]
64 #[inline(always)]
65 pub fn trng_(&self) -> Trng_R {
66 Trng_R::new(((self.bits >> 10) & 1) != 0)
67 }
68 #[doc = "Bit 11 - ICM APB Protect Enable"]
69 #[inline(always)]
70 pub fn icm_(&self) -> Icm_R {
71 Icm_R::new(((self.bits >> 11) & 1) != 0)
72 }
73 #[doc = "Bit 12 - PUKCC APB Protect Enable"]
74 #[inline(always)]
75 pub fn pukcc_(&self) -> Pukcc_R {
76 Pukcc_R::new(((self.bits >> 12) & 1) != 0)
77 }
78 #[doc = "Bit 13 - QSPI APB Protect Enable"]
79 #[inline(always)]
80 pub fn qspi_(&self) -> Qspi_R {
81 Qspi_R::new(((self.bits >> 13) & 1) != 0)
82 }
83 #[doc = "Bit 14 - CCL APB Protect Enable"]
84 #[inline(always)]
85 pub fn ccl_(&self) -> Ccl_R {
86 Ccl_R::new(((self.bits >> 14) & 1) != 0)
87 }
88}
89#[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)."]
90pub struct StatuscSpec;
91impl crate::RegisterSpec for StatuscSpec {
92 type Ux = u32;
93}
94#[doc = "`read()` method returns [`statusc::R`](R) reader structure"]
95impl crate::Readable for StatuscSpec {}
96#[doc = "`reset()` method sets STATUSC to value 0"]
97impl crate::Resettable for StatuscSpec {
98 const RESET_VALUE: u32 = 0;
99}