#[repr(transparent)]pub struct MpCsrEight(pub u32);Expand description
Eight-channel Management Page Control. ACTIVE_ID and ACTIVE are read-only; CX and ECX are cancel commands. Change ERCA, GCLC or GMRC only when all channels are inactive (ACTIVE=0).
Tuple Fields§
§0: u32Implementations§
Source§impl MpCsrEight
impl MpCsrEight
Sourcepub const fn hae(&self) -> bool
pub const fn hae(&self) -> bool
Halt After Error. Raw bit values: false (0) = NormalOperation: Normal operation.; true (1) = Halt: Any error causes the HALT field to be set to 1.
Sourcepub const fn set_hae(&mut self, val: bool)
pub const fn set_hae(&mut self, val: bool)
Halt After Error. Raw bit values: false (0) = NormalOperation: Normal operation.; true (1) = Halt: Any error causes the HALT field to be set to 1.
Sourcepub const fn halt(&self) -> bool
pub const fn halt(&self) -> bool
Halt DMA Operations. Raw bit values: false (0) = NormalOperation: Normal operation.; true (1) = Stall: Stall the start of any new channels.
Sourcepub const fn set_halt(&mut self, val: bool)
pub const fn set_halt(&mut self, val: bool)
Halt DMA Operations. Raw bit values: false (0) = NormalOperation: Normal operation.; true (1) = Stall: Stall the start of any new channels.
Sourcepub const fn ecx(&self) -> bool
pub const fn ecx(&self) -> bool
Cancel Transfer With Error. Raw bit values: false (0) = NORMAL_OPERATION: Normal operation.; true (1) = CANCEL: Cancel the remaining data transfer.
Sourcepub const fn set_ecx(&mut self, val: bool)
pub const fn set_ecx(&mut self, val: bool)
Cancel Transfer With Error. Raw bit values: false (0) = NORMAL_OPERATION: Normal operation.; true (1) = CANCEL: Cancel the remaining data transfer.
Sourcepub const fn cx(&self) -> bool
pub const fn cx(&self) -> bool
Cancel Transfer. Raw bit values: false (0) = NormalOperation: Normal operation.; true (1) = DataTransferCancel: Cancel the remaining data transfer.
Sourcepub const fn set_cx(&mut self, val: bool)
pub const fn set_cx(&mut self, val: bool)
Cancel Transfer. Raw bit values: false (0) = NormalOperation: Normal operation.; true (1) = DataTransferCancel: Cancel the remaining data transfer.
Sourcepub const fn set_active_id(&mut self, val: u8)
pub const fn set_active_id(&mut self, val: u8)
Active Channel ID.
Sourcepub const fn active(&self) -> bool
pub const fn active(&self) -> bool
DMA Active Status. Raw bit values: false (0) = Idle: eDMA is idle.; true (1) = Execution: eDMA is executing a channel.
Sourcepub const fn set_active(&mut self, val: bool)
pub const fn set_active(&mut self, val: bool)
DMA Active Status. Raw bit values: false (0) = Idle: eDMA is idle.; true (1) = Execution: eDMA is executing a channel.
Trait Implementations§
Source§impl Clone for MpCsrEight
impl Clone for MpCsrEight
Source§fn clone(&self) -> MpCsrEight
fn clone(&self) -> MpCsrEight
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more