nrf5340_net_pac/
ccm_ns.rs

1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4    #[doc = "0x00 - Start generation of keystream. 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    #[doc = "0x0c - Override DATARATE setting in MODE register with the contents of the RATEOVERRIDE register for any ongoing encryption/decryption"]
11    pub tasks_rateoverride: TASKS_RATEOVERRIDE,
12    _reserved4: [u8; 0x70],
13    #[doc = "0x80 - Subscribe configuration for task KSGEN"]
14    pub subscribe_ksgen: SUBSCRIBE_KSGEN,
15    #[doc = "0x84 - Subscribe configuration for task CRYPT"]
16    pub subscribe_crypt: SUBSCRIBE_CRYPT,
17    #[doc = "0x88 - Subscribe configuration for task STOP"]
18    pub subscribe_stop: SUBSCRIBE_STOP,
19    #[doc = "0x8c - Subscribe configuration for task RATEOVERRIDE"]
20    pub subscribe_rateoverride: SUBSCRIBE_RATEOVERRIDE,
21    _reserved8: [u8; 0x70],
22    #[doc = "0x100 - Keystream generation complete"]
23    pub events_endksgen: EVENTS_ENDKSGEN,
24    #[doc = "0x104 - Encrypt/decrypt complete"]
25    pub events_endcrypt: EVENTS_ENDCRYPT,
26    #[doc = "0x108 - Deprecated register - CCM error event"]
27    pub events_error: EVENTS_ERROR,
28    _reserved11: [u8; 0x74],
29    #[doc = "0x180 - Publish configuration for event ENDKSGEN"]
30    pub publish_endksgen: PUBLISH_ENDKSGEN,
31    #[doc = "0x184 - Publish configuration for event ENDCRYPT"]
32    pub publish_endcrypt: PUBLISH_ENDCRYPT,
33    #[doc = "0x188 - Deprecated register - Publish configuration for event ERROR"]
34    pub publish_error: PUBLISH_ERROR,
35    _reserved14: [u8; 0x74],
36    #[doc = "0x200 - Shortcuts between local events and tasks"]
37    pub shorts: SHORTS,
38    _reserved15: [u8; 0x0100],
39    #[doc = "0x304 - Enable interrupt"]
40    pub intenset: INTENSET,
41    #[doc = "0x308 - Disable interrupt"]
42    pub intenclr: INTENCLR,
43    _reserved17: [u8; 0xf4],
44    #[doc = "0x400 - MIC check result"]
45    pub micstatus: MICSTATUS,
46    _reserved18: [u8; 0xfc],
47    #[doc = "0x500 - Enable"]
48    pub enable: ENABLE,
49    #[doc = "0x504 - Operation mode"]
50    pub mode: MODE,
51    #[doc = "0x508 - Pointer to data structure holding the AES key and the NONCE vector"]
52    pub cnfptr: CNFPTR,
53    #[doc = "0x50c - Input pointer"]
54    pub inptr: INPTR,
55    #[doc = "0x510 - Output pointer"]
56    pub outptr: OUTPTR,
57    #[doc = "0x514 - Pointer to data area used for temporary storage"]
58    pub scratchptr: SCRATCHPTR,
59    #[doc = "0x518 - Length of keystream generated when MODE.LENGTH = Extended"]
60    pub maxpacketsize: MAXPACKETSIZE,
61    #[doc = "0x51c - Data rate override setting."]
62    pub rateoverride: RATEOVERRIDE,
63    #[doc = "0x520 - Header (S0) mask."]
64    pub headermask: HEADERMASK,
65}
66#[doc = "TASKS_KSGEN (w) register accessor: an alias for `Reg<TASKS_KSGEN_SPEC>`"]
67pub type TASKS_KSGEN = crate::Reg<tasks_ksgen::TASKS_KSGEN_SPEC>;
68#[doc = "Start generation of keystream. This operation will stop by itself when completed."]
69pub mod tasks_ksgen;
70#[doc = "TASKS_CRYPT (w) register accessor: an alias for `Reg<TASKS_CRYPT_SPEC>`"]
71pub type TASKS_CRYPT = crate::Reg<tasks_crypt::TASKS_CRYPT_SPEC>;
72#[doc = "Start encryption/decryption. This operation will stop by itself when completed."]
73pub mod tasks_crypt;
74#[doc = "TASKS_STOP (w) register accessor: an alias for `Reg<TASKS_STOP_SPEC>`"]
75pub type TASKS_STOP = crate::Reg<tasks_stop::TASKS_STOP_SPEC>;
76#[doc = "Stop encryption/decryption"]
77pub mod tasks_stop;
78#[doc = "TASKS_RATEOVERRIDE (w) register accessor: an alias for `Reg<TASKS_RATEOVERRIDE_SPEC>`"]
79pub type TASKS_RATEOVERRIDE = crate::Reg<tasks_rateoverride::TASKS_RATEOVERRIDE_SPEC>;
80#[doc = "Override DATARATE setting in MODE register with the contents of the RATEOVERRIDE register for any ongoing encryption/decryption"]
81pub mod tasks_rateoverride;
82#[doc = "SUBSCRIBE_KSGEN (rw) register accessor: an alias for `Reg<SUBSCRIBE_KSGEN_SPEC>`"]
83pub type SUBSCRIBE_KSGEN = crate::Reg<subscribe_ksgen::SUBSCRIBE_KSGEN_SPEC>;
84#[doc = "Subscribe configuration for task KSGEN"]
85pub mod subscribe_ksgen;
86#[doc = "SUBSCRIBE_CRYPT (rw) register accessor: an alias for `Reg<SUBSCRIBE_CRYPT_SPEC>`"]
87pub type SUBSCRIBE_CRYPT = crate::Reg<subscribe_crypt::SUBSCRIBE_CRYPT_SPEC>;
88#[doc = "Subscribe configuration for task CRYPT"]
89pub mod subscribe_crypt;
90#[doc = "SUBSCRIBE_STOP (rw) register accessor: an alias for `Reg<SUBSCRIBE_STOP_SPEC>`"]
91pub type SUBSCRIBE_STOP = crate::Reg<subscribe_stop::SUBSCRIBE_STOP_SPEC>;
92#[doc = "Subscribe configuration for task STOP"]
93pub mod subscribe_stop;
94#[doc = "SUBSCRIBE_RATEOVERRIDE (rw) register accessor: an alias for `Reg<SUBSCRIBE_RATEOVERRIDE_SPEC>`"]
95pub type SUBSCRIBE_RATEOVERRIDE = crate::Reg<subscribe_rateoverride::SUBSCRIBE_RATEOVERRIDE_SPEC>;
96#[doc = "Subscribe configuration for task RATEOVERRIDE"]
97pub mod subscribe_rateoverride;
98#[doc = "EVENTS_ENDKSGEN (rw) register accessor: an alias for `Reg<EVENTS_ENDKSGEN_SPEC>`"]
99pub type EVENTS_ENDKSGEN = crate::Reg<events_endksgen::EVENTS_ENDKSGEN_SPEC>;
100#[doc = "Keystream generation complete"]
101pub mod events_endksgen;
102#[doc = "EVENTS_ENDCRYPT (rw) register accessor: an alias for `Reg<EVENTS_ENDCRYPT_SPEC>`"]
103pub type EVENTS_ENDCRYPT = crate::Reg<events_endcrypt::EVENTS_ENDCRYPT_SPEC>;
104#[doc = "Encrypt/decrypt complete"]
105pub mod events_endcrypt;
106#[doc = "EVENTS_ERROR (rw) register accessor: an alias for `Reg<EVENTS_ERROR_SPEC>`"]
107pub type EVENTS_ERROR = crate::Reg<events_error::EVENTS_ERROR_SPEC>;
108#[doc = "Deprecated register - CCM error event"]
109pub mod events_error;
110#[doc = "PUBLISH_ENDKSGEN (rw) register accessor: an alias for `Reg<PUBLISH_ENDKSGEN_SPEC>`"]
111pub type PUBLISH_ENDKSGEN = crate::Reg<publish_endksgen::PUBLISH_ENDKSGEN_SPEC>;
112#[doc = "Publish configuration for event ENDKSGEN"]
113pub mod publish_endksgen;
114#[doc = "PUBLISH_ENDCRYPT (rw) register accessor: an alias for `Reg<PUBLISH_ENDCRYPT_SPEC>`"]
115pub type PUBLISH_ENDCRYPT = crate::Reg<publish_endcrypt::PUBLISH_ENDCRYPT_SPEC>;
116#[doc = "Publish configuration for event ENDCRYPT"]
117pub mod publish_endcrypt;
118#[doc = "PUBLISH_ERROR (rw) register accessor: an alias for `Reg<PUBLISH_ERROR_SPEC>`"]
119pub type PUBLISH_ERROR = crate::Reg<publish_error::PUBLISH_ERROR_SPEC>;
120#[doc = "Deprecated register - Publish configuration for event ERROR"]
121pub mod publish_error;
122#[doc = "SHORTS (rw) register accessor: an alias for `Reg<SHORTS_SPEC>`"]
123pub type SHORTS = crate::Reg<shorts::SHORTS_SPEC>;
124#[doc = "Shortcuts between local events and tasks"]
125pub mod shorts;
126#[doc = "INTENSET (rw) register accessor: an alias for `Reg<INTENSET_SPEC>`"]
127pub type INTENSET = crate::Reg<intenset::INTENSET_SPEC>;
128#[doc = "Enable interrupt"]
129pub mod intenset;
130#[doc = "INTENCLR (rw) register accessor: an alias for `Reg<INTENCLR_SPEC>`"]
131pub type INTENCLR = crate::Reg<intenclr::INTENCLR_SPEC>;
132#[doc = "Disable interrupt"]
133pub mod intenclr;
134#[doc = "MICSTATUS (r) register accessor: an alias for `Reg<MICSTATUS_SPEC>`"]
135pub type MICSTATUS = crate::Reg<micstatus::MICSTATUS_SPEC>;
136#[doc = "MIC check result"]
137pub mod micstatus;
138#[doc = "ENABLE (rw) register accessor: an alias for `Reg<ENABLE_SPEC>`"]
139pub type ENABLE = crate::Reg<enable::ENABLE_SPEC>;
140#[doc = "Enable"]
141pub mod enable;
142#[doc = "MODE (rw) register accessor: an alias for `Reg<MODE_SPEC>`"]
143pub type MODE = crate::Reg<mode::MODE_SPEC>;
144#[doc = "Operation mode"]
145pub mod mode;
146#[doc = "CNFPTR (rw) register accessor: an alias for `Reg<CNFPTR_SPEC>`"]
147pub type CNFPTR = crate::Reg<cnfptr::CNFPTR_SPEC>;
148#[doc = "Pointer to data structure holding the AES key and the NONCE vector"]
149pub mod cnfptr;
150#[doc = "INPTR (rw) register accessor: an alias for `Reg<INPTR_SPEC>`"]
151pub type INPTR = crate::Reg<inptr::INPTR_SPEC>;
152#[doc = "Input pointer"]
153pub mod inptr;
154#[doc = "OUTPTR (rw) register accessor: an alias for `Reg<OUTPTR_SPEC>`"]
155pub type OUTPTR = crate::Reg<outptr::OUTPTR_SPEC>;
156#[doc = "Output pointer"]
157pub mod outptr;
158#[doc = "SCRATCHPTR (rw) register accessor: an alias for `Reg<SCRATCHPTR_SPEC>`"]
159pub type SCRATCHPTR = crate::Reg<scratchptr::SCRATCHPTR_SPEC>;
160#[doc = "Pointer to data area used for temporary storage"]
161pub mod scratchptr;
162#[doc = "MAXPACKETSIZE (rw) register accessor: an alias for `Reg<MAXPACKETSIZE_SPEC>`"]
163pub type MAXPACKETSIZE = crate::Reg<maxpacketsize::MAXPACKETSIZE_SPEC>;
164#[doc = "Length of keystream generated when MODE.LENGTH = Extended"]
165pub mod maxpacketsize;
166#[doc = "RATEOVERRIDE (rw) register accessor: an alias for `Reg<RATEOVERRIDE_SPEC>`"]
167pub type RATEOVERRIDE = crate::Reg<rateoverride::RATEOVERRIDE_SPEC>;
168#[doc = "Data rate override setting."]
169pub mod rateoverride;
170#[doc = "HEADERMASK (rw) register accessor: an alias for `Reg<HEADERMASK_SPEC>`"]
171pub type HEADERMASK = crate::Reg<headermask::HEADERMASK_SPEC>;
172#[doc = "Header (S0) mask."]
173pub mod headermask;