1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4 #[doc = "0x00 - Start generation of key-stream. This operation will stop by itself when completed."]
5 pub tasks_ksgen: TASKS_KSGEN,
6 #[doc = "0x04 - Start encryption/decryption. This operation will stop by itself when completed."]
7 pub tasks_crypt: TASKS_CRYPT,
8 #[doc = "0x08 - Stop encryption/decryption"]
9 pub tasks_stop: TASKS_STOP,
10 _reserved3: [u8; 0xf4],
11 #[doc = "0x100 - Key-stream generation complete"]
12 pub events_endksgen: EVENTS_ENDKSGEN,
13 #[doc = "0x104 - Encrypt/decrypt complete"]
14 pub events_endcrypt: EVENTS_ENDCRYPT,
15 #[doc = "0x108 - CCM error event"]
16 pub events_error: EVENTS_ERROR,
17 _reserved6: [u8; 0xf4],
18 #[doc = "0x200 - Shortcut register"]
19 pub shorts: SHORTS,
20 _reserved7: [u8; 0x0100],
21 #[doc = "0x304 - Enable interrupt"]
22 pub intenset: INTENSET,
23 #[doc = "0x308 - Disable interrupt"]
24 pub intenclr: INTENCLR,
25 _reserved9: [u8; 0xf4],
26 #[doc = "0x400 - MIC check result"]
27 pub micstatus: MICSTATUS,
28 _reserved10: [u8; 0xfc],
29 #[doc = "0x500 - Enable"]
30 pub enable: ENABLE,
31 #[doc = "0x504 - Operation mode"]
32 pub mode: MODE,
33 #[doc = "0x508 - Pointer to data structure holding AES key and NONCE vector"]
34 pub cnfptr: CNFPTR,
35 #[doc = "0x50c - Input pointer"]
36 pub inptr: INPTR,
37 #[doc = "0x510 - Output pointer"]
38 pub outptr: OUTPTR,
39 #[doc = "0x514 - Pointer to data area used for temporary storage"]
40 pub scratchptr: SCRATCHPTR,
41}
42#[doc = "TASKS_KSGEN (w) register accessor: an alias for `Reg<TASKS_KSGEN_SPEC>`"]
43pub type TASKS_KSGEN = crate::Reg<tasks_ksgen::TASKS_KSGEN_SPEC>;
44#[doc = "Start generation of key-stream. This operation will stop by itself when completed."]
45pub mod tasks_ksgen;
46#[doc = "TASKS_CRYPT (w) register accessor: an alias for `Reg<TASKS_CRYPT_SPEC>`"]
47pub type TASKS_CRYPT = crate::Reg<tasks_crypt::TASKS_CRYPT_SPEC>;
48#[doc = "Start encryption/decryption. This operation will stop by itself when completed."]
49pub mod tasks_crypt;
50#[doc = "TASKS_STOP (w) register accessor: an alias for `Reg<TASKS_STOP_SPEC>`"]
51pub type TASKS_STOP = crate::Reg<tasks_stop::TASKS_STOP_SPEC>;
52#[doc = "Stop encryption/decryption"]
53pub mod tasks_stop;
54#[doc = "EVENTS_ENDKSGEN (rw) register accessor: an alias for `Reg<EVENTS_ENDKSGEN_SPEC>`"]
55pub type EVENTS_ENDKSGEN = crate::Reg<events_endksgen::EVENTS_ENDKSGEN_SPEC>;
56#[doc = "Key-stream generation complete"]
57pub mod events_endksgen;
58#[doc = "EVENTS_ENDCRYPT (rw) register accessor: an alias for `Reg<EVENTS_ENDCRYPT_SPEC>`"]
59pub type EVENTS_ENDCRYPT = crate::Reg<events_endcrypt::EVENTS_ENDCRYPT_SPEC>;
60#[doc = "Encrypt/decrypt complete"]
61pub mod events_endcrypt;
62#[doc = "EVENTS_ERROR (rw) register accessor: an alias for `Reg<EVENTS_ERROR_SPEC>`"]
63pub type EVENTS_ERROR = crate::Reg<events_error::EVENTS_ERROR_SPEC>;
64#[doc = "CCM error event"]
65pub mod events_error;
66#[doc = "SHORTS (rw) register accessor: an alias for `Reg<SHORTS_SPEC>`"]
67pub type SHORTS = crate::Reg<shorts::SHORTS_SPEC>;
68#[doc = "Shortcut register"]
69pub mod shorts;
70#[doc = "INTENSET (rw) register accessor: an alias for `Reg<INTENSET_SPEC>`"]
71pub type INTENSET = crate::Reg<intenset::INTENSET_SPEC>;
72#[doc = "Enable interrupt"]
73pub mod intenset;
74#[doc = "INTENCLR (rw) register accessor: an alias for `Reg<INTENCLR_SPEC>`"]
75pub type INTENCLR = crate::Reg<intenclr::INTENCLR_SPEC>;
76#[doc = "Disable interrupt"]
77pub mod intenclr;
78#[doc = "MICSTATUS (r) register accessor: an alias for `Reg<MICSTATUS_SPEC>`"]
79pub type MICSTATUS = crate::Reg<micstatus::MICSTATUS_SPEC>;
80#[doc = "MIC check result"]
81pub mod micstatus;
82#[doc = "ENABLE (rw) register accessor: an alias for `Reg<ENABLE_SPEC>`"]
83pub type ENABLE = crate::Reg<enable::ENABLE_SPEC>;
84#[doc = "Enable"]
85pub mod enable;
86#[doc = "MODE (rw) register accessor: an alias for `Reg<MODE_SPEC>`"]
87pub type MODE = crate::Reg<mode::MODE_SPEC>;
88#[doc = "Operation mode"]
89pub mod mode;
90#[doc = "CNFPTR (rw) register accessor: an alias for `Reg<CNFPTR_SPEC>`"]
91pub type CNFPTR = crate::Reg<cnfptr::CNFPTR_SPEC>;
92#[doc = "Pointer to data structure holding AES key and NONCE vector"]
93pub mod cnfptr;
94#[doc = "INPTR (rw) register accessor: an alias for `Reg<INPTR_SPEC>`"]
95pub type INPTR = crate::Reg<inptr::INPTR_SPEC>;
96#[doc = "Input pointer"]
97pub mod inptr;
98#[doc = "OUTPTR (rw) register accessor: an alias for `Reg<OUTPTR_SPEC>`"]
99pub type OUTPTR = crate::Reg<outptr::OUTPTR_SPEC>;
100#[doc = "Output pointer"]
101pub mod outptr;
102#[doc = "SCRATCHPTR (rw) register accessor: an alias for `Reg<SCRATCHPTR_SPEC>`"]
103pub type SCRATCHPTR = crate::Reg<scratchptr::SCRATCHPTR_SPEC>;
104#[doc = "Pointer to data area used for temporary storage"]
105pub mod scratchptr;