#[repr(u8)]pub enum Tmod {
TX_AND_RX = 0,
TX_ONLY = 1,
RX_ONLY = 2,
EEPROM_READ = 3,
}
Variants§
TX_AND_RX = 0
Both transmit and receive
TX_ONLY = 1
Transmit only (not for FRF == 0, standard SPI mode)
RX_ONLY = 2
Receive only (not for FRF == 0, standard SPI mode)
EEPROM_READ = 3
EEPROM read mode (TX then RX; RX starts after control data TX’d)
Implementations§
Trait Implementations§
Source§impl Ord for Tmod
impl Ord for Tmod
Source§impl PartialOrd for Tmod
impl PartialOrd for Tmod
impl Copy for Tmod
impl Eq for Tmod
impl StructuralPartialEq for Tmod
Auto Trait Implementations§
impl Freeze for Tmod
impl RefUnwindSafe for Tmod
impl Send for Tmod
impl Sync for Tmod
impl Unpin for Tmod
impl UnwindSafe for Tmod
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