1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208
#[doc = "Reader of register ICCILSR2"] pub type R = crate::R<u16, super::ICCILSR2>; #[doc = "Writer for register ICCILSR2"] pub type W = crate::W<u16, super::ICCILSR2>; #[doc = "Register ICCILSR2 `reset()`'s with value 0"] impl crate::ResetValue for super::ICCILSR2 { type Type = u16; #[inline(always)] fn reset_value() -> Self::Type { 0 } } #[doc = "Reader of field `ILSR16`"] pub type ILSR16_R = crate::R<u8, u8>; #[doc = "Write proxy for field `ILSR16`"] pub struct ILSR16_W<'a> { w: &'a mut W, } impl<'a> ILSR16_W<'a> { #[doc = r"Writes raw bits to the field"] #[inline(always)] pub unsafe fn bits(self, value: u8) -> &'a mut W { self.w.bits = (self.w.bits & !0x03) | ((value as u16) & 0x03); self.w } } #[doc = "Reader of field `ILSR17`"] pub type ILSR17_R = crate::R<u8, u8>; #[doc = "Write proxy for field `ILSR17`"] pub struct ILSR17_W<'a> { w: &'a mut W, } impl<'a> ILSR17_W<'a> { #[doc = r"Writes raw bits to the field"] #[inline(always)] pub unsafe fn bits(self, value: u8) -> &'a mut W { self.w.bits = (self.w.bits & !(0x03 << 2)) | (((value as u16) & 0x03) << 2); self.w } } #[doc = "Reader of field `ILSR18`"] pub type ILSR18_R = crate::R<u8, u8>; #[doc = "Write proxy for field `ILSR18`"] pub struct ILSR18_W<'a> { w: &'a mut W, } impl<'a> ILSR18_W<'a> { #[doc = r"Writes raw bits to the field"] #[inline(always)] pub unsafe fn bits(self, value: u8) -> &'a mut W { self.w.bits = (self.w.bits & !(0x03 << 4)) | (((value as u16) & 0x03) << 4); self.w } } #[doc = "Reader of field `ILSR19`"] pub type ILSR19_R = crate::R<u8, u8>; #[doc = "Write proxy for field `ILSR19`"] pub struct ILSR19_W<'a> { w: &'a mut W, } impl<'a> ILSR19_W<'a> { #[doc = r"Writes raw bits to the field"] #[inline(always)] pub unsafe fn bits(self, value: u8) -> &'a mut W { self.w.bits = (self.w.bits & !(0x03 << 6)) | (((value as u16) & 0x03) << 6); self.w } } #[doc = "Reader of field `ILSR20`"] pub type ILSR20_R = crate::R<u8, u8>; #[doc = "Write proxy for field `ILSR20`"] pub struct ILSR20_W<'a> { w: &'a mut W, } impl<'a> ILSR20_W<'a> { #[doc = r"Writes raw bits to the field"] #[inline(always)] pub unsafe fn bits(self, value: u8) -> &'a mut W { self.w.bits = (self.w.bits & !(0x03 << 8)) | (((value as u16) & 0x03) << 8); self.w } } #[doc = "Reader of field `ILSR21`"] pub type ILSR21_R = crate::R<u8, u8>; #[doc = "Write proxy for field `ILSR21`"] pub struct ILSR21_W<'a> { w: &'a mut W, } impl<'a> ILSR21_W<'a> { #[doc = r"Writes raw bits to the field"] #[inline(always)] pub unsafe fn bits(self, value: u8) -> &'a mut W { self.w.bits = (self.w.bits & !(0x03 << 10)) | (((value as u16) & 0x03) << 10); self.w } } #[doc = "Reader of field `ILSR22`"] pub type ILSR22_R = crate::R<u8, u8>; #[doc = "Write proxy for field `ILSR22`"] pub struct ILSR22_W<'a> { w: &'a mut W, } impl<'a> ILSR22_W<'a> { #[doc = r"Writes raw bits to the field"] #[inline(always)] pub unsafe fn bits(self, value: u8) -> &'a mut W { self.w.bits = (self.w.bits & !(0x03 << 12)) | (((value as u16) & 0x03) << 12); self.w } } #[doc = "Reader of field `ILSR23`"] pub type ILSR23_R = crate::R<u8, u8>; #[doc = "Write proxy for field `ILSR23`"] pub struct ILSR23_W<'a> { w: &'a mut W, } impl<'a> ILSR23_W<'a> { #[doc = r"Writes raw bits to the field"] #[inline(always)] pub unsafe fn bits(self, value: u8) -> &'a mut W { self.w.bits = (self.w.bits & !(0x03 << 14)) | (((value as u16) & 0x03) << 14); self.w } } impl R { #[doc = "Bits 0:1 - Sets the interrupt level for this interrupt source. Maskable interrupt sources only. See the device-specific data sheet to determine the interrupt source for each ILSRxx bit."] #[inline(always)] pub fn ilsr16(&self) -> ILSR16_R { ILSR16_R::new((self.bits & 0x03) as u8) } #[doc = "Bits 2:3 - Sets the interrupt level for this interrupt source. Maskable interrupt sources only. See the device-specific data sheet to determine the interrupt source for each ILSRxx bit"] #[inline(always)] pub fn ilsr17(&self) -> ILSR17_R { ILSR17_R::new(((self.bits >> 2) & 0x03) as u8) } #[doc = "Bits 4:5 - Sets the interrupt level for this interrupt source. Maskable interrupt sources only. See the device-specific data sheet to determine the interrupt source for each ILSRxx bit."] #[inline(always)] pub fn ilsr18(&self) -> ILSR18_R { ILSR18_R::new(((self.bits >> 4) & 0x03) as u8) } #[doc = "Bits 6:7 - Sets the interrupt level for this interrupt source. Maskable interrupt sources only. See the device-specific data sheet to determine the interrupt source for each ILSRxx bit."] #[inline(always)] pub fn ilsr19(&self) -> ILSR19_R { ILSR19_R::new(((self.bits >> 6) & 0x03) as u8) } #[doc = "Bits 8:9 - Sets the interrupt level for this interrupt source. Maskable interrupt sources only. See the device-specific data sheet to determine the interrupt source for each ILSRxx bit."] #[inline(always)] pub fn ilsr20(&self) -> ILSR20_R { ILSR20_R::new(((self.bits >> 8) & 0x03) as u8) } #[doc = "Bits 10:11 - Sets the interrupt level for this interrupt source. Maskable interrupt sources only. See the device-specific data sheet to determine the interrupt source for each ILSRxx bit."] #[inline(always)] pub fn ilsr21(&self) -> ILSR21_R { ILSR21_R::new(((self.bits >> 10) & 0x03) as u8) } #[doc = "Bits 12:13 - Sets the interrupt level for this interrupt source. Maskable interrupt sources only. See the device-specific data sheet to determine the interrupt source for each"] #[inline(always)] pub fn ilsr22(&self) -> ILSR22_R { ILSR22_R::new(((self.bits >> 12) & 0x03) as u8) } #[doc = "Bits 14:15 - Sets the interrupt level for this interrupt source. Maskable interrupt sources only. See the device-specific data sheet to determine the interrupt source for each"] #[inline(always)] pub fn ilsr23(&self) -> ILSR23_R { ILSR23_R::new(((self.bits >> 14) & 0x03) as u8) } } impl W { #[doc = "Bits 0:1 - Sets the interrupt level for this interrupt source. Maskable interrupt sources only. See the device-specific data sheet to determine the interrupt source for each ILSRxx bit."] #[inline(always)] pub fn ilsr16(&mut self) -> ILSR16_W { ILSR16_W { w: self } } #[doc = "Bits 2:3 - Sets the interrupt level for this interrupt source. Maskable interrupt sources only. See the device-specific data sheet to determine the interrupt source for each ILSRxx bit"] #[inline(always)] pub fn ilsr17(&mut self) -> ILSR17_W { ILSR17_W { w: self } } #[doc = "Bits 4:5 - Sets the interrupt level for this interrupt source. Maskable interrupt sources only. See the device-specific data sheet to determine the interrupt source for each ILSRxx bit."] #[inline(always)] pub fn ilsr18(&mut self) -> ILSR18_W { ILSR18_W { w: self } } #[doc = "Bits 6:7 - Sets the interrupt level for this interrupt source. Maskable interrupt sources only. See the device-specific data sheet to determine the interrupt source for each ILSRxx bit."] #[inline(always)] pub fn ilsr19(&mut self) -> ILSR19_W { ILSR19_W { w: self } } #[doc = "Bits 8:9 - Sets the interrupt level for this interrupt source. Maskable interrupt sources only. See the device-specific data sheet to determine the interrupt source for each ILSRxx bit."] #[inline(always)] pub fn ilsr20(&mut self) -> ILSR20_W { ILSR20_W { w: self } } #[doc = "Bits 10:11 - Sets the interrupt level for this interrupt source. Maskable interrupt sources only. See the device-specific data sheet to determine the interrupt source for each ILSRxx bit."] #[inline(always)] pub fn ilsr21(&mut self) -> ILSR21_W { ILSR21_W { w: self } } #[doc = "Bits 12:13 - Sets the interrupt level for this interrupt source. Maskable interrupt sources only. See the device-specific data sheet to determine the interrupt source for each"] #[inline(always)] pub fn ilsr22(&mut self) -> ILSR22_W { ILSR22_W { w: self } } #[doc = "Bits 14:15 - Sets the interrupt level for this interrupt source. Maskable interrupt sources only. See the device-specific data sheet to determine the interrupt source for each"] #[inline(always)] pub fn ilsr23(&mut self) -> ILSR23_W { ILSR23_W { w: self } } }