#[repr(transparent)]pub struct Mdatactrl(pub u32);Expand description
Master Data Control Register.
Tuple Fields§
§0: u32Implementations§
Source§impl Mdatactrl
impl Mdatactrl
Sourcepub const fn set_flushtb(&mut self, val: bool)
pub const fn set_flushtb(&mut self, val: bool)
Flush to-bus buffer/FIFO.
Sourcepub const fn set_flushfb(&mut self, val: bool)
pub const fn set_flushfb(&mut self, val: bool)
Flush from-bus buffer/FIFO.
Sourcepub const fn set_unlock(&mut self, val: bool)
pub const fn set_unlock(&mut self, val: bool)
Unlock.
Sourcepub const fn set_txtrig(&mut self, val: u8)
pub const fn set_txtrig(&mut self, val: u8)
TX trigger level.
Sourcepub const fn set_rxtrig(&mut self, val: u8)
pub const fn set_rxtrig(&mut self, val: u8)
RX trigger level.
Sourcepub const fn set_txcount(&mut self, val: u8)
pub const fn set_txcount(&mut self, val: u8)
TX byte count.
Sourcepub const fn set_rxcount(&mut self, val: u8)
pub const fn set_rxcount(&mut self, val: u8)
RX byte count.
Sourcepub const fn set_txfull(&mut self, val: bool)
pub const fn set_txfull(&mut self, val: bool)
TX is full.
Sourcepub const fn set_rxempty(&mut self, val: bool)
pub const fn set_rxempty(&mut self, val: bool)
RX is empty.
Trait Implementations§
impl Copy for Mdatactrl
impl Eq for Mdatactrl
impl StructuralPartialEq for Mdatactrl
Auto Trait Implementations§
impl Freeze for Mdatactrl
impl RefUnwindSafe for Mdatactrl
impl Send for Mdatactrl
impl Sync for Mdatactrl
impl Unpin for Mdatactrl
impl UnwindSafe for Mdatactrl
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