pub enum Mode {
Sleep,
Standby,
FsTx,
Tx,
FsRx,
RxContinuous,
RxSingle,
Cad,
}Expand description
An operating mode, the Mode bits 2 to 0 of RegOpMode.
Variants§
Sleep
000: only the SPI interface and the registers are powered, and the data buffer is lost. The only mode in which the chip may switch between LoRa and FSK.
Standby
001: the crystal oscillator and the LoRa baseband are on.
FsTx
010: the PLL is locked on the transmit frequency.
Tx
011: one packet goes out, then the chip returns to standby.
FsRx
100: the PLL is locked on the receive frequency.
RxContinuous
101: the receiver takes packet after packet until told otherwise.
RxSingle
110: the receiver waits for one packet or the symbol timeout, then returns to standby.
Cad
111: channel activity detection looks for a LoRa preamble.
Implementations§
Trait Implementations§
impl Copy for Mode
impl Eq for Mode
impl StructuralPartialEq for Mode
Auto Trait Implementations§
impl Freeze for Mode
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin for Mode
impl UnsafeUnpin for Mode
impl UnwindSafe for Mode
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