nrf51_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 encrypt/decrypt. This operation will stop by itself when completed."]
7    pub tasks_crypt: TASKS_CRYPT,
8    #[doc = "0x08 - Stop encrypt/decrypt."]
9    pub tasks_stop: TASKS_STOP,
10    _reserved3: [u8; 0xf4],
11    #[doc = "0x100 - Keystream generation completed."]
12    pub events_endksgen: EVENTS_ENDKSGEN,
13    #[doc = "0x104 - Encrypt/decrypt completed."]
14    pub events_endcrypt: EVENTS_ENDCRYPT,
15    #[doc = "0x108 - Error happened."]
16    pub events_error: EVENTS_ERROR,
17    _reserved6: [u8; 0xf4],
18    #[doc = "0x200 - Shortcuts for the CCM."]
19    pub shorts: SHORTS,
20    _reserved7: [u8; 0x0100],
21    #[doc = "0x304 - Interrupt enable set register."]
22    pub intenset: INTENSET,
23    #[doc = "0x308 - Interrupt enable clear register."]
24    pub intenclr: INTENCLR,
25    _reserved9: [u8; 0xf4],
26    #[doc = "0x400 - CCM RX MIC check result."]
27    pub micstatus: MICSTATUS,
28    _reserved10: [u8; 0xfc],
29    #[doc = "0x500 - CCM enable."]
30    pub enable: ENABLE,
31    #[doc = "0x504 - Operation mode."]
32    pub mode: MODE,
33    #[doc = "0x508 - Pointer to a data structure holding AES key and NONCE vector."]
34    pub cnfptr: CNFPTR,
35    #[doc = "0x50c - Pointer to the input packet."]
36    pub inptr: INPTR,
37    #[doc = "0x510 - Pointer to the output packet."]
38    pub outptr: OUTPTR,
39    #[doc = "0x514 - Pointer to a scratch data area used for temporary storage during resolution. A minimum of 43 bytes must be reserved."]
40    pub scratchptr: SCRATCHPTR,
41    _reserved16: [u8; 0x0ae4],
42    #[doc = "0xffc - Peripheral power control."]
43    pub power: POWER,
44}
45#[doc = "TASKS_KSGEN (w) register accessor: an alias for `Reg<TASKS_KSGEN_SPEC>`"]
46pub type TASKS_KSGEN = crate::Reg<tasks_ksgen::TASKS_KSGEN_SPEC>;
47#[doc = "Start generation of key-stream. This operation will stop by itself when completed."]
48pub mod tasks_ksgen;
49#[doc = "TASKS_CRYPT (w) register accessor: an alias for `Reg<TASKS_CRYPT_SPEC>`"]
50pub type TASKS_CRYPT = crate::Reg<tasks_crypt::TASKS_CRYPT_SPEC>;
51#[doc = "Start encrypt/decrypt. This operation will stop by itself when completed."]
52pub mod tasks_crypt;
53#[doc = "TASKS_STOP (w) register accessor: an alias for `Reg<TASKS_STOP_SPEC>`"]
54pub type TASKS_STOP = crate::Reg<tasks_stop::TASKS_STOP_SPEC>;
55#[doc = "Stop encrypt/decrypt."]
56pub mod tasks_stop;
57#[doc = "EVENTS_ENDKSGEN (rw) register accessor: an alias for `Reg<EVENTS_ENDKSGEN_SPEC>`"]
58pub type EVENTS_ENDKSGEN = crate::Reg<events_endksgen::EVENTS_ENDKSGEN_SPEC>;
59#[doc = "Keystream generation completed."]
60pub mod events_endksgen;
61#[doc = "EVENTS_ENDCRYPT (rw) register accessor: an alias for `Reg<EVENTS_ENDCRYPT_SPEC>`"]
62pub type EVENTS_ENDCRYPT = crate::Reg<events_endcrypt::EVENTS_ENDCRYPT_SPEC>;
63#[doc = "Encrypt/decrypt completed."]
64pub mod events_endcrypt;
65#[doc = "EVENTS_ERROR (rw) register accessor: an alias for `Reg<EVENTS_ERROR_SPEC>`"]
66pub type EVENTS_ERROR = crate::Reg<events_error::EVENTS_ERROR_SPEC>;
67#[doc = "Error happened."]
68pub mod events_error;
69#[doc = "SHORTS (rw) register accessor: an alias for `Reg<SHORTS_SPEC>`"]
70pub type SHORTS = crate::Reg<shorts::SHORTS_SPEC>;
71#[doc = "Shortcuts for the CCM."]
72pub mod shorts;
73#[doc = "INTENSET (rw) register accessor: an alias for `Reg<INTENSET_SPEC>`"]
74pub type INTENSET = crate::Reg<intenset::INTENSET_SPEC>;
75#[doc = "Interrupt enable set register."]
76pub mod intenset;
77#[doc = "INTENCLR (rw) register accessor: an alias for `Reg<INTENCLR_SPEC>`"]
78pub type INTENCLR = crate::Reg<intenclr::INTENCLR_SPEC>;
79#[doc = "Interrupt enable clear register."]
80pub mod intenclr;
81#[doc = "MICSTATUS (r) register accessor: an alias for `Reg<MICSTATUS_SPEC>`"]
82pub type MICSTATUS = crate::Reg<micstatus::MICSTATUS_SPEC>;
83#[doc = "CCM RX MIC check result."]
84pub mod micstatus;
85#[doc = "ENABLE (rw) register accessor: an alias for `Reg<ENABLE_SPEC>`"]
86pub type ENABLE = crate::Reg<enable::ENABLE_SPEC>;
87#[doc = "CCM enable."]
88pub mod enable;
89#[doc = "MODE (rw) register accessor: an alias for `Reg<MODE_SPEC>`"]
90pub type MODE = crate::Reg<mode::MODE_SPEC>;
91#[doc = "Operation mode."]
92pub mod mode;
93#[doc = "CNFPTR (rw) register accessor: an alias for `Reg<CNFPTR_SPEC>`"]
94pub type CNFPTR = crate::Reg<cnfptr::CNFPTR_SPEC>;
95#[doc = "Pointer to a data structure holding AES key and NONCE vector."]
96pub mod cnfptr;
97#[doc = "INPTR (rw) register accessor: an alias for `Reg<INPTR_SPEC>`"]
98pub type INPTR = crate::Reg<inptr::INPTR_SPEC>;
99#[doc = "Pointer to the input packet."]
100pub mod inptr;
101#[doc = "OUTPTR (rw) register accessor: an alias for `Reg<OUTPTR_SPEC>`"]
102pub type OUTPTR = crate::Reg<outptr::OUTPTR_SPEC>;
103#[doc = "Pointer to the output packet."]
104pub mod outptr;
105#[doc = "SCRATCHPTR (rw) register accessor: an alias for `Reg<SCRATCHPTR_SPEC>`"]
106pub type SCRATCHPTR = crate::Reg<scratchptr::SCRATCHPTR_SPEC>;
107#[doc = "Pointer to a scratch data area used for temporary storage during resolution. A minimum of 43 bytes must be reserved."]
108pub mod scratchptr;
109#[doc = "POWER (rw) register accessor: an alias for `Reg<POWER_SPEC>`"]
110pub type POWER = crate::Reg<power::POWER_SPEC>;
111#[doc = "Peripheral power control."]
112pub mod power;