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 y_mem_iter(&self) -> impl Iterator<Item = &Y_MEM>
pub fn y_mem_iter(&self) -> impl Iterator<Item = &Y_MEM>
Iterator for array of: 0x00..0x200 - memory that stores Y
sourcepub fn m_mem_iter(&self) -> impl Iterator<Item = &M_MEM>
pub fn m_mem_iter(&self) -> impl Iterator<Item = &M_MEM>
Iterator for array of: 0x200..0x400 - memory that stores M
sourcepub fn rb_mem_iter(&self) -> impl Iterator<Item = &RB_MEM>
pub fn rb_mem_iter(&self) -> impl Iterator<Item = &RB_MEM>
Iterator for array of: 0x400..0x600 - memory that stores Rb
sourcepub fn box_mem_iter(&self) -> impl Iterator<Item = &BOX_MEM>
pub fn box_mem_iter(&self) -> impl Iterator<Item = &BOX_MEM>
Iterator for array of: 0x600..0x630 - memory that stores BOX
sourcepub fn iv_mem_iter(&self) -> impl Iterator<Item = &IV_MEM>
pub fn iv_mem_iter(&self) -> impl Iterator<Item = &IV_MEM>
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 that stores 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 that stores Z
sourcepub fn set_continue(&self) -> &SET_CONTINUE
pub fn set_continue(&self) -> &SET_CONTINUE
0xe04 - DS continue control register
sourcepub fn set_finish(&self) -> &SET_FINISH
pub fn set_finish(&self) -> &SET_FINISH
0xe08 - DS finish control register
sourcepub fn query_busy(&self) -> &QUERY_BUSY
pub fn query_busy(&self) -> &QUERY_BUSY
0xe0c - DS query busy register
sourcepub fn query_key_wrong(&self) -> &QUERY_KEY_WRONG
pub fn query_key_wrong(&self) -> &QUERY_KEY_WRONG
0xe10 - DS query key-wrong counter register
sourcepub fn query_check(&self) -> &QUERY_CHECK
pub fn query_check(&self) -> &QUERY_CHECK
0xe14 - DS query check result register