#[repr(transparent)]pub struct Sdatactrl(pub u32);Expand description
Slave Data Control Register.
Tuple Fields§
§0: u32Implementations§
Source§impl Sdatactrl
impl Sdatactrl
Sourcepub const fn set_flushtb(&mut self, val: bool)
pub const fn set_flushtb(&mut self, val: bool)
Flush the to-bus buffer/FIFO.
Sourcepub const fn set_flushfb(&mut self, val: bool)
pub const fn set_flushfb(&mut self, val: bool)
Flushes the 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: Txtrig)
pub const fn set_txtrig(&mut self, val: Txtrig)
Trigger level for TX FIFO emptiness.
Sourcepub const fn set_rxtrig(&mut self, val: Rxtrig)
pub const fn set_rxtrig(&mut self, val: Rxtrig)
Trigger level for RX FIFO fullness.
Sourcepub const fn set_txcount(&mut self, val: u8)
pub const fn set_txcount(&mut self, val: u8)
Count of bytes in TX.
Sourcepub const fn set_rxcount(&mut self, val: u8)
pub const fn set_rxcount(&mut self, val: u8)
Count of bytes in RX.
Sourcepub const fn set_txfull(&mut self, val: Txfull)
pub const fn set_txfull(&mut self, val: Txfull)
TX is full.
Sourcepub const fn set_rxempty(&mut self, val: Rxempty)
pub const fn set_rxempty(&mut self, val: Rxempty)
RX is empty.
Trait Implementations§
impl Copy for Sdatactrl
impl Eq for Sdatactrl
impl StructuralPartialEq for Sdatactrl
Auto Trait Implementations§
impl Freeze for Sdatactrl
impl RefUnwindSafe for Sdatactrl
impl Send for Sdatactrl
impl Sync for Sdatactrl
impl Unpin for Sdatactrl
impl UnwindSafe for Sdatactrl
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