Expand description
§Device status and interrupts
The device status is represented by two bytes provided on each command. It contains:
- Information about previous command (Ok, fail, error, …)
- A flag for interrupt pending
- The source of the last reset (manual, analog, watchdog, …)
- Current chip Mode (Sleep, Standby, Tx, RX, …)
The interrupt structure Intr allows to both configrue which interrupt should be assigned to a pin
with the command set_dio_irq and easily get which interrupt is currently raised
after a get_status or get_and_clear_irq.
Structs§
Enums§
- Chip
Mode Status - Chip Mode
- CmdStatus
- Command status
- Reset
Src - Reset Source
Constants§
- IRQ_
MASK_ ADDR_ ERROR - IRq raised if the packet was received with a wrong address match
- IRQ_
MASK_ CAD_ DETECTED - Channel activity detected
- IRQ_
MASK_ CAD_ DONE - Channel activity detection finished
- IRQ_
MASK_ CMD - There was a host command fail/error
- IRQ_
MASK_ CRC_ ERROR - IRq raised if the packet was received with a wrong CRC
- IRQ_
MASK_ EOL - End of life
- IRQ_
MASK_ ERROR - An error other than a command error occurred (See GetErrors)
- IRQ_
MASK_ FHSS - IRQ after each ramp-up for intra-packet hopping
- IRQ_
MASK_ FSK_ TXRX - Mask to enable all interrupt usefull for FSK TX/RX (preamble detected, tx/rx done, timeout, CRC/Length error)
- IRQ_
MASK_ HEADER_ ERR - LoRa header CRC error
- IRQ_
MASK_ HEADER_ VALID - LoRa header detected / Valid sync word
- IRQ_
MASK_ INTER_ PACKE T1 - Host can load new frequencies table
- IRQ_
MASK_ INTER_ PACKE T2 - Host can load new payload
- IRQ_
MASK_ LEN_ ERROR - IRq raised if the packet was received with a length error
- IRQ_
MASK_ LORA_ HDR_ TIMESTAMP - LoRa header precise timestamp (explicit mode). In implicit mode will assert after 8 symbols of the payload.
- IRQ_
MASK_ LORA_ SYMBOL_ END - End of LoRa symbol (for debug)
- IRQ_
MASK_ LORA_ TIMESTAMP_ STAT - New statistics available in timestamp register (debug)
- IRQ_
MASK_ LORA_ TXRX - Mask to enable all interrupt usefull for LoRa TX/RX (preamble detected, header ok/err, tx/rx done, timeout, CRC error)
- IRQ_
MASK_ LORA_ TX_ RX_ HOP - IRq for LoRa intra-packet hopping
- IRQ_
MASK_ PA - PA OCP/OVP was triggered
- IRQ_
MASK_ PREAMBLE_ DETECTED - Preamble detected
- IRQ_
MASK_ RNG_ EXCH_ VLD - Master received a valid ranging response from the slave
- IRQ_
MASK_ RNG_ REQ_ DIS - Ranging request discarded (no address match)
- IRQ_
MASK_ RNG_ REQ_ VLD - Valid ranging request received (slave)
- IRQ_
MASK_ RNG_ RESP_ DONE - Slave sent its ranging response
- IRQ_
MASK_ RNG_ TIMEOUT - Master did not receive a response from the slave
- IRQ_
MASK_ RX_ DONE - Packet received
- IRQ_
MASK_ RX_ FIFO - RX FIFO threshold reached
- IRQ_
MASK_ RX_ TIMESTAMP - IRq for time-stamping end of packet Rx, without dependent delay of demodulation or mode switching. Only to be used for timestamping, not for changing mode or re-configuring the device.
- IRQ_
MASK_ SYNC_ FAIL - Syncword match failed after detection (for debug)
- IRQ_
MASK_ TIMEOUT - Rx or Tx timeout
- IRQ_
MASK_ TX_ DONE - Packet transmission completed
- IRQ_
MASK_ TX_ FIFO - TX FIFO threshold reached
- IRQ_
MASK_ TX_ TIMESTAMP - IRq for time-stamping end of packet Tx, without dependent delay of mode switching. Only to be used for timestamping, not for changing mode or re-configuring the device.