nrf51_pac/
ecb.rs

1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4    #[doc = "0x00 - Start ECB block encrypt. If a crypto operation is running, this will not initiate a new encryption and the ERRORECB event will be triggered."]
5    pub tasks_startecb: TASKS_STARTECB,
6    #[doc = "0x04 - Stop current ECB encryption. If a crypto operation is running, this will will trigger the ERRORECB event."]
7    pub tasks_stopecb: TASKS_STOPECB,
8    _reserved2: [u8; 0xf8],
9    #[doc = "0x100 - ECB block encrypt complete."]
10    pub events_endecb: EVENTS_ENDECB,
11    #[doc = "0x104 - ECB block encrypt aborted due to a STOPECB task or due to an error."]
12    pub events_errorecb: EVENTS_ERRORECB,
13    _reserved4: [u8; 0x01fc],
14    #[doc = "0x304 - Interrupt enable set register."]
15    pub intenset: INTENSET,
16    #[doc = "0x308 - Interrupt enable clear register."]
17    pub intenclr: INTENCLR,
18    _reserved6: [u8; 0x01f8],
19    #[doc = "0x504 - ECB block encrypt memory pointer."]
20    pub ecbdataptr: ECBDATAPTR,
21    _reserved7: [u8; 0x0af4],
22    #[doc = "0xffc - Peripheral power control."]
23    pub power: POWER,
24}
25#[doc = "TASKS_STARTECB (w) register accessor: an alias for `Reg<TASKS_STARTECB_SPEC>`"]
26pub type TASKS_STARTECB = crate::Reg<tasks_startecb::TASKS_STARTECB_SPEC>;
27#[doc = "Start ECB block encrypt. If a crypto operation is running, this will not initiate a new encryption and the ERRORECB event will be triggered."]
28pub mod tasks_startecb;
29#[doc = "TASKS_STOPECB (w) register accessor: an alias for `Reg<TASKS_STOPECB_SPEC>`"]
30pub type TASKS_STOPECB = crate::Reg<tasks_stopecb::TASKS_STOPECB_SPEC>;
31#[doc = "Stop current ECB encryption. If a crypto operation is running, this will will trigger the ERRORECB event."]
32pub mod tasks_stopecb;
33#[doc = "EVENTS_ENDECB (rw) register accessor: an alias for `Reg<EVENTS_ENDECB_SPEC>`"]
34pub type EVENTS_ENDECB = crate::Reg<events_endecb::EVENTS_ENDECB_SPEC>;
35#[doc = "ECB block encrypt complete."]
36pub mod events_endecb;
37#[doc = "EVENTS_ERRORECB (rw) register accessor: an alias for `Reg<EVENTS_ERRORECB_SPEC>`"]
38pub type EVENTS_ERRORECB = crate::Reg<events_errorecb::EVENTS_ERRORECB_SPEC>;
39#[doc = "ECB block encrypt aborted due to a STOPECB task or due to an error."]
40pub mod events_errorecb;
41#[doc = "INTENSET (rw) register accessor: an alias for `Reg<INTENSET_SPEC>`"]
42pub type INTENSET = crate::Reg<intenset::INTENSET_SPEC>;
43#[doc = "Interrupt enable set register."]
44pub mod intenset;
45#[doc = "INTENCLR (rw) register accessor: an alias for `Reg<INTENCLR_SPEC>`"]
46pub type INTENCLR = crate::Reg<intenclr::INTENCLR_SPEC>;
47#[doc = "Interrupt enable clear register."]
48pub mod intenclr;
49#[doc = "ECBDATAPTR (rw) register accessor: an alias for `Reg<ECBDATAPTR_SPEC>`"]
50pub type ECBDATAPTR = crate::Reg<ecbdataptr::ECBDATAPTR_SPEC>;
51#[doc = "ECB block encrypt memory pointer."]
52pub mod ecbdataptr;
53#[doc = "POWER (rw) register accessor: an alias for `Reg<POWER_SPEC>`"]
54pub type POWER = crate::Reg<power::POWER_SPEC>;
55#[doc = "Peripheral power control."]
56pub mod power;