pub struct DS { /* private fields */ }
Expand description
Digital Signature
Implementations§
Source§impl DS
impl DS
Sourcepub const PTR: *const RegisterBlock = {0x6003d000 as *const ds::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x6003d000 as *const ds::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 c_mem_iter(&self) -> impl Iterator<Item = &C_MEM>
pub fn c_mem_iter(&self) -> impl Iterator<Item = &C_MEM>
Iterator for array of: 0x00..0x630 - Memory C
Sourcepub fn iv__iter(&self) -> impl Iterator<Item = &IV_>
pub fn iv__iter(&self) -> impl Iterator<Item = &IV_>
Iterator for array of: 0x630..0x640 - IV block data
Sourcepub fn x_mem_iter(&self) -> impl Iterator<Item = &X_MEM>
pub fn x_mem_iter(&self) -> impl Iterator<Item = &X_MEM>
Iterator for array of: 0x800..0xa00 - Memory X
Sourcepub fn z_mem_iter(&self) -> impl Iterator<Item = &Z_MEM>
pub fn z_mem_iter(&self) -> impl Iterator<Item = &Z_MEM>
Iterator for array of: 0xa00..0xc00 - Memory Z
Sourcepub fn set_finish(&self) -> &SET_FINISH
pub fn set_finish(&self) -> &SET_FINISH
0xe08 - Ends DS operation
Sourcepub fn query_busy(&self) -> &QUERY_BUSY
pub fn query_busy(&self) -> &QUERY_BUSY
0xe0c - Status of the DS perihperal
Sourcepub fn query_key_wrong(&self) -> &QUERY_KEY_WRONG
pub fn query_key_wrong(&self) -> &QUERY_KEY_WRONG
0xe10 - Checks the reason why DS_KEY is not ready
Sourcepub fn query_check(&self) -> &QUERY_CHECK
pub fn query_check(&self) -> &QUERY_CHECK
0xe14 - Queries DS check result