#[repr(transparent)]pub struct Uartdmacr(pub u32);
Expand description
DMA Control Register, UARTDMACR
Tuple Fields§
§0: u32
Implementations§
source§impl Uartdmacr
impl Uartdmacr
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.
sourcepub const fn dmaonerr(&self) -> bool
pub const fn dmaonerr(&self) -> bool
DMA on error. If this bit is set to 1, the DMA receive request outputs, UARTRXDMASREQ or UARTRXDMABREQ, are disabled when the UART error interrupt is asserted.
sourcepub fn set_dmaonerr(&mut self, val: bool)
pub fn set_dmaonerr(&mut self, val: bool)
DMA on error. If this bit is set to 1, the DMA receive request outputs, UARTRXDMASREQ or UARTRXDMABREQ, are disabled when the UART error interrupt is asserted.
Trait Implementations§
impl Copy for Uartdmacr
impl Eq for Uartdmacr
impl StructuralPartialEq for Uartdmacr
Auto Trait Implementations§
impl Freeze for Uartdmacr
impl RefUnwindSafe for Uartdmacr
impl Send for Uartdmacr
impl Sync for Uartdmacr
impl Unpin for Uartdmacr
impl UnwindSafe for Uartdmacr
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
)