bl602_pac/sec_eng/
se_ctrl_prot_rd.rs1#[doc = "Register `se_ctrl_prot_rd` reader"]
2pub struct R(crate::R<SE_CTRL_PROT_RD_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<SE_CTRL_PROT_RD_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<SE_CTRL_PROT_RD_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<SE_CTRL_PROT_RD_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Field `se_sha_prot_en_rd` reader - "]
17pub type SE_SHA_PROT_EN_RD_R = crate::BitReader<bool>;
18#[doc = "Field `se_sha_id0_en_rd` reader - "]
19pub type SE_SHA_ID0_EN_RD_R = crate::BitReader<bool>;
20#[doc = "Field `se_sha_id1_en_rd` reader - "]
21pub type SE_SHA_ID1_EN_RD_R = crate::BitReader<bool>;
22#[doc = "Field `se_aes_prot_en_rd` reader - "]
23pub type SE_AES_PROT_EN_RD_R = crate::BitReader<bool>;
24#[doc = "Field `se_aes_id0_en_rd` reader - "]
25pub type SE_AES_ID0_EN_RD_R = crate::BitReader<bool>;
26#[doc = "Field `se_aes_id1_en_rd` reader - "]
27pub type SE_AES_ID1_EN_RD_R = crate::BitReader<bool>;
28#[doc = "Field `se_trng_prot_en_rd` reader - "]
29pub type SE_TRNG_PROT_EN_RD_R = crate::BitReader<bool>;
30#[doc = "Field `se_trng_id0_en_rd` reader - "]
31pub type SE_TRNG_ID0_EN_RD_R = crate::BitReader<bool>;
32#[doc = "Field `se_trng_id1_en_rd` reader - "]
33pub type SE_TRNG_ID1_EN_RD_R = crate::BitReader<bool>;
34#[doc = "Field `se_pka_prot_en_rd` reader - "]
35pub type SE_PKA_PROT_EN_RD_R = crate::BitReader<bool>;
36#[doc = "Field `se_pka_id0_en_rd` reader - "]
37pub type SE_PKA_ID0_EN_RD_R = crate::BitReader<bool>;
38#[doc = "Field `se_pka_id1_en_rd` reader - "]
39pub type SE_PKA_ID1_EN_RD_R = crate::BitReader<bool>;
40#[doc = "Field `se_cdet_prot_en_rd` reader - "]
41pub type SE_CDET_PROT_EN_RD_R = crate::BitReader<bool>;
42#[doc = "Field `se_cdet_id0_en_rd` reader - "]
43pub type SE_CDET_ID0_EN_RD_R = crate::BitReader<bool>;
44#[doc = "Field `se_cdet_id1_en_rd` reader - "]
45pub type SE_CDET_ID1_EN_RD_R = crate::BitReader<bool>;
46#[doc = "Field `se_gmac_prot_en_rd` reader - "]
47pub type SE_GMAC_PROT_EN_RD_R = crate::BitReader<bool>;
48#[doc = "Field `se_gmac_id0_en_rd` reader - "]
49pub type SE_GMAC_ID0_EN_RD_R = crate::BitReader<bool>;
50#[doc = "Field `se_gmac_id1_en_rd` reader - "]
51pub type SE_GMAC_ID1_EN_RD_R = crate::BitReader<bool>;
52#[doc = "Field `se_dbg_dis` reader - "]
53pub type SE_DBG_DIS_R = crate::BitReader<bool>;
54impl R {
55 #[doc = "Bit 0"]
56 #[inline(always)]
57 pub fn se_sha_prot_en_rd(&self) -> SE_SHA_PROT_EN_RD_R {
58 SE_SHA_PROT_EN_RD_R::new((self.bits & 1) != 0)
59 }
60 #[doc = "Bit 1"]
61 #[inline(always)]
62 pub fn se_sha_id0_en_rd(&self) -> SE_SHA_ID0_EN_RD_R {
63 SE_SHA_ID0_EN_RD_R::new(((self.bits >> 1) & 1) != 0)
64 }
65 #[doc = "Bit 2"]
66 #[inline(always)]
67 pub fn se_sha_id1_en_rd(&self) -> SE_SHA_ID1_EN_RD_R {
68 SE_SHA_ID1_EN_RD_R::new(((self.bits >> 2) & 1) != 0)
69 }
70 #[doc = "Bit 4"]
71 #[inline(always)]
72 pub fn se_aes_prot_en_rd(&self) -> SE_AES_PROT_EN_RD_R {
73 SE_AES_PROT_EN_RD_R::new(((self.bits >> 4) & 1) != 0)
74 }
75 #[doc = "Bit 5"]
76 #[inline(always)]
77 pub fn se_aes_id0_en_rd(&self) -> SE_AES_ID0_EN_RD_R {
78 SE_AES_ID0_EN_RD_R::new(((self.bits >> 5) & 1) != 0)
79 }
80 #[doc = "Bit 6"]
81 #[inline(always)]
82 pub fn se_aes_id1_en_rd(&self) -> SE_AES_ID1_EN_RD_R {
83 SE_AES_ID1_EN_RD_R::new(((self.bits >> 6) & 1) != 0)
84 }
85 #[doc = "Bit 8"]
86 #[inline(always)]
87 pub fn se_trng_prot_en_rd(&self) -> SE_TRNG_PROT_EN_RD_R {
88 SE_TRNG_PROT_EN_RD_R::new(((self.bits >> 8) & 1) != 0)
89 }
90 #[doc = "Bit 9"]
91 #[inline(always)]
92 pub fn se_trng_id0_en_rd(&self) -> SE_TRNG_ID0_EN_RD_R {
93 SE_TRNG_ID0_EN_RD_R::new(((self.bits >> 9) & 1) != 0)
94 }
95 #[doc = "Bit 10"]
96 #[inline(always)]
97 pub fn se_trng_id1_en_rd(&self) -> SE_TRNG_ID1_EN_RD_R {
98 SE_TRNG_ID1_EN_RD_R::new(((self.bits >> 10) & 1) != 0)
99 }
100 #[doc = "Bit 12"]
101 #[inline(always)]
102 pub fn se_pka_prot_en_rd(&self) -> SE_PKA_PROT_EN_RD_R {
103 SE_PKA_PROT_EN_RD_R::new(((self.bits >> 12) & 1) != 0)
104 }
105 #[doc = "Bit 13"]
106 #[inline(always)]
107 pub fn se_pka_id0_en_rd(&self) -> SE_PKA_ID0_EN_RD_R {
108 SE_PKA_ID0_EN_RD_R::new(((self.bits >> 13) & 1) != 0)
109 }
110 #[doc = "Bit 14"]
111 #[inline(always)]
112 pub fn se_pka_id1_en_rd(&self) -> SE_PKA_ID1_EN_RD_R {
113 SE_PKA_ID1_EN_RD_R::new(((self.bits >> 14) & 1) != 0)
114 }
115 #[doc = "Bit 16"]
116 #[inline(always)]
117 pub fn se_cdet_prot_en_rd(&self) -> SE_CDET_PROT_EN_RD_R {
118 SE_CDET_PROT_EN_RD_R::new(((self.bits >> 16) & 1) != 0)
119 }
120 #[doc = "Bit 17"]
121 #[inline(always)]
122 pub fn se_cdet_id0_en_rd(&self) -> SE_CDET_ID0_EN_RD_R {
123 SE_CDET_ID0_EN_RD_R::new(((self.bits >> 17) & 1) != 0)
124 }
125 #[doc = "Bit 18"]
126 #[inline(always)]
127 pub fn se_cdet_id1_en_rd(&self) -> SE_CDET_ID1_EN_RD_R {
128 SE_CDET_ID1_EN_RD_R::new(((self.bits >> 18) & 1) != 0)
129 }
130 #[doc = "Bit 20"]
131 #[inline(always)]
132 pub fn se_gmac_prot_en_rd(&self) -> SE_GMAC_PROT_EN_RD_R {
133 SE_GMAC_PROT_EN_RD_R::new(((self.bits >> 20) & 1) != 0)
134 }
135 #[doc = "Bit 21"]
136 #[inline(always)]
137 pub fn se_gmac_id0_en_rd(&self) -> SE_GMAC_ID0_EN_RD_R {
138 SE_GMAC_ID0_EN_RD_R::new(((self.bits >> 21) & 1) != 0)
139 }
140 #[doc = "Bit 22"]
141 #[inline(always)]
142 pub fn se_gmac_id1_en_rd(&self) -> SE_GMAC_ID1_EN_RD_R {
143 SE_GMAC_ID1_EN_RD_R::new(((self.bits >> 22) & 1) != 0)
144 }
145 #[doc = "Bit 31"]
146 #[inline(always)]
147 pub fn se_dbg_dis(&self) -> SE_DBG_DIS_R {
148 SE_DBG_DIS_R::new(((self.bits >> 31) & 1) != 0)
149 }
150}
151#[doc = "se_ctrl_prot_rd.\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [se_ctrl_prot_rd](index.html) module"]
152pub struct SE_CTRL_PROT_RD_SPEC;
153impl crate::RegisterSpec for SE_CTRL_PROT_RD_SPEC {
154 type Ux = u32;
155}
156#[doc = "`read()` method returns [se_ctrl_prot_rd::R](R) reader structure"]
157impl crate::Readable for SE_CTRL_PROT_RD_SPEC {
158 type Reader = R;
159}
160#[doc = "`reset()` method sets se_ctrl_prot_rd to value 0x0077_7777"]
161impl crate::Resettable for SE_CTRL_PROT_RD_SPEC {
162 const RESET_VALUE: Self::Ux = 0x0077_7777;
163}