#[repr(transparent)]pub struct Dmacr(pub u32);
Expand description
DMA control register, SSPDMACR on page 3-12
Tuple Fields§
§0: u32
Implementations§
source§impl Dmacr
impl Dmacr
sourcepub const fn rxdmae(&self) -> bool
pub const fn rxdmae(&self) -> bool
Receive DMA Enable. If this bit is set to 1, DMA for the receive FIFO is enabled.
sourcepub fn set_rxdmae(&mut self, val: bool)
pub fn set_rxdmae(&mut self, val: bool)
Receive DMA Enable. If this bit is set to 1, DMA for the receive FIFO is enabled.
sourcepub const fn txdmae(&self) -> bool
pub const fn txdmae(&self) -> bool
Transmit DMA Enable. If this bit is set to 1, DMA for the transmit FIFO is enabled.
sourcepub fn set_txdmae(&mut self, val: bool)
pub fn set_txdmae(&mut self, val: bool)
Transmit DMA Enable. If this bit is set to 1, DMA for the transmit FIFO is enabled.
Trait Implementations§
impl Copy for Dmacr
impl Eq for Dmacr
impl StructuralPartialEq for Dmacr
Auto Trait Implementations§
impl Freeze for Dmacr
impl RefUnwindSafe for Dmacr
impl Send for Dmacr
impl Sync for Dmacr
impl Unpin for Dmacr
impl UnwindSafe for Dmacr
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)