lpc55_pac/
hashcrypt.rs

1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4    #[doc = "0x00 - Control register to enable and operate Hash and Crypto"]
5    pub ctrl: crate::Reg<ctrl::CTRL_SPEC>,
6    #[doc = "0x04 - Indicates status of Hash peripheral."]
7    pub status: crate::Reg<status::STATUS_SPEC>,
8    #[doc = "0x08 - Write 1 to enable interrupts; reads back with which are set."]
9    pub intenset: crate::Reg<intenset::INTENSET_SPEC>,
10    #[doc = "0x0c - Write 1 to clear interrupts."]
11    pub intenclr: crate::Reg<intenclr::INTENCLR_SPEC>,
12    #[doc = "0x10 - Setup Master to access memory (if available)"]
13    pub memctrl: crate::Reg<memctrl::MEMCTRL_SPEC>,
14    #[doc = "0x14 - Address to start memory access from (if available)."]
15    pub memaddr: crate::Reg<memaddr::MEMADDR_SPEC>,
16    _reserved6: [u8; 0x08],
17    #[doc = "0x20 - Input of 16 words at a time to load up buffer."]
18    pub indata: crate::Reg<indata::INDATA_SPEC>,
19    #[doc = "0x24..0x40 - no description available"]
20    pub alias: [crate::Reg<alias::ALIAS_SPEC>; 7],
21    #[doc = "0x40..0x60 - no description available"]
22    pub digest0: [crate::Reg<digest0::DIGEST0_SPEC>; 8],
23    _reserved9: [u8; 0x20],
24    #[doc = "0x80 - Crypto settings for AES and Salsa and ChaCha"]
25    pub cryptcfg: crate::Reg<cryptcfg::CRYPTCFG_SPEC>,
26    #[doc = "0x84 - Returns the configuration of this block in this chip - indicates what services are available."]
27    pub config: crate::Reg<config::CONFIG_SPEC>,
28    _reserved11: [u8; 0x04],
29    #[doc = "0x8c - Lock register allows locking to the current security level or unlocking by the lock holding level."]
30    pub lock: crate::Reg<lock::LOCK_SPEC>,
31    #[doc = "0x90..0xa0 - no description available"]
32    pub mask: [crate::Reg<mask::MASK_SPEC>; 4],
33}
34#[doc = "CTRL register accessor: an alias for `Reg<CTRL_SPEC>`"]
35pub type CTRL = crate::Reg<ctrl::CTRL_SPEC>;
36#[doc = "Control register to enable and operate Hash and Crypto"]
37pub mod ctrl;
38#[doc = "STATUS register accessor: an alias for `Reg<STATUS_SPEC>`"]
39pub type STATUS = crate::Reg<status::STATUS_SPEC>;
40#[doc = "Indicates status of Hash peripheral."]
41pub mod status;
42#[doc = "INTENSET register accessor: an alias for `Reg<INTENSET_SPEC>`"]
43pub type INTENSET = crate::Reg<intenset::INTENSET_SPEC>;
44#[doc = "Write 1 to enable interrupts; reads back with which are set."]
45pub mod intenset;
46#[doc = "INTENCLR register accessor: an alias for `Reg<INTENCLR_SPEC>`"]
47pub type INTENCLR = crate::Reg<intenclr::INTENCLR_SPEC>;
48#[doc = "Write 1 to clear interrupts."]
49pub mod intenclr;
50#[doc = "MEMCTRL register accessor: an alias for `Reg<MEMCTRL_SPEC>`"]
51pub type MEMCTRL = crate::Reg<memctrl::MEMCTRL_SPEC>;
52#[doc = "Setup Master to access memory (if available)"]
53pub mod memctrl;
54#[doc = "MEMADDR register accessor: an alias for `Reg<MEMADDR_SPEC>`"]
55pub type MEMADDR = crate::Reg<memaddr::MEMADDR_SPEC>;
56#[doc = "Address to start memory access from (if available)."]
57pub mod memaddr;
58#[doc = "INDATA register accessor: an alias for `Reg<INDATA_SPEC>`"]
59pub type INDATA = crate::Reg<indata::INDATA_SPEC>;
60#[doc = "Input of 16 words at a time to load up buffer."]
61pub mod indata;
62#[doc = "ALIAS register accessor: an alias for `Reg<ALIAS_SPEC>`"]
63pub type ALIAS = crate::Reg<alias::ALIAS_SPEC>;
64#[doc = "no description available"]
65pub mod alias;
66#[doc = "DIGEST0 register accessor: an alias for `Reg<DIGEST0_SPEC>`"]
67pub type DIGEST0 = crate::Reg<digest0::DIGEST0_SPEC>;
68#[doc = "no description available"]
69pub mod digest0;
70#[doc = "CRYPTCFG register accessor: an alias for `Reg<CRYPTCFG_SPEC>`"]
71pub type CRYPTCFG = crate::Reg<cryptcfg::CRYPTCFG_SPEC>;
72#[doc = "Crypto settings for AES and Salsa and ChaCha"]
73pub mod cryptcfg;
74#[doc = "CONFIG register accessor: an alias for `Reg<CONFIG_SPEC>`"]
75pub type CONFIG = crate::Reg<config::CONFIG_SPEC>;
76#[doc = "Returns the configuration of this block in this chip - indicates what services are available."]
77pub mod config;
78#[doc = "LOCK register accessor: an alias for `Reg<LOCK_SPEC>`"]
79pub type LOCK = crate::Reg<lock::LOCK_SPEC>;
80#[doc = "Lock register allows locking to the current security level or unlocking by the lock holding level."]
81pub mod lock;
82#[doc = "MASK register accessor: an alias for `Reg<MASK_SPEC>`"]
83pub type MASK = crate::Reg<mask::MASK_SPEC>;
84#[doc = "no description available"]
85pub mod mask;