1#[doc = "Register `INTEN` reader"]
2pub struct R(crate::R<INTEN_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<INTEN_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<INTEN_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<INTEN_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Register `INTEN` writer"]
17pub struct W(crate::W<INTEN_SPEC>);
18impl core::ops::Deref for W {
19 type Target = crate::W<INTEN_SPEC>;
20 #[inline(always)]
21 fn deref(&self) -> &Self::Target {
22 &self.0
23 }
24}
25impl core::ops::DerefMut for W {
26 #[inline(always)]
27 fn deref_mut(&mut self) -> &mut Self::Target {
28 &mut self.0
29 }
30}
31impl From<crate::W<INTEN_SPEC>> for W {
32 #[inline(always)]
33 fn from(writer: crate::W<INTEN_SPEC>) -> Self {
34 W(writer)
35 }
36}
37#[doc = "Field `READYEN` reader - Enable corresponding interrupt in STAT, which indicates that the initialization or a operation is completed."]
38pub type READYEN_R = crate::BitReader<bool>;
39#[doc = "Field `READYEN` writer - Enable corresponding interrupt in STAT, which indicates that the initialization or a operation is completed."]
40pub type READYEN_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTEN_SPEC, bool, O>;
41#[doc = "Field `SUCCESEN` reader - Enable corresponding interrupt in STAT, which indicates last operation was successful."]
42pub type SUCCESEN_R = crate::BitReader<bool>;
43#[doc = "Field `SUCCESEN` writer - Enable corresponding interrupt in STAT, which indicates last operation was successful."]
44pub type SUCCESEN_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTEN_SPEC, bool, O>;
45#[doc = "Field `ERROREN` reader - Enable corresponding interrupt in STAT, which indicates that PUF is in the error state and no operations can be performed."]
46pub type ERROREN_R = crate::BitReader<bool>;
47#[doc = "Field `ERROREN` writer - Enable corresponding interrupt in STAT, which indicates that PUF is in the error state and no operations can be performed."]
48pub type ERROREN_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTEN_SPEC, bool, O>;
49#[doc = "Field `KEYINREQEN` reader - Enable corresponding interrupt in STAT, which is request for next part of key."]
50pub type KEYINREQEN_R = crate::BitReader<bool>;
51#[doc = "Field `KEYINREQEN` writer - Enable corresponding interrupt in STAT, which is request for next part of key."]
52pub type KEYINREQEN_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTEN_SPEC, bool, O>;
53#[doc = "Field `KEYOUTAVAILEN` reader - Enable corresponding interrupt in STAT, which is next part of key is available."]
54pub type KEYOUTAVAILEN_R = crate::BitReader<bool>;
55#[doc = "Field `KEYOUTAVAILEN` writer - Enable corresponding interrupt in STAT, which is next part of key is available."]
56pub type KEYOUTAVAILEN_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTEN_SPEC, bool, O>;
57#[doc = "Field `CODEINREQEN` reader - Enable corresponding interrupt in STAT, which is request for next part of AC/KC."]
58pub type CODEINREQEN_R = crate::BitReader<bool>;
59#[doc = "Field `CODEINREQEN` writer - Enable corresponding interrupt in STAT, which is request for next part of AC/KC."]
60pub type CODEINREQEN_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTEN_SPEC, bool, O>;
61#[doc = "Field `CODEOUTAVAILEN` reader - Enable corresponding interrupt in STAT, which is next part of AC/KC is available."]
62pub type CODEOUTAVAILEN_R = crate::BitReader<bool>;
63#[doc = "Field `CODEOUTAVAILEN` writer - Enable corresponding interrupt in STAT, which is next part of AC/KC is available."]
64pub type CODEOUTAVAILEN_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTEN_SPEC, bool, O>;
65impl R {
66 #[doc = "Bit 0 - Enable corresponding interrupt in STAT, which indicates that the initialization or a operation is completed."]
67 #[inline(always)]
68 pub fn readyen(&self) -> READYEN_R {
69 READYEN_R::new((self.bits & 1) != 0)
70 }
71 #[doc = "Bit 1 - Enable corresponding interrupt in STAT, which indicates last operation was successful."]
72 #[inline(always)]
73 pub fn succesen(&self) -> SUCCESEN_R {
74 SUCCESEN_R::new(((self.bits >> 1) & 1) != 0)
75 }
76 #[doc = "Bit 2 - Enable corresponding interrupt in STAT, which indicates that PUF is in the error state and no operations can be performed."]
77 #[inline(always)]
78 pub fn erroren(&self) -> ERROREN_R {
79 ERROREN_R::new(((self.bits >> 2) & 1) != 0)
80 }
81 #[doc = "Bit 4 - Enable corresponding interrupt in STAT, which is request for next part of key."]
82 #[inline(always)]
83 pub fn keyinreqen(&self) -> KEYINREQEN_R {
84 KEYINREQEN_R::new(((self.bits >> 4) & 1) != 0)
85 }
86 #[doc = "Bit 5 - Enable corresponding interrupt in STAT, which is next part of key is available."]
87 #[inline(always)]
88 pub fn keyoutavailen(&self) -> KEYOUTAVAILEN_R {
89 KEYOUTAVAILEN_R::new(((self.bits >> 5) & 1) != 0)
90 }
91 #[doc = "Bit 6 - Enable corresponding interrupt in STAT, which is request for next part of AC/KC."]
92 #[inline(always)]
93 pub fn codeinreqen(&self) -> CODEINREQEN_R {
94 CODEINREQEN_R::new(((self.bits >> 6) & 1) != 0)
95 }
96 #[doc = "Bit 7 - Enable corresponding interrupt in STAT, which is next part of AC/KC is available."]
97 #[inline(always)]
98 pub fn codeoutavailen(&self) -> CODEOUTAVAILEN_R {
99 CODEOUTAVAILEN_R::new(((self.bits >> 7) & 1) != 0)
100 }
101}
102impl W {
103 #[doc = "Bit 0 - Enable corresponding interrupt in STAT, which indicates that the initialization or a operation is completed."]
104 #[inline(always)]
105 #[must_use]
106 pub fn readyen(&mut self) -> READYEN_W<0> {
107 READYEN_W::new(self)
108 }
109 #[doc = "Bit 1 - Enable corresponding interrupt in STAT, which indicates last operation was successful."]
110 #[inline(always)]
111 #[must_use]
112 pub fn succesen(&mut self) -> SUCCESEN_W<1> {
113 SUCCESEN_W::new(self)
114 }
115 #[doc = "Bit 2 - Enable corresponding interrupt in STAT, which indicates that PUF is in the error state and no operations can be performed."]
116 #[inline(always)]
117 #[must_use]
118 pub fn erroren(&mut self) -> ERROREN_W<2> {
119 ERROREN_W::new(self)
120 }
121 #[doc = "Bit 4 - Enable corresponding interrupt in STAT, which is request for next part of key."]
122 #[inline(always)]
123 #[must_use]
124 pub fn keyinreqen(&mut self) -> KEYINREQEN_W<4> {
125 KEYINREQEN_W::new(self)
126 }
127 #[doc = "Bit 5 - Enable corresponding interrupt in STAT, which is next part of key is available."]
128 #[inline(always)]
129 #[must_use]
130 pub fn keyoutavailen(&mut self) -> KEYOUTAVAILEN_W<5> {
131 KEYOUTAVAILEN_W::new(self)
132 }
133 #[doc = "Bit 6 - Enable corresponding interrupt in STAT, which is request for next part of AC/KC."]
134 #[inline(always)]
135 #[must_use]
136 pub fn codeinreqen(&mut self) -> CODEINREQEN_W<6> {
137 CODEINREQEN_W::new(self)
138 }
139 #[doc = "Bit 7 - Enable corresponding interrupt in STAT, which is next part of AC/KC is available."]
140 #[inline(always)]
141 #[must_use]
142 pub fn codeoutavailen(&mut self) -> CODEOUTAVAILEN_W<7> {
143 CODEOUTAVAILEN_W::new(self)
144 }
145 #[doc = "Writes raw bits to the register."]
146 #[inline(always)]
147 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
148 self.0.bits(bits);
149 self
150 }
151}
152#[doc = "PUF Interrupt Enable\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [inten](index.html) module"]
153pub struct INTEN_SPEC;
154impl crate::RegisterSpec for INTEN_SPEC {
155 type Ux = u32;
156}
157#[doc = "`read()` method returns [inten::R](R) reader structure"]
158impl crate::Readable for INTEN_SPEC {
159 type Reader = R;
160}
161#[doc = "`write(|w| ..)` method takes [inten::W](W) writer structure"]
162impl crate::Writable for INTEN_SPEC {
163 type Writer = W;
164 const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
165 const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
166}
167#[doc = "`reset()` method sets INTEN to value 0"]
168impl crate::Resettable for INTEN_SPEC {
169 const RESET_VALUE: Self::Ux = 0;
170}