Struct efm32pg1b_pac::Ldma
source · pub struct Ldma { /* private fields */ }
Expand description
Linked Direct Memory Access
Implementations§
source§impl Ldma
impl Ldma
sourcepub const PTR: *const RegisterBlock = {0x400e2000 as *const ldma::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x400e2000 as *const ldma::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 ch0_reqsel(&self) -> &Ch0Reqsel
pub fn ch0_reqsel(&self) -> &Ch0Reqsel
0x80 - Channel Peripheral Request Select Register
sourcepub fn ch1_reqsel(&self) -> &Ch1Reqsel
pub fn ch1_reqsel(&self) -> &Ch1Reqsel
0xb0 - Channel Peripheral Request Select Register
sourcepub fn ch2_reqsel(&self) -> &Ch2Reqsel
pub fn ch2_reqsel(&self) -> &Ch2Reqsel
0xe0 - Channel Peripheral Request Select Register
sourcepub fn ch3_reqsel(&self) -> &Ch3Reqsel
pub fn ch3_reqsel(&self) -> &Ch3Reqsel
0x110 - Channel Peripheral Request Select Register
sourcepub fn ch4_reqsel(&self) -> &Ch4Reqsel
pub fn ch4_reqsel(&self) -> &Ch4Reqsel
0x140 - Channel Peripheral Request Select Register
sourcepub fn ch5_reqsel(&self) -> &Ch5Reqsel
pub fn ch5_reqsel(&self) -> &Ch5Reqsel
0x170 - Channel Peripheral Request Select Register
sourcepub fn ch6_reqsel(&self) -> &Ch6Reqsel
pub fn ch6_reqsel(&self) -> &Ch6Reqsel
0x1a0 - Channel Peripheral Request Select Register
sourcepub fn ch7_reqsel(&self) -> &Ch7Reqsel
pub fn ch7_reqsel(&self) -> &Ch7Reqsel
0x1d0 - Channel Peripheral Request Select Register