Enum stm32_hal2::sai::FifoThresh
source · #[repr(u8)]pub enum FifoThresh {
Empty = 0,
T1_4 = 1,
T1_2 = 2,
T3_4 = 3,
T3_4B = 4,
Full = 5,
}
Expand description
FIFO threshold. Affects xCR2 reg, FTH field. Affects when SAI interrupts, and DMA transfers occur.
Variants§
Empty = 0
FIFO empty (transmitter and receiver modes)
T1_4 = 1
FIFO ≤ ¼ but not empty (transmitter mode), FIFO < ¼ but not empty (receiver mode)
T1_2 = 2
¼ < FIFO ≤ ½ (transmitter mode), ¼ ≤ FIFO < ½ (receiver mode)
T3_4 = 3
½ < FIFO ≤ ¾ (transmitter mode), ½ ≤ FIFO < ¾ (receiver mode)
T3_4B = 4
¾ < FIFO but not full (transmitter mode), ¾ ≤ FIFO but not full (receiver mode)
Full = 5
FIFO full (transmitter and receiver modes)
Trait Implementations§
source§impl Clone for FifoThresh
impl Clone for FifoThresh
source§fn clone(&self) -> FifoThresh
fn clone(&self) -> FifoThresh
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for FifoThresh
Auto Trait Implementations§
impl RefUnwindSafe for FifoThresh
impl Send for FifoThresh
impl Sync for FifoThresh
impl Unpin for FifoThresh
impl UnwindSafe for FifoThresh
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