Sub-GHz radio (SUBGHZ) RM0453
196/1454 RM0453 Rev 2
type in Set_PacketType() sent prior to this function, the parameters for LoRa packets
are interpreted as below.
Reset_Stats() command
Reset_Stats(0x00,0x00,0x00,0x00,0x00,0x00) resets the received packet
statistics as reported in Get_Stats() (NbPktReceived, NbPktCrcError, NbPktlengthError
and NbPktHeaderError).
5.8.6 IRQ interrupt commands
There are three IRQ interrupts that can be mapped to several sub-GHz radio interrupt
sources. The source of an interrupt is determined by reading the device status. Interrupts
are cleared using Clr_IrqStatus().
There are 10 possible interrupt sources used depending on the packet type and operating
mode. Each of these interrupt sources can be enabled or masked and mapped on any of the
IRQ interrupts.
A set of commands is used to configure and control the IRQ sources and interrupt
generation
01234567
Opcode Status[7:0] NbPktReceived[15:0] NbPktCrcError[15:0] NbPktHeaderError[15:0]
wrrrrrrr
byte 0 bits 7:0 Opcode: 0x10
byte 1 bits 7:0 Status[7:0]: see Get_Status() command
bytes 3:2 bits 15:0 NbPktReceived[15:0]: Number of packets received
bytes 5:4 bits 15:0 NbPktCrcError[15:0]: Number of packets received with a payload CRC error.
bytes 7:6 bits 15:0 NbPktHeaderError[15:0]: Number of packets received with a header CRC
error
0123456
Opcode 0x00 0x00 0x00 0x00 0x00 0x00
wwwwwww
byte 0 bits 7:0 Opcode: 0x0
byte 1 bits 7:0 0x0
byte 2 bits 7:0 0x0
byte 3 bits 7:0 0x0
byte 4 bits 7:0 0x0
byte 5 bits 7:0 0x0
byte 6 bits 7:0 0x0