xwrl64xx_pac/app_rti/
rtiintclrenable.rs1#[doc = "Register `RTIINTCLRENABLE` reader"]
2pub type R = crate::R<RtiintclrenableSpec>;
3#[doc = "Register `RTIINTCLRENABLE` writer"]
4pub type W = crate::W<RtiintclrenableSpec>;
5#[doc = "Field `INTCLRENABLE0` reader - 3:0\\]
6INTCLRENABLE0. Enables the auto-clear functionality on the compare 0 interrupt. User and Privileged mode (read): 0x5 = Auto-clear for compare 0 interrupt is disabled. Any other value = Auto-clear for compare 0 interrupt is enabled. Privileged mode (write): 0x5 = Disables the auto-clear functionality on the compare 0 interrupt. Any other value = Enables the auto-clear functionality on the compare 0 interrupt."]
7pub type Intclrenable0R = crate::FieldReader;
8#[doc = "Field `INTCLRENABLE0` writer - 3:0\\]
9INTCLRENABLE0. Enables the auto-clear functionality on the compare 0 interrupt. User and Privileged mode (read): 0x5 = Auto-clear for compare 0 interrupt is disabled. Any other value = Auto-clear for compare 0 interrupt is enabled. Privileged mode (write): 0x5 = Disables the auto-clear functionality on the compare 0 interrupt. Any other value = Enables the auto-clear functionality on the compare 0 interrupt."]
10pub type Intclrenable0W<'a, REG> = crate::FieldWriter<'a, REG, 4>;
11#[doc = "Field `RESERVED22` reader - 7:4\\]
12Reserved. Reads return 0 and writes have no effect"]
13pub type Reserved22R = crate::FieldReader;
14#[doc = "Field `RESERVED22` writer - 7:4\\]
15Reserved. Reads return 0 and writes have no effect"]
16pub type Reserved22W<'a, REG> = crate::FieldWriter<'a, REG, 4>;
17#[doc = "Field `INTCLRENABLE1` reader - 11:8\\]
18INTCLRENABLE1. Enables the auto-clear functionality on the compare 1 interrupt. User and Privileged mode (read): 0x5 = Auto-clear for compare 1 interrupt is disabled. Any other value = Auto-clear for compare 1 interrupt is enabled. Privileged mode (write): 0x5 = Disables the auto-clear functionality on the compare 1 interrupt. Any other value = Enables the auto-clear functionality on the compare 1 interrupt."]
19pub type Intclrenable1R = crate::FieldReader;
20#[doc = "Field `INTCLRENABLE1` writer - 11:8\\]
21INTCLRENABLE1. Enables the auto-clear functionality on the compare 1 interrupt. User and Privileged mode (read): 0x5 = Auto-clear for compare 1 interrupt is disabled. Any other value = Auto-clear for compare 1 interrupt is enabled. Privileged mode (write): 0x5 = Disables the auto-clear functionality on the compare 1 interrupt. Any other value = Enables the auto-clear functionality on the compare 1 interrupt."]
22pub type Intclrenable1W<'a, REG> = crate::FieldWriter<'a, REG, 4>;
23#[doc = "Field `RESERVED23` reader - 15:12\\]
24Reserved. Reads return 0 and writes have no effect"]
25pub type Reserved23R = crate::FieldReader;
26#[doc = "Field `RESERVED23` writer - 15:12\\]
27Reserved. Reads return 0 and writes have no effect"]
28pub type Reserved23W<'a, REG> = crate::FieldWriter<'a, REG, 4>;
29#[doc = "Field `INTCLRENABLE2` reader - 19:16\\]
30INTCLRENABLE2. Enables the auto-clear functionality on the compare 2 interrupt. User and Privileged mode (read): 0x5 = Auto-clear for compare 2 interrupt is disabled. Any other value = Auto-clear for compare 2 interrupt is enabled. Privileged mode (write): 0x5 = Disables the auto-clear functionality on the compare 2 interrupt. Any other value = Enables the auto-clear functionality on the compare 2 interrupt."]
31pub type Intclrenable2R = crate::FieldReader;
32#[doc = "Field `INTCLRENABLE2` writer - 19:16\\]
33INTCLRENABLE2. Enables the auto-clear functionality on the compare 2 interrupt. User and Privileged mode (read): 0x5 = Auto-clear for compare 2 interrupt is disabled. Any other value = Auto-clear for compare 2 interrupt is enabled. Privileged mode (write): 0x5 = Disables the auto-clear functionality on the compare 2 interrupt. Any other value = Enables the auto-clear functionality on the compare 2 interrupt."]
34pub type Intclrenable2W<'a, REG> = crate::FieldWriter<'a, REG, 4>;
35#[doc = "Field `RESERVED24` reader - 23:20\\]
36Reserved. Reads return 0 and writes have no effect"]
37pub type Reserved24R = crate::FieldReader;
38#[doc = "Field `RESERVED24` writer - 23:20\\]
39Reserved. Reads return 0 and writes have no effect"]
40pub type Reserved24W<'a, REG> = crate::FieldWriter<'a, REG, 4>;
41#[doc = "Field `INTCLRENABLE3` reader - 27:24\\]
42INTCLRENABLE3. Enables the auto-clear functionality on the compare 3 interrupt. User and Privileged mode (read): 0x5 = Auto-clear for compare 3 interrupt is disabled. Any other value = Auto-clear for compare 3 interrupt is enabled. Privileged mode (write): 0x5 = Disables the auto-clear functionality on the compare 3 interrupt. Any other value = Enables the auto-clear functionality on the compare 3 interrupt."]
43pub type Intclrenable3R = crate::FieldReader;
44#[doc = "Field `INTCLRENABLE3` writer - 27:24\\]
45INTCLRENABLE3. Enables the auto-clear functionality on the compare 3 interrupt. User and Privileged mode (read): 0x5 = Auto-clear for compare 3 interrupt is disabled. Any other value = Auto-clear for compare 3 interrupt is enabled. Privileged mode (write): 0x5 = Disables the auto-clear functionality on the compare 3 interrupt. Any other value = Enables the auto-clear functionality on the compare 3 interrupt."]
46pub type Intclrenable3W<'a, REG> = crate::FieldWriter<'a, REG, 4>;
47#[doc = "Field `RESERVED25` reader - 31:28\\]
48Reserved. Reads return 0 and writes have no effect"]
49pub type Reserved25R = crate::FieldReader;
50#[doc = "Field `RESERVED25` writer - 31:28\\]
51Reserved. Reads return 0 and writes have no effect"]
52pub type Reserved25W<'a, REG> = crate::FieldWriter<'a, REG, 4>;
53impl R {
54 #[doc = "Bits 0:3 - 3:0\\]
55INTCLRENABLE0. Enables the auto-clear functionality on the compare 0 interrupt. User and Privileged mode (read): 0x5 = Auto-clear for compare 0 interrupt is disabled. Any other value = Auto-clear for compare 0 interrupt is enabled. Privileged mode (write): 0x5 = Disables the auto-clear functionality on the compare 0 interrupt. Any other value = Enables the auto-clear functionality on the compare 0 interrupt."]
56 #[inline(always)]
57 pub fn intclrenable0(&self) -> Intclrenable0R {
58 Intclrenable0R::new((self.bits & 0x0f) as u8)
59 }
60 #[doc = "Bits 4:7 - 7:4\\]
61Reserved. Reads return 0 and writes have no effect"]
62 #[inline(always)]
63 pub fn reserved22(&self) -> Reserved22R {
64 Reserved22R::new(((self.bits >> 4) & 0x0f) as u8)
65 }
66 #[doc = "Bits 8:11 - 11:8\\]
67INTCLRENABLE1. Enables the auto-clear functionality on the compare 1 interrupt. User and Privileged mode (read): 0x5 = Auto-clear for compare 1 interrupt is disabled. Any other value = Auto-clear for compare 1 interrupt is enabled. Privileged mode (write): 0x5 = Disables the auto-clear functionality on the compare 1 interrupt. Any other value = Enables the auto-clear functionality on the compare 1 interrupt."]
68 #[inline(always)]
69 pub fn intclrenable1(&self) -> Intclrenable1R {
70 Intclrenable1R::new(((self.bits >> 8) & 0x0f) as u8)
71 }
72 #[doc = "Bits 12:15 - 15:12\\]
73Reserved. Reads return 0 and writes have no effect"]
74 #[inline(always)]
75 pub fn reserved23(&self) -> Reserved23R {
76 Reserved23R::new(((self.bits >> 12) & 0x0f) as u8)
77 }
78 #[doc = "Bits 16:19 - 19:16\\]
79INTCLRENABLE2. Enables the auto-clear functionality on the compare 2 interrupt. User and Privileged mode (read): 0x5 = Auto-clear for compare 2 interrupt is disabled. Any other value = Auto-clear for compare 2 interrupt is enabled. Privileged mode (write): 0x5 = Disables the auto-clear functionality on the compare 2 interrupt. Any other value = Enables the auto-clear functionality on the compare 2 interrupt."]
80 #[inline(always)]
81 pub fn intclrenable2(&self) -> Intclrenable2R {
82 Intclrenable2R::new(((self.bits >> 16) & 0x0f) as u8)
83 }
84 #[doc = "Bits 20:23 - 23:20\\]
85Reserved. Reads return 0 and writes have no effect"]
86 #[inline(always)]
87 pub fn reserved24(&self) -> Reserved24R {
88 Reserved24R::new(((self.bits >> 20) & 0x0f) as u8)
89 }
90 #[doc = "Bits 24:27 - 27:24\\]
91INTCLRENABLE3. Enables the auto-clear functionality on the compare 3 interrupt. User and Privileged mode (read): 0x5 = Auto-clear for compare 3 interrupt is disabled. Any other value = Auto-clear for compare 3 interrupt is enabled. Privileged mode (write): 0x5 = Disables the auto-clear functionality on the compare 3 interrupt. Any other value = Enables the auto-clear functionality on the compare 3 interrupt."]
92 #[inline(always)]
93 pub fn intclrenable3(&self) -> Intclrenable3R {
94 Intclrenable3R::new(((self.bits >> 24) & 0x0f) as u8)
95 }
96 #[doc = "Bits 28:31 - 31:28\\]
97Reserved. Reads return 0 and writes have no effect"]
98 #[inline(always)]
99 pub fn reserved25(&self) -> Reserved25R {
100 Reserved25R::new(((self.bits >> 28) & 0x0f) as u8)
101 }
102}
103impl W {
104 #[doc = "Bits 0:3 - 3:0\\]
105INTCLRENABLE0. Enables the auto-clear functionality on the compare 0 interrupt. User and Privileged mode (read): 0x5 = Auto-clear for compare 0 interrupt is disabled. Any other value = Auto-clear for compare 0 interrupt is enabled. Privileged mode (write): 0x5 = Disables the auto-clear functionality on the compare 0 interrupt. Any other value = Enables the auto-clear functionality on the compare 0 interrupt."]
106 #[inline(always)]
107 #[must_use]
108 pub fn intclrenable0(&mut self) -> Intclrenable0W<RtiintclrenableSpec> {
109 Intclrenable0W::new(self, 0)
110 }
111 #[doc = "Bits 4:7 - 7:4\\]
112Reserved. Reads return 0 and writes have no effect"]
113 #[inline(always)]
114 #[must_use]
115 pub fn reserved22(&mut self) -> Reserved22W<RtiintclrenableSpec> {
116 Reserved22W::new(self, 4)
117 }
118 #[doc = "Bits 8:11 - 11:8\\]
119INTCLRENABLE1. Enables the auto-clear functionality on the compare 1 interrupt. User and Privileged mode (read): 0x5 = Auto-clear for compare 1 interrupt is disabled. Any other value = Auto-clear for compare 1 interrupt is enabled. Privileged mode (write): 0x5 = Disables the auto-clear functionality on the compare 1 interrupt. Any other value = Enables the auto-clear functionality on the compare 1 interrupt."]
120 #[inline(always)]
121 #[must_use]
122 pub fn intclrenable1(&mut self) -> Intclrenable1W<RtiintclrenableSpec> {
123 Intclrenable1W::new(self, 8)
124 }
125 #[doc = "Bits 12:15 - 15:12\\]
126Reserved. Reads return 0 and writes have no effect"]
127 #[inline(always)]
128 #[must_use]
129 pub fn reserved23(&mut self) -> Reserved23W<RtiintclrenableSpec> {
130 Reserved23W::new(self, 12)
131 }
132 #[doc = "Bits 16:19 - 19:16\\]
133INTCLRENABLE2. Enables the auto-clear functionality on the compare 2 interrupt. User and Privileged mode (read): 0x5 = Auto-clear for compare 2 interrupt is disabled. Any other value = Auto-clear for compare 2 interrupt is enabled. Privileged mode (write): 0x5 = Disables the auto-clear functionality on the compare 2 interrupt. Any other value = Enables the auto-clear functionality on the compare 2 interrupt."]
134 #[inline(always)]
135 #[must_use]
136 pub fn intclrenable2(&mut self) -> Intclrenable2W<RtiintclrenableSpec> {
137 Intclrenable2W::new(self, 16)
138 }
139 #[doc = "Bits 20:23 - 23:20\\]
140Reserved. Reads return 0 and writes have no effect"]
141 #[inline(always)]
142 #[must_use]
143 pub fn reserved24(&mut self) -> Reserved24W<RtiintclrenableSpec> {
144 Reserved24W::new(self, 20)
145 }
146 #[doc = "Bits 24:27 - 27:24\\]
147INTCLRENABLE3. Enables the auto-clear functionality on the compare 3 interrupt. User and Privileged mode (read): 0x5 = Auto-clear for compare 3 interrupt is disabled. Any other value = Auto-clear for compare 3 interrupt is enabled. Privileged mode (write): 0x5 = Disables the auto-clear functionality on the compare 3 interrupt. Any other value = Enables the auto-clear functionality on the compare 3 interrupt."]
148 #[inline(always)]
149 #[must_use]
150 pub fn intclrenable3(&mut self) -> Intclrenable3W<RtiintclrenableSpec> {
151 Intclrenable3W::new(self, 24)
152 }
153 #[doc = "Bits 28:31 - 31:28\\]
154Reserved. Reads return 0 and writes have no effect"]
155 #[inline(always)]
156 #[must_use]
157 pub fn reserved25(&mut self) -> Reserved25W<RtiintclrenableSpec> {
158 Reserved25W::new(self, 28)
159 }
160}
161#[doc = "RTI Compare Interrupt Clear Enable enable the auto clear functionality for each of the compare interrupts\n\nYou can [`read`](crate::Reg::read) this register and get [`rtiintclrenable::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`rtiintclrenable::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
162pub struct RtiintclrenableSpec;
163impl crate::RegisterSpec for RtiintclrenableSpec {
164 type Ux = u32;
165}
166#[doc = "`read()` method returns [`rtiintclrenable::R`](R) reader structure"]
167impl crate::Readable for RtiintclrenableSpec {}
168#[doc = "`write(|w| ..)` method takes [`rtiintclrenable::W`](W) writer structure"]
169impl crate::Writable for RtiintclrenableSpec {
170 type Safety = crate::Unsafe;
171 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
172 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
173}
174#[doc = "`reset()` method sets RTIINTCLRENABLE to value 0"]
175impl crate::Resettable for RtiintclrenableSpec {
176 const RESET_VALUE: u32 = 0;
177}