pub struct DMA { /* private fields */ }
Expand description
Direct Memory Access module
Implementations§
Source§impl DMA
impl DMA
Sourcepub const PTR: *const RegisterBlock = {0x2000c000 as *const dma::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x2000c000 as *const dma::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 interrupt_state(&self) -> &INTERRUPT_STATE
pub fn interrupt_state(&self) -> &INTERRUPT_STATE
0x00 - ??
Sourcepub fn terminate_state(&self) -> &TERMINATE_STATE
pub fn terminate_state(&self) -> &TERMINATE_STATE
0x04 - ??
Sourcepub fn terminate_clear(&self) -> &TERMINATE_CLEAR
pub fn terminate_clear(&self) -> &TERMINATE_CLEAR
0x08 - ??
Sourcepub fn error_state(&self) -> &ERROR_STATE
pub fn error_state(&self) -> &ERROR_STATE
0x0c - ??
Sourcepub fn error_clear(&self) -> &ERROR_CLEAR
pub fn error_clear(&self) -> &ERROR_CLEAR
0x10 - ??
Sourcepub fn terminate_state_raw(&self) -> &TERMINATE_STATE_RAW
pub fn terminate_state_raw(&self) -> &TERMINATE_STATE_RAW
0x14 - ??
Sourcepub fn error_state_raw(&self) -> &ERROR_STATE_RAW
pub fn error_state_raw(&self) -> &ERROR_STATE_RAW
0x18 - ??
Sourcepub fn channel_state(&self) -> &CHANNEL_STATE
pub fn channel_state(&self) -> &CHANNEL_STATE
0x1c - ??
Sourcepub fn burst_request(&self) -> &BURST_REQUEST
pub fn burst_request(&self) -> &BURST_REQUEST
0x20 - ??
Sourcepub fn single_request(&self) -> &SINGLE_REQUEST
pub fn single_request(&self) -> &SINGLE_REQUEST
0x24 - ??
Sourcepub fn last_burst_request(&self) -> &LAST_BURST_REQUEST
pub fn last_burst_request(&self) -> &LAST_BURST_REQUEST
0x28 - ??
Sourcepub fn last_single_request(&self) -> &LAST_SINGLE_REQUEST
pub fn last_single_request(&self) -> &LAST_SINGLE_REQUEST
0x2c - ??
Sourcepub fn synchronize(&self) -> &SYNCHRONIZE
pub fn synchronize(&self) -> &SYNCHRONIZE
0x34 - ??
Sourcepub fn channel_iter(&self) -> impl Iterator<Item = &CHANNEL>
pub fn channel_iter(&self) -> impl Iterator<Item = &CHANNEL>
Iterator for array of: 0x100..0x150 - Direct Memory Access channel