Struct rk3399_pac::Crypto0
source · pub struct Crypto0 { /* private fields */ }
Expand description
Crypto 0 Registers
Implementations§
source§impl Crypto0
impl Crypto0
sourcepub const PTR: *const RegisterBlock = {0xff8b0000 as *const crypto::RegisterBlock}
pub const PTR: *const RegisterBlock = {0xff8b0000 as *const crypto::RegisterBlock}
Pointer to the register block
sourcepub const fn ptr() -> *const RegisterBlock
pub const fn ptr() -> *const RegisterBlock
Return the pointer to the register block
sourcepub unsafe fn steal() -> Self
pub unsafe fn steal() -> Self
Steal an instance of this peripheral
§Safety
Ensure that the new instance of the peripheral cannot be used in a way that may race with any existing instances, for example by only accessing read-only or write-only registers, or by consuming the original peripheral and using critical sections to coordinate access between multiple new instances.
Additionally, other software such as HALs may rely on only one peripheral instance existing to ensure memory safety; ensure no stolen instances are passed to such software.
Methods from Deref<Target = RegisterBlock>§
sourcepub fn aes_dout_0(&self) -> &AesDout0
pub fn aes_dout_0(&self) -> &AesDout0
0x98 - AES Output Data 0 Register
sourcepub fn aes_dout_1(&self) -> &AesDout1
pub fn aes_dout_1(&self) -> &AesDout1
0x9c - AES Output Data 1 Register
sourcepub fn aes_dout_2(&self) -> &AesDout2
pub fn aes_dout_2(&self) -> &AesDout2
0xa0 - AES Output Data 2 Register
sourcepub fn aes_dout_3(&self) -> &AesDout3
pub fn aes_dout_3(&self) -> &AesDout3
0xa4 - AES Output Data 3 Register
sourcepub fn tdes_din_0(&self) -> &TdesDin0
pub fn tdes_din_0(&self) -> &TdesDin0
0x108 - TDES Input Data 0 Register
sourcepub fn tdes_din_1(&self) -> &TdesDin1
pub fn tdes_din_1(&self) -> &TdesDin1
0x10c - TDES Input Data 1 Register
sourcepub fn tdes_dout_0(&self) -> &TdesDout0
pub fn tdes_dout_0(&self) -> &TdesDout0
0x110 - TDES Output Data 0 Register
sourcepub fn tdes_dout_1(&self) -> &TdesDout1
pub fn tdes_dout_1(&self) -> &TdesDout1
0x114 - TDES Output Data 1 Register
sourcepub fn tdes_key1_0(&self) -> &TdesKey1_0
pub fn tdes_key1_0(&self) -> &TdesKey1_0
0x120 - TDES Key1 data 1 Register
sourcepub fn tdes_key1_1(&self) -> &TdesKey1_1
pub fn tdes_key1_1(&self) -> &TdesKey1_1
0x124 - TDES Key1 data 1 Register
sourcepub fn tdes_key2_0(&self) -> &TdesKey2_0
pub fn tdes_key2_0(&self) -> &TdesKey2_0
0x128 - TDES Key2 data 0 Register
sourcepub fn tdes_key2_1(&self) -> &TdesKey2_1
pub fn tdes_key2_1(&self) -> &TdesKey2_1
0x12c - TDES Key2 data 1 Register
sourcepub fn tdes_key3_0(&self) -> &TdesKey3_0
pub fn tdes_key3_0(&self) -> &TdesKey3_0
0x130 - TDES Key3 data 0 Register
sourcepub fn tdes_key3_1(&self) -> &TdesKey3_1
pub fn tdes_key3_1(&self) -> &TdesKey3_1
0x134 - TDES Key3 data 1 Register
sourcepub fn hash_msg_len(&self) -> &HashMsgLen
pub fn hash_msg_len(&self) -> &HashMsgLen
0x188 - Hash Message Len
sourcepub fn hash_dout_0(&self) -> &HashDout0
pub fn hash_dout_0(&self) -> &HashDout0
0x18c - Hash Result Register 0
sourcepub fn hash_dout_1(&self) -> &HashDout1
pub fn hash_dout_1(&self) -> &HashDout1
0x190 - Hash Result Register 1
sourcepub fn hash_dout_2(&self) -> &HashDout2
pub fn hash_dout_2(&self) -> &HashDout2
0x194 - Hash Result Register 2
sourcepub fn hash_dout_3(&self) -> &HashDout3
pub fn hash_dout_3(&self) -> &HashDout3
0x198 - Hash Result Register 3
sourcepub fn hash_dout_4(&self) -> &HashDout4
pub fn hash_dout_4(&self) -> &HashDout4
0x19c - Hash Result Register 4
sourcepub fn hash_dout_5(&self) -> &HashDout5
pub fn hash_dout_5(&self) -> &HashDout5
0x1a0 - Hash Result Register 5
sourcepub fn hash_dout_6(&self) -> &HashDout6
pub fn hash_dout_6(&self) -> &HashDout6
0x1a4 - Hash Result Register 6
sourcepub fn hash_dout_7(&self) -> &HashDout7
pub fn hash_dout_7(&self) -> &HashDout7
0x1a8 - Hash Result Register 7
sourcepub fn hash_seed_0(&self) -> &HashSeed0
pub fn hash_seed_0(&self) -> &HashSeed0
0x1ac - PRNG Seed/HMAC Key Register 0
sourcepub fn hash_seed_1(&self) -> &HashSeed1
pub fn hash_seed_1(&self) -> &HashSeed1
0x1b0 - PRNG Seed/HMAC Key Register 1
sourcepub fn hash_seed_2(&self) -> &HashSeed2
pub fn hash_seed_2(&self) -> &HashSeed2
0x1b4 - PRNG Seed/HMAC Key Register 2
sourcepub fn hash_seed_3(&self) -> &HashSeed3
pub fn hash_seed_3(&self) -> &HashSeed3
0x1b8 - PRNG Seed/HMAC Key Register 3
sourcepub fn hash_seed_4(&self) -> &HashSeed4
pub fn hash_seed_4(&self) -> &HashSeed4
0x1bc - PRNG Seed/HMAC Key Register 4
sourcepub fn trng_dout_0(&self) -> &TrngDout0
pub fn trng_dout_0(&self) -> &TrngDout0
0x204 - TRNG output register 0
sourcepub fn trng_dout_1(&self) -> &TrngDout1
pub fn trng_dout_1(&self) -> &TrngDout1
0x208 - TRNG output register 1
sourcepub fn trng_dout_2(&self) -> &TrngDout2
pub fn trng_dout_2(&self) -> &TrngDout2
0x20c - TRNG output register 2
sourcepub fn trng_dout_3(&self) -> &TrngDout3
pub fn trng_dout_3(&self) -> &TrngDout3
0x210 - TRNG output register 3
sourcepub fn trng_dout_4(&self) -> &TrngDout4
pub fn trng_dout_4(&self) -> &TrngDout4
0x214 - TRNG output register 4
sourcepub fn trng_dout_5(&self) -> &TrngDout5
pub fn trng_dout_5(&self) -> &TrngDout5
0x218 - TRNG output register 5
sourcepub fn trng_dout_6(&self) -> &TrngDout6
pub fn trng_dout_6(&self) -> &TrngDout6
0x21c - TRNG output register 6
sourcepub fn trng_dout_7(&self) -> &TrngDout7
pub fn trng_dout_7(&self) -> &TrngDout7
0x220 - TRNG output register 7
sourcepub fn aes_tkey_0(&self) -> &AesTkey0
pub fn aes_tkey_0(&self) -> &AesTkey0
0x300 - AES Tweak Key data 0 Register
sourcepub fn aes_tkey_1(&self) -> &AesTkey1
pub fn aes_tkey_1(&self) -> &AesTkey1
0x304 - AES Tweak Key data 1 Register
sourcepub fn aes_tkey_2(&self) -> &AesTkey2
pub fn aes_tkey_2(&self) -> &AesTkey2
0x308 - AES Tweak Key data 2 Register
sourcepub fn aes_tkey_3(&self) -> &AesTkey3
pub fn aes_tkey_3(&self) -> &AesTkey3
0x30c - AES Tweak Key data 3 Register
sourcepub fn aes_tkey_4(&self) -> &AesTkey4
pub fn aes_tkey_4(&self) -> &AesTkey4
0x310 - AES Tweak Key data 4 Register
sourcepub fn aes_tkey_5(&self) -> &AesTkey5
pub fn aes_tkey_5(&self) -> &AesTkey5
0x314 - AES Tweak Key data 5 Register
sourcepub fn aes_tkey_6(&self) -> &AesTkey6
pub fn aes_tkey_6(&self) -> &AesTkey6
0x318 - AES Tweak Key data 6 Register
sourcepub fn aes_tkey_7(&self) -> &AesTkey7
pub fn aes_tkey_7(&self) -> &AesTkey7
0x31c - AES Tweak Key data 7 Register
sourcepub fn key_secure(&self) -> &KeySecure
pub fn key_secure(&self) -> &KeySecure
0x330 - Key Secure Control Register
sourcepub fn crypto_ver(&self) -> &CryptoVer
pub fn crypto_ver(&self) -> &CryptoVer
0x3f0 - Crypto Version register