
RM0453 Rev 2
191/1454
RM0453
Sub-GHz radio (SUBGHZ)
217
LoRa Set_PacketParams() command
Set_PacketParams(PbLength, HeaderType, PayloadLength, CrcType,
InvertIQ)
is used to configure the packet handling for the sub-GHz radio. Depending on
the selected packet type in
Set_PacketType()
sent prior to this function, the parameters
are interpreted as below.
byte 8
bits 7:3 Reserved, must be kept at reset value.
bits 2:0
CrcType[2:0]
: CRC type definition
The CRC initialization value is provided in SUBGHZ_GCRCINIRL and
SUBGHZ_GCRCINIRH. The polynomial is defined in
SUBGHZ_GCRCPOLRL and SUBGHZ_GCRCPOLRH.
0x0: 1-byte CRC
0x1: no CRC
0x2: 2-byte CRC
0x4: 1-byte inverted CRC
0x6: 2-byte inverted CRC
Others: reserved
byte 9
bits 7:1 Reserved, must be kept at reset value.
bit 0
Whitening
: Whitening enable
The whitening initial value is provided in WHITEINI[8:0].
0: Whitening disabled
1: Whitening enabled
0
1
2
3
4
5
6
Opcode
PbLength[15:0]
HeaderType
Pa
yl
oad
Leng
th
[7
:0]
CrcType
InvertIQ
w
w
w
w
w
w
w
byte 0
bits 7:0
Opcode
: 0x8C.
bytes 2:1
bits 15:0
PbLength[15:0]
: Preamble length in number of symbols
0x0000: reserved
0x0001 - 0xFFFF: 1 to 65535 symbols
byte 3
bits 7:1 Reserved, must be kept at reset value.
bit 0
HeaderType
: Header type definition
0: explicit header for variable length payload
1: implicit header for fixed length payload
byte 4
bits 7:0
PayloadLength[7:0]
: Payload length in number of bytes
0x00- 0xFF: 0 to 255 bytes