Enum stm32wlxx_hal::subghz::Irq
source · #[repr(u16)]pub enum Irq {
TxDone = 1,
RxDone = 2,
PreambleDetected = 4,
SyncDetected = 8,
HeaderValid = 16,
HeaderErr = 32,
Err = 64,
CadDone = 128,
CadDetected = 256,
Timeout = 512,
}
Expand description
IRQ bit mapping
See table 37 “IRQ bit mapping and definition” in the reference manual for more information.
Variants§
TxDone = 1
Packet transmission finished.
- Packet type: LoRa and GFSK
- Operation: TX
RxDone = 2
Packet reception finished.
- Packet type: LoRa and GFSK
- Operation: RX
PreambleDetected = 4
Preamble detected.
- Packet type: LoRa and GFSK
- Operation: RX
SyncDetected = 8
Synchronization word valid.
- Packet type: GFSK
- Operation: RX
HeaderValid = 16
Header valid.
- Packet type: LoRa
- Operation: RX
HeaderErr = 32
Header CRC error.
- Packet type: LoRa
- Operation: RX
Err = 64
Dual meaning error.
For GFSK RX this indicates a preamble, syncword, address, CRC, or length error.
For LoRa RX this indicates a CRC error.
CadDone = 128
Channel activity detection finished.
- Packet type: LoRa
- Operation: CAD
CadDetected = 256
Channel activity detected.
- Packet type: LoRa
- Operation: CAD
Timeout = 512
RX or TX timeout.
- Packet type: LoRa and GFSK
- Operation: RX and TX
Implementations§
Trait Implementations§
impl Copy for Irq
impl Eq for Irq
impl StructuralEq for Irq
impl StructuralPartialEq for Irq
Auto Trait Implementations§
impl RefUnwindSafe for Irq
impl Send for Irq
impl Sync for Irq
impl Unpin for Irq
impl UnwindSafe for Irq
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