#[doc = r"Register block"] #[repr(C)] pub struct RegisterBlock { #[doc = "0x00 - Start generation of key-stream. 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, _reserved3: [u8; 0xf4], #[doc = "0x100 - Key-stream generation complete"] pub events_endksgen: EVENTS_ENDKSGEN, #[doc = "0x104 - Encrypt/decrypt complete"] pub events_endcrypt: EVENTS_ENDCRYPT, #[doc = "0x108 - CCM error event"] pub events_error: EVENTS_ERROR, _reserved6: [u8; 0xf4], #[doc = "0x200 - Shortcuts between local events and tasks"] pub shorts: SHORTS, _reserved7: [u8; 0x0100], #[doc = "0x304 - Enable interrupt"] pub intenset: INTENSET, #[doc = "0x308 - Disable interrupt"] pub intenclr: INTENCLR, _reserved9: [u8; 0xf4], #[doc = "0x400 - MIC check result"] pub micstatus: MICSTATUS, _reserved10: [u8; 0xfc], #[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 = "TASKS_KSGEN (w) register accessor: an alias for `Reg`"] pub type TASKS_KSGEN = crate::Reg; #[doc = "Start generation of key-stream. This operation will stop by itself when completed."] pub mod tasks_ksgen; #[doc = "TASKS_CRYPT (w) register accessor: an alias for `Reg`"] pub type TASKS_CRYPT = crate::Reg; #[doc = "Start encryption/decryption. This operation will stop by itself when completed."] pub mod tasks_crypt; #[doc = "TASKS_STOP (w) register accessor: an alias for `Reg`"] pub type TASKS_STOP = crate::Reg; #[doc = "Stop encryption/decryption"] pub mod tasks_stop; #[doc = "EVENTS_ENDKSGEN (rw) register accessor: an alias for `Reg`"] pub type EVENTS_ENDKSGEN = crate::Reg; #[doc = "Key-stream generation complete"] pub mod events_endksgen; #[doc = "EVENTS_ENDCRYPT (rw) register accessor: an alias for `Reg`"] pub type EVENTS_ENDCRYPT = crate::Reg; #[doc = "Encrypt/decrypt complete"] pub mod events_endcrypt; #[doc = "EVENTS_ERROR (rw) register accessor: an alias for `Reg`"] pub type EVENTS_ERROR = crate::Reg; #[doc = "CCM error event"] pub mod events_error; #[doc = "SHORTS (rw) register accessor: an alias for `Reg`"] pub type SHORTS = crate::Reg; #[doc = "Shortcuts between local events and tasks"] pub mod shorts; #[doc = "INTENSET (rw) register accessor: an alias for `Reg`"] pub type INTENSET = crate::Reg; #[doc = "Enable interrupt"] pub mod intenset; #[doc = "INTENCLR (rw) register accessor: an alias for `Reg`"] pub type INTENCLR = crate::Reg; #[doc = "Disable interrupt"] pub mod intenclr; #[doc = "MICSTATUS (r) register accessor: an alias for `Reg`"] pub type MICSTATUS = crate::Reg; #[doc = "MIC check result"] pub mod micstatus; #[doc = "ENABLE (rw) register accessor: an alias for `Reg`"] pub type ENABLE = crate::Reg; #[doc = "Enable"] pub mod enable; #[doc = "MODE (rw) register accessor: an alias for `Reg`"] pub type MODE = crate::Reg; #[doc = "Operation mode"] pub mod mode; #[doc = "CNFPTR (rw) register accessor: an alias for `Reg`"] pub type CNFPTR = crate::Reg; #[doc = "Pointer to data structure holding AES key and NONCE vector"] pub mod cnfptr; #[doc = "INPTR (rw) register accessor: an alias for `Reg`"] pub type INPTR = crate::Reg; #[doc = "Input pointer"] pub mod inptr; #[doc = "OUTPTR (rw) register accessor: an alias for `Reg`"] pub type OUTPTR = crate::Reg; #[doc = "Output pointer"] pub mod outptr; #[doc = "SCRATCHPTR (rw) register accessor: an alias for `Reg`"] pub type SCRATCHPTR = crate::Reg; #[doc = "Pointer to data area used for temporary storage"] pub mod scratchptr;