Module status

Module status 

Source
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§

Intr
Status
Status sent at the beginning of each SPI command

Enums§

ChipModeStatus
Chip Mode
CmdStatus
Command status
ResetSrc
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_PACKET1
Host can load new frequencies table
IRQ_MASK_INTER_PACKET2
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.