Sub-GHz radio (SUBGHZ)
byte 8
byte 9
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.
0
Opcode
w
byte 0
bytes 2:1
byte 3
byte 4
192/1461
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
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
1
2
PbLength[15:0]
w
w
bits 7:0 Opcode: 0x8C.
bits 15:0 PbLength[15:0]: Preamble length in number of symbols
0x0000: reserved
0x0001 - 0xFFFF: 1 to 65535 symbols
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
bits 7:0 PayloadLength[7:0]: Payload length in number of bytes
0x00- 0xFF: 0 to 255 bytes
RM0453 Rev 1
3
4
HeaderType
w
w
RM0453
5
6
CrcType
InvertIQ
w
w
Need help?
Do you have a question about the STM32WL5 Series and is the answer not in the manual?
Questions and answers