#[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

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.