Enum stm32_hal2::sai::FifoThresh
source · [−]#[repr(u8)]
pub enum FifoThresh {
Empty,
T1_4,
T1_2,
T3_4,
T3_4B,
Full,
}
Expand description
FIFO threshold. Affects xCR2 reg, FTH field. Affects when SAI interrupts, and DMA transfers occur.
Variants
Empty
FIFO empty (transmitter and receiver modes)
T1_4
FIFO ≤ ¼ but not empty (transmitter mode), FIFO < ¼ but not empty (receiver mode)
T1_2
¼ < FIFO ≤ ½ (transmitter mode), ¼ ≤ FIFO < ½ (receiver mode)
T3_4
½ < FIFO ≤ ¾ (transmitter mode), ½ ≤ FIFO < ¾ (receiver mode)
T3_4B
¾ < FIFO but not full (transmitter mode), ¾ ≤ FIFO but not full (receiver mode)
Full
FIFO full (transmitter and receiver modes)
Trait Implementations
sourceimpl Clone for FifoThresh
impl Clone for FifoThresh
sourcefn clone(&self) -> FifoThresh
fn clone(&self) -> FifoThresh
Returns a copy of the value. Read more
1.0.0 · sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more