Enum stm32_hal2::spi::ReceptionThresh
source · [−]#[repr(u8)]
pub enum ReceptionThresh {
D16,
D8,
}
Expand description
FIFO reception threshold Sets SPI_CR2
register, FRXTH
field.
Variants
D16
RXNE event is generated if the FIFO level is greater than or equal to 1/2 (16-bit)
D8
RXNE event is generated if the FIFO level is greater than or equal to 1/4 (8-bit)
Trait Implementations
sourceimpl Clone for ReceptionThresh
impl Clone for ReceptionThresh
sourcefn clone(&self) -> ReceptionThresh
fn clone(&self) -> ReceptionThresh
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 more
impl Copy for ReceptionThresh
Auto Trait Implementations
impl RefUnwindSafe for ReceptionThresh
impl Send for ReceptionThresh
impl Sync for ReceptionThresh
impl Unpin for ReceptionThresh
impl UnwindSafe for ReceptionThresh
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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