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
#[doc = "Reader of register SW_STICKY"] pub type R = crate::R<u32, super::SW_STICKY>; #[doc = "Writer for register SW_STICKY"] pub type W = crate::W<u32, super::SW_STICKY>; #[doc = "Register SW_STICKY `reset()`'s with value 0"] impl crate::ResetValue for super::SW_STICKY { type Type = u32; #[inline(always)] fn reset_value() -> Self::Type { 0 } } #[doc = "Reader of field `BLOCK_DTCP_KEY`"] pub type BLOCK_DTCP_KEY_R = crate::R<bool, bool>; #[doc = "Write proxy for field `BLOCK_DTCP_KEY`"] pub struct BLOCK_DTCP_KEY_W<'a> { w: &'a mut W, } impl<'a> BLOCK_DTCP_KEY_W<'a> { #[doc = r"Sets the field bit"] #[inline(always)] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r"Clears the field bit"] #[inline(always)] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r"Writes raw bits to the field"] #[inline(always)] pub fn bit(self, value: bool) -> &'a mut W { self.w.bits = (self.w.bits & !0x01) | ((value as u32) & 0x01); self.w } } #[doc = "Reader of field `SRK_REVOKE_LOCK`"] pub type SRK_REVOKE_LOCK_R = crate::R<bool, bool>; #[doc = "Write proxy for field `SRK_REVOKE_LOCK`"] pub struct SRK_REVOKE_LOCK_W<'a> { w: &'a mut W, } impl<'a> SRK_REVOKE_LOCK_W<'a> { #[doc = r"Sets the field bit"] #[inline(always)] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r"Clears the field bit"] #[inline(always)] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r"Writes raw bits to the field"] #[inline(always)] pub fn bit(self, value: bool) -> &'a mut W { self.w.bits = (self.w.bits & !(0x01 << 1)) | (((value as u32) & 0x01) << 1); self.w } } #[doc = "Reader of field `FIELD_RETURN_LOCK`"] pub type FIELD_RETURN_LOCK_R = crate::R<bool, bool>; #[doc = "Write proxy for field `FIELD_RETURN_LOCK`"] pub struct FIELD_RETURN_LOCK_W<'a> { w: &'a mut W, } impl<'a> FIELD_RETURN_LOCK_W<'a> { #[doc = r"Sets the field bit"] #[inline(always)] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r"Clears the field bit"] #[inline(always)] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r"Writes raw bits to the field"] #[inline(always)] pub fn bit(self, value: bool) -> &'a mut W { self.w.bits = (self.w.bits & !(0x01 << 2)) | (((value as u32) & 0x01) << 2); self.w } } #[doc = "Reader of field `BLOCK_ROM_PART`"] pub type BLOCK_ROM_PART_R = crate::R<bool, bool>; #[doc = "Write proxy for field `BLOCK_ROM_PART`"] pub struct BLOCK_ROM_PART_W<'a> { w: &'a mut W, } impl<'a> BLOCK_ROM_PART_W<'a> { #[doc = r"Sets the field bit"] #[inline(always)] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r"Clears the field bit"] #[inline(always)] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r"Writes raw bits to the field"] #[inline(always)] pub fn bit(self, value: bool) -> &'a mut W { self.w.bits = (self.w.bits & !(0x01 << 3)) | (((value as u32) & 0x01) << 3); self.w } } #[doc = "Reader of field `JTAG_BLOCK_RELEASE`"] pub type JTAG_BLOCK_RELEASE_R = crate::R<bool, bool>; #[doc = "Write proxy for field `JTAG_BLOCK_RELEASE`"] pub struct JTAG_BLOCK_RELEASE_W<'a> { w: &'a mut W, } impl<'a> JTAG_BLOCK_RELEASE_W<'a> { #[doc = r"Sets the field bit"] #[inline(always)] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r"Clears the field bit"] #[inline(always)] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r"Writes raw bits to the field"] #[inline(always)] pub fn bit(self, value: bool) -> &'a mut W { self.w.bits = (self.w.bits & !(0x01 << 4)) | (((value as u32) & 0x01) << 4); self.w } } #[doc = "Reader of field `RSVD0`"] pub type RSVD0_R = crate::R<u32, u32>; impl R { #[doc = "Bit 0 - BLOCK_DTCP_KEY"] #[inline(always)] pub fn block_dtcp_key(&self) -> BLOCK_DTCP_KEY_R { BLOCK_DTCP_KEY_R::new((self.bits & 0x01) != 0) } #[doc = "Bit 1 - SRK_REVOKE_LOCK"] #[inline(always)] pub fn srk_revoke_lock(&self) -> SRK_REVOKE_LOCK_R { SRK_REVOKE_LOCK_R::new(((self.bits >> 1) & 0x01) != 0) } #[doc = "Bit 2 - FIELD_RETURN_LOCK"] #[inline(always)] pub fn field_return_lock(&self) -> FIELD_RETURN_LOCK_R { FIELD_RETURN_LOCK_R::new(((self.bits >> 2) & 0x01) != 0) } #[doc = "Bit 3 - BLOCK_ROM_PART"] #[inline(always)] pub fn block_rom_part(&self) -> BLOCK_ROM_PART_R { BLOCK_ROM_PART_R::new(((self.bits >> 3) & 0x01) != 0) } #[doc = "Bit 4 - JTAG_BLOCK_RELEASE"] #[inline(always)] pub fn jtag_block_release(&self) -> JTAG_BLOCK_RELEASE_R { JTAG_BLOCK_RELEASE_R::new(((self.bits >> 4) & 0x01) != 0) } #[doc = "Bits 5:31 - RSVD0"] #[inline(always)] pub fn rsvd0(&self) -> RSVD0_R { RSVD0_R::new(((self.bits >> 5) & 0x07ff_ffff) as u32) } } impl W { #[doc = "Bit 0 - BLOCK_DTCP_KEY"] #[inline(always)] pub fn block_dtcp_key(&mut self) -> BLOCK_DTCP_KEY_W { BLOCK_DTCP_KEY_W { w: self } } #[doc = "Bit 1 - SRK_REVOKE_LOCK"] #[inline(always)] pub fn srk_revoke_lock(&mut self) -> SRK_REVOKE_LOCK_W { SRK_REVOKE_LOCK_W { w: self } } #[doc = "Bit 2 - FIELD_RETURN_LOCK"] #[inline(always)] pub fn field_return_lock(&mut self) -> FIELD_RETURN_LOCK_W { FIELD_RETURN_LOCK_W { w: self } } #[doc = "Bit 3 - BLOCK_ROM_PART"] #[inline(always)] pub fn block_rom_part(&mut self) -> BLOCK_ROM_PART_W { BLOCK_ROM_PART_W { w: self } } #[doc = "Bit 4 - JTAG_BLOCK_RELEASE"] #[inline(always)] pub fn jtag_block_release(&mut self) -> JTAG_BLOCK_RELEASE_W { JTAG_BLOCK_RELEASE_W { w: self } } }