pub enum Bank {
M0,
M1,
}Expand description
Identifies which bank of a double-buffer-mode DMA buffer is the
engine’s current target (or, conversely, which bank is inactive
and safe for CPU access via a BankGuard).
Maps to the STM32 DMA CR.CT bit (bit 19 on H7): M0 ↔ CT=0,
M1 ↔ CT=1. Per DCB-00 §6 INV-D15 the bit is the source-of-truth
for BankGuard::release live-recheck.
Variants§
M0
First bank (programmed into the DMA stream’s M0AR register).
M1
Second bank (programmed into the DMA stream’s M1AR register).
Trait Implementations§
impl Copy for Bank
impl Eq for Bank
impl StructuralPartialEq for Bank
Auto Trait Implementations§
impl Freeze for Bank
impl RefUnwindSafe for Bank
impl Send for Bank
impl Sync for Bank
impl Unpin for Bank
impl UnsafeUnpin for Bank
impl UnwindSafe for Bank
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more