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 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246
#[doc = r"Register block"] #[repr(C)] pub struct RegisterBlock { #[doc = "0x00 - Start generation of keystream. This operation will stop by itself when completed."] pub tasks_ksgen: TASKS_KSGEN, #[doc = "0x04 - Start encryption/decryption. This operation will stop by itself when completed."] pub tasks_crypt: TASKS_CRYPT, #[doc = "0x08 - Stop encryption/decryption"] pub tasks_stop: TASKS_STOP, #[doc = "0x0c - Override DATARATE setting in MODE register with the contents of the RATEOVERRIDE register for any ongoing encryption/decryption"] pub tasks_rateoverride: TASKS_RATEOVERRIDE, _reserved4: [u8; 240usize], #[doc = "0x100 - Keystream generation complete"] pub events_endksgen: EVENTS_ENDKSGEN, #[doc = "0x104 - Encrypt/decrypt complete"] pub events_endcrypt: EVENTS_ENDCRYPT, #[doc = "0x108 - Deprecated register - CCM error event"] pub events_error: EVENTS_ERROR, _reserved7: [u8; 244usize], #[doc = "0x200 - Shortcuts between local events and tasks"] pub shorts: SHORTS, _reserved8: [u8; 256usize], #[doc = "0x304 - Enable interrupt"] pub intenset: INTENSET, #[doc = "0x308 - Disable interrupt"] pub intenclr: INTENCLR, _reserved10: [u8; 244usize], #[doc = "0x400 - MIC check result"] pub micstatus: MICSTATUS, _reserved11: [u8; 252usize], #[doc = "0x500 - Enable"] pub enable: ENABLE, #[doc = "0x504 - Operation mode"] pub mode: MODE, #[doc = "0x508 - Pointer to data structure holding AES key and NONCE vector"] pub cnfptr: CNFPTR, #[doc = "0x50c - Input pointer"] pub inptr: INPTR, #[doc = "0x510 - Output pointer"] pub outptr: OUTPTR, #[doc = "0x514 - Pointer to data area used for temporary storage"] pub scratchptr: SCRATCHPTR, #[doc = "0x518 - Length of keystream generated when MODE.LENGTH = Extended."] pub maxpacketsize: MAXPACKETSIZE, #[doc = "0x51c - Data rate override setting."] pub rateoverride: RATEOVERRIDE, } #[doc = "Start generation of keystream. This operation will stop by itself when completed.\n\nThis register you can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [tasks_ksgen](tasks_ksgen) module"] pub type TASKS_KSGEN = crate::Reg<u32, _TASKS_KSGEN>; #[allow(missing_docs)] #[doc(hidden)] pub struct _TASKS_KSGEN; #[doc = "`write(|w| ..)` method takes [tasks_ksgen::W](tasks_ksgen::W) writer structure"] impl crate::Writable for TASKS_KSGEN {} #[doc = "Start generation of keystream. This operation will stop by itself when completed."] pub mod tasks_ksgen; #[doc = "Start encryption/decryption. This operation will stop by itself when completed.\n\nThis register you can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [tasks_crypt](tasks_crypt) module"] pub type TASKS_CRYPT = crate::Reg<u32, _TASKS_CRYPT>; #[allow(missing_docs)] #[doc(hidden)] pub struct _TASKS_CRYPT; #[doc = "`write(|w| ..)` method takes [tasks_crypt::W](tasks_crypt::W) writer structure"] impl crate::Writable for TASKS_CRYPT {} #[doc = "Start encryption/decryption. This operation will stop by itself when completed."] pub mod tasks_crypt; #[doc = "Stop encryption/decryption\n\nThis register you can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [tasks_stop](tasks_stop) module"] pub type TASKS_STOP = crate::Reg<u32, _TASKS_STOP>; #[allow(missing_docs)] #[doc(hidden)] pub struct _TASKS_STOP; #[doc = "`write(|w| ..)` method takes [tasks_stop::W](tasks_stop::W) writer structure"] impl crate::Writable for TASKS_STOP {} #[doc = "Stop encryption/decryption"] pub mod tasks_stop; #[doc = "Override DATARATE setting in MODE register with the contents of the RATEOVERRIDE register for any ongoing encryption/decryption\n\nThis register you can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [tasks_rateoverride](tasks_rateoverride) module"] pub type TASKS_RATEOVERRIDE = crate::Reg<u32, _TASKS_RATEOVERRIDE>; #[allow(missing_docs)] #[doc(hidden)] pub struct _TASKS_RATEOVERRIDE; #[doc = "`write(|w| ..)` method takes [tasks_rateoverride::W](tasks_rateoverride::W) writer structure"] impl crate::Writable for TASKS_RATEOVERRIDE {} #[doc = "Override DATARATE setting in MODE register with the contents of the RATEOVERRIDE register for any ongoing encryption/decryption"] pub mod tasks_rateoverride; #[doc = "Keystream generation complete\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [events_endksgen](events_endksgen) module"] pub type EVENTS_ENDKSGEN = crate::Reg<u32, _EVENTS_ENDKSGEN>; #[allow(missing_docs)] #[doc(hidden)] pub struct _EVENTS_ENDKSGEN; #[doc = "`read()` method returns [events_endksgen::R](events_endksgen::R) reader structure"] impl crate::Readable for EVENTS_ENDKSGEN {} #[doc = "`write(|w| ..)` method takes [events_endksgen::W](events_endksgen::W) writer structure"] impl crate::Writable for EVENTS_ENDKSGEN {} #[doc = "Keystream generation complete"] pub mod events_endksgen; #[doc = "Encrypt/decrypt complete\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [events_endcrypt](events_endcrypt) module"] pub type EVENTS_ENDCRYPT = crate::Reg<u32, _EVENTS_ENDCRYPT>; #[allow(missing_docs)] #[doc(hidden)] pub struct _EVENTS_ENDCRYPT; #[doc = "`read()` method returns [events_endcrypt::R](events_endcrypt::R) reader structure"] impl crate::Readable for EVENTS_ENDCRYPT {} #[doc = "`write(|w| ..)` method takes [events_endcrypt::W](events_endcrypt::W) writer structure"] impl crate::Writable for EVENTS_ENDCRYPT {} #[doc = "Encrypt/decrypt complete"] pub mod events_endcrypt; #[doc = "Deprecated register - CCM error event\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [events_error](events_error) module"] pub type EVENTS_ERROR = crate::Reg<u32, _EVENTS_ERROR>; #[allow(missing_docs)] #[doc(hidden)] pub struct _EVENTS_ERROR; #[doc = "`read()` method returns [events_error::R](events_error::R) reader structure"] impl crate::Readable for EVENTS_ERROR {} #[doc = "`write(|w| ..)` method takes [events_error::W](events_error::W) writer structure"] impl crate::Writable for EVENTS_ERROR {} #[doc = "Deprecated register - CCM error event"] pub mod events_error; #[doc = "Shortcuts between local events and tasks\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [shorts](shorts) module"] pub type SHORTS = crate::Reg<u32, _SHORTS>; #[allow(missing_docs)] #[doc(hidden)] pub struct _SHORTS; #[doc = "`read()` method returns [shorts::R](shorts::R) reader structure"] impl crate::Readable for SHORTS {} #[doc = "`write(|w| ..)` method takes [shorts::W](shorts::W) writer structure"] impl crate::Writable for SHORTS {} #[doc = "Shortcuts between local events and tasks"] pub mod shorts; #[doc = "Enable interrupt\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [intenset](intenset) module"] pub type INTENSET = crate::Reg<u32, _INTENSET>; #[allow(missing_docs)] #[doc(hidden)] pub struct _INTENSET; #[doc = "`read()` method returns [intenset::R](intenset::R) reader structure"] impl crate::Readable for INTENSET {} #[doc = "`write(|w| ..)` method takes [intenset::W](intenset::W) writer structure"] impl crate::Writable for INTENSET {} #[doc = "Enable interrupt"] pub mod intenset; #[doc = "Disable interrupt\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [intenclr](intenclr) module"] pub type INTENCLR = crate::Reg<u32, _INTENCLR>; #[allow(missing_docs)] #[doc(hidden)] pub struct _INTENCLR; #[doc = "`read()` method returns [intenclr::R](intenclr::R) reader structure"] impl crate::Readable for INTENCLR {} #[doc = "`write(|w| ..)` method takes [intenclr::W](intenclr::W) writer structure"] impl crate::Writable for INTENCLR {} #[doc = "Disable interrupt"] pub mod intenclr; #[doc = "MIC check result\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 [micstatus](micstatus) module"] pub type MICSTATUS = crate::Reg<u32, _MICSTATUS>; #[allow(missing_docs)] #[doc(hidden)] pub struct _MICSTATUS; #[doc = "`read()` method returns [micstatus::R](micstatus::R) reader structure"] impl crate::Readable for MICSTATUS {} #[doc = "MIC check result"] pub mod micstatus; #[doc = "Enable\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [enable](enable) module"] pub type ENABLE = crate::Reg<u32, _ENABLE>; #[allow(missing_docs)] #[doc(hidden)] pub struct _ENABLE; #[doc = "`read()` method returns [enable::R](enable::R) reader structure"] impl crate::Readable for ENABLE {} #[doc = "`write(|w| ..)` method takes [enable::W](enable::W) writer structure"] impl crate::Writable for ENABLE {} #[doc = "Enable"] pub mod enable; #[doc = "Operation mode\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [mode](mode) module"] pub type MODE = crate::Reg<u32, _MODE>; #[allow(missing_docs)] #[doc(hidden)] pub struct _MODE; #[doc = "`read()` method returns [mode::R](mode::R) reader structure"] impl crate::Readable for MODE {} #[doc = "`write(|w| ..)` method takes [mode::W](mode::W) writer structure"] impl crate::Writable for MODE {} #[doc = "Operation mode"] pub mod mode; #[doc = "Pointer to data structure holding AES key and NONCE vector\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [cnfptr](cnfptr) module"] pub type CNFPTR = crate::Reg<u32, _CNFPTR>; #[allow(missing_docs)] #[doc(hidden)] pub struct _CNFPTR; #[doc = "`read()` method returns [cnfptr::R](cnfptr::R) reader structure"] impl crate::Readable for CNFPTR {} #[doc = "`write(|w| ..)` method takes [cnfptr::W](cnfptr::W) writer structure"] impl crate::Writable for CNFPTR {} #[doc = "Pointer to data structure holding AES key and NONCE vector"] pub mod cnfptr; #[doc = "Input pointer\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [inptr](inptr) module"] pub type INPTR = crate::Reg<u32, _INPTR>; #[allow(missing_docs)] #[doc(hidden)] pub struct _INPTR; #[doc = "`read()` method returns [inptr::R](inptr::R) reader structure"] impl crate::Readable for INPTR {} #[doc = "`write(|w| ..)` method takes [inptr::W](inptr::W) writer structure"] impl crate::Writable for INPTR {} #[doc = "Input pointer"] pub mod inptr; #[doc = "Output pointer\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [outptr](outptr) module"] pub type OUTPTR = crate::Reg<u32, _OUTPTR>; #[allow(missing_docs)] #[doc(hidden)] pub struct _OUTPTR; #[doc = "`read()` method returns [outptr::R](outptr::R) reader structure"] impl crate::Readable for OUTPTR {} #[doc = "`write(|w| ..)` method takes [outptr::W](outptr::W) writer structure"] impl crate::Writable for OUTPTR {} #[doc = "Output pointer"] pub mod outptr; #[doc = "Pointer to data area used for temporary storage\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [scratchptr](scratchptr) module"] pub type SCRATCHPTR = crate::Reg<u32, _SCRATCHPTR>; #[allow(missing_docs)] #[doc(hidden)] pub struct _SCRATCHPTR; #[doc = "`read()` method returns [scratchptr::R](scratchptr::R) reader structure"] impl crate::Readable for SCRATCHPTR {} #[doc = "`write(|w| ..)` method takes [scratchptr::W](scratchptr::W) writer structure"] impl crate::Writable for SCRATCHPTR {} #[doc = "Pointer to data area used for temporary storage"] pub mod scratchptr; #[doc = "Length of keystream generated when MODE.LENGTH = Extended.\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [maxpacketsize](maxpacketsize) module"] pub type MAXPACKETSIZE = crate::Reg<u32, _MAXPACKETSIZE>; #[allow(missing_docs)] #[doc(hidden)] pub struct _MAXPACKETSIZE; #[doc = "`read()` method returns [maxpacketsize::R](maxpacketsize::R) reader structure"] impl crate::Readable for MAXPACKETSIZE {} #[doc = "`write(|w| ..)` method takes [maxpacketsize::W](maxpacketsize::W) writer structure"] impl crate::Writable for MAXPACKETSIZE {} #[doc = "Length of keystream generated when MODE.LENGTH = Extended."] pub mod maxpacketsize; #[doc = "Data rate override setting.\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [rateoverride](rateoverride) module"] pub type RATEOVERRIDE = crate::Reg<u32, _RATEOVERRIDE>; #[allow(missing_docs)] #[doc(hidden)] pub struct _RATEOVERRIDE; #[doc = "`read()` method returns [rateoverride::R](rateoverride::R) reader structure"] impl crate::Readable for RATEOVERRIDE {} #[doc = "`write(|w| ..)` method takes [rateoverride::W](rateoverride::W) writer structure"] impl crate::Writable for RATEOVERRIDE {} #[doc = "Data rate override setting."] pub mod rateoverride;