nrf52840_pac/
ccm.rs

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    #[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; 0xf0],
13    #[doc = "0x100 - Key-stream generation complete"]
14    pub events_endksgen: EVENTS_ENDKSGEN,
15    #[doc = "0x104 - Encrypt/decrypt complete"]
16    pub events_endcrypt: EVENTS_ENDCRYPT,
17    #[doc = "0x108 - Deprecated register - CCM error event"]
18    pub events_error: EVENTS_ERROR,
19    _reserved7: [u8; 0xf4],
20    #[doc = "0x200 - Shortcut register"]
21    pub shorts: SHORTS,
22    _reserved8: [u8; 0x0100],
23    #[doc = "0x304 - Enable interrupt"]
24    pub intenset: INTENSET,
25    #[doc = "0x308 - Disable interrupt"]
26    pub intenclr: INTENCLR,
27    _reserved10: [u8; 0xf4],
28    #[doc = "0x400 - MIC check result"]
29    pub micstatus: MICSTATUS,
30    _reserved11: [u8; 0xfc],
31    #[doc = "0x500 - Enable"]
32    pub enable: ENABLE,
33    #[doc = "0x504 - Operation mode"]
34    pub mode: MODE,
35    #[doc = "0x508 - Pointer to data structure holding AES key and NONCE vector"]
36    pub cnfptr: CNFPTR,
37    #[doc = "0x50c - Input pointer"]
38    pub inptr: INPTR,
39    #[doc = "0x510 - Output pointer"]
40    pub outptr: OUTPTR,
41    #[doc = "0x514 - Pointer to data area used for temporary storage"]
42    pub scratchptr: SCRATCHPTR,
43    #[doc = "0x518 - Length of key-stream generated when MODE.LENGTH = Extended."]
44    pub maxpacketsize: MAXPACKETSIZE,
45    #[doc = "0x51c - Data rate override setting."]
46    pub rateoverride: RATEOVERRIDE,
47}
48#[doc = "TASKS_KSGEN (w) register accessor: an alias for `Reg<TASKS_KSGEN_SPEC>`"]
49pub type TASKS_KSGEN = crate::Reg<tasks_ksgen::TASKS_KSGEN_SPEC>;
50#[doc = "Start generation of key-stream. This operation will stop by itself when completed."]
51pub mod tasks_ksgen;
52#[doc = "TASKS_CRYPT (w) register accessor: an alias for `Reg<TASKS_CRYPT_SPEC>`"]
53pub type TASKS_CRYPT = crate::Reg<tasks_crypt::TASKS_CRYPT_SPEC>;
54#[doc = "Start encryption/decryption. This operation will stop by itself when completed."]
55pub mod tasks_crypt;
56#[doc = "TASKS_STOP (w) register accessor: an alias for `Reg<TASKS_STOP_SPEC>`"]
57pub type TASKS_STOP = crate::Reg<tasks_stop::TASKS_STOP_SPEC>;
58#[doc = "Stop encryption/decryption"]
59pub mod tasks_stop;
60#[doc = "TASKS_RATEOVERRIDE (w) register accessor: an alias for `Reg<TASKS_RATEOVERRIDE_SPEC>`"]
61pub type TASKS_RATEOVERRIDE = crate::Reg<tasks_rateoverride::TASKS_RATEOVERRIDE_SPEC>;
62#[doc = "Override DATARATE setting in MODE register with the contents of the RATEOVERRIDE register for any ongoing encryption/decryption"]
63pub mod tasks_rateoverride;
64#[doc = "EVENTS_ENDKSGEN (rw) register accessor: an alias for `Reg<EVENTS_ENDKSGEN_SPEC>`"]
65pub type EVENTS_ENDKSGEN = crate::Reg<events_endksgen::EVENTS_ENDKSGEN_SPEC>;
66#[doc = "Key-stream generation complete"]
67pub mod events_endksgen;
68#[doc = "EVENTS_ENDCRYPT (rw) register accessor: an alias for `Reg<EVENTS_ENDCRYPT_SPEC>`"]
69pub type EVENTS_ENDCRYPT = crate::Reg<events_endcrypt::EVENTS_ENDCRYPT_SPEC>;
70#[doc = "Encrypt/decrypt complete"]
71pub mod events_endcrypt;
72#[doc = "EVENTS_ERROR (rw) register accessor: an alias for `Reg<EVENTS_ERROR_SPEC>`"]
73pub type EVENTS_ERROR = crate::Reg<events_error::EVENTS_ERROR_SPEC>;
74#[doc = "Deprecated register - CCM error event"]
75pub mod events_error;
76#[doc = "SHORTS (rw) register accessor: an alias for `Reg<SHORTS_SPEC>`"]
77pub type SHORTS = crate::Reg<shorts::SHORTS_SPEC>;
78#[doc = "Shortcut register"]
79pub mod shorts;
80#[doc = "INTENSET (rw) register accessor: an alias for `Reg<INTENSET_SPEC>`"]
81pub type INTENSET = crate::Reg<intenset::INTENSET_SPEC>;
82#[doc = "Enable interrupt"]
83pub mod intenset;
84#[doc = "INTENCLR (rw) register accessor: an alias for `Reg<INTENCLR_SPEC>`"]
85pub type INTENCLR = crate::Reg<intenclr::INTENCLR_SPEC>;
86#[doc = "Disable interrupt"]
87pub mod intenclr;
88#[doc = "MICSTATUS (r) register accessor: an alias for `Reg<MICSTATUS_SPEC>`"]
89pub type MICSTATUS = crate::Reg<micstatus::MICSTATUS_SPEC>;
90#[doc = "MIC check result"]
91pub mod micstatus;
92#[doc = "ENABLE (rw) register accessor: an alias for `Reg<ENABLE_SPEC>`"]
93pub type ENABLE = crate::Reg<enable::ENABLE_SPEC>;
94#[doc = "Enable"]
95pub mod enable;
96#[doc = "MODE (rw) register accessor: an alias for `Reg<MODE_SPEC>`"]
97pub type MODE = crate::Reg<mode::MODE_SPEC>;
98#[doc = "Operation mode"]
99pub mod mode;
100#[doc = "CNFPTR (rw) register accessor: an alias for `Reg<CNFPTR_SPEC>`"]
101pub type CNFPTR = crate::Reg<cnfptr::CNFPTR_SPEC>;
102#[doc = "Pointer to data structure holding AES key and NONCE vector"]
103pub mod cnfptr;
104#[doc = "INPTR (rw) register accessor: an alias for `Reg<INPTR_SPEC>`"]
105pub type INPTR = crate::Reg<inptr::INPTR_SPEC>;
106#[doc = "Input pointer"]
107pub mod inptr;
108#[doc = "OUTPTR (rw) register accessor: an alias for `Reg<OUTPTR_SPEC>`"]
109pub type OUTPTR = crate::Reg<outptr::OUTPTR_SPEC>;
110#[doc = "Output pointer"]
111pub mod outptr;
112#[doc = "SCRATCHPTR (rw) register accessor: an alias for `Reg<SCRATCHPTR_SPEC>`"]
113pub type SCRATCHPTR = crate::Reg<scratchptr::SCRATCHPTR_SPEC>;
114#[doc = "Pointer to data area used for temporary storage"]
115pub mod scratchptr;
116#[doc = "MAXPACKETSIZE (rw) register accessor: an alias for `Reg<MAXPACKETSIZE_SPEC>`"]
117pub type MAXPACKETSIZE = crate::Reg<maxpacketsize::MAXPACKETSIZE_SPEC>;
118#[doc = "Length of key-stream generated when MODE.LENGTH = Extended."]
119pub mod maxpacketsize;
120#[doc = "RATEOVERRIDE (rw) register accessor: an alias for `Reg<RATEOVERRIDE_SPEC>`"]
121pub type RATEOVERRIDE = crate::Reg<rateoverride::RATEOVERRIDE_SPEC>;
122#[doc = "Data rate override setting."]
123pub mod rateoverride;