#[repr(u8)]pub enum ReceptionThresh {
D16 = 0,
D8 = 1,
}
Expand description
FIFO reception threshold Sets SPI_CR2
register, FRXTH
field.
Variants§
D16 = 0
RXNE event is generated if the FIFO level is greater than or equal to 1/2 (16-bit)
D8 = 1
RXNE event is generated if the FIFO level is greater than or equal to 1/4 (8-bit)
Trait Implementations§
Source§impl Clone for ReceptionThresh
impl Clone for ReceptionThresh
Source§fn clone(&self) -> ReceptionThresh
fn clone(&self) -> ReceptionThresh
Returns a duplicate 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 ReceptionThresh
Auto Trait Implementations§
impl Freeze for ReceptionThresh
impl RefUnwindSafe for ReceptionThresh
impl Send for ReceptionThresh
impl Sync for ReceptionThresh
impl Unpin for ReceptionThresh
impl UnwindSafe for ReceptionThresh
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