STMicroelectronics STM32WL5 Series Reference Manual page 191

Advanced arm-based 32-bit mcus with sub-ghz radio solution
Table of Contents

Advertisement

RM0453
Generic Set_PacketParams() command
Set_PacketParams(PbLength,PbDetLength,SynchWordLength,AddrComp,
PktType,PayloadLength,CrcType,Whitening) is used to configure the packet
handling for the sub-GHz radio. When the generic packet is selected with packet type in
Set_PacketType() sent prior to this function, the parameters are interpreted as below.
0
Opcode
w
byte 0
bytes 2:1 bits 15:0 PbLength[15:0]: Preamble length in number of symbols
byte 3
byte 4
byte 5
byte 6
byte 7
1
2
3
PbLength[15:0]
w
w
w
bits 7:0 Opcode: 0x8C.
0x0000: reserved
0x0001 - 0xFFFF: 1 to 65535 symbols
bits 7:3 Reserved, must be kept at reset value.
bits 2:0 PbDetLength[2:0]: Preamble detection length in number of bit symbols
0x0: preamble detection disabled
0x4: 8-bit preamble detection
0x5: 16-bit preamble detection
0x6: 24-bit preamble detection
0x7: 32-bit preamble detection
Others: reserved
bit 7 Reserved, must be kept at reset value.
bits: 6:0 SyncWordLength[6:0]: Synchronization word length in number of bit symbols
0x00 - 0x40: 0 to 64-bit synchronization word (synchronization word data
defined in SUBGHZ_GSYNCR[0:7])
Others: reserved
bits 7:2 Reserved, must be kept at reset value.
bits: 1:0 AddrComp[1:0]: Address comparison/filtering
0x0: address comparison/filtering disabled
0x1: address comparison/filtering on node address
0x2: address comparison/filtering on node and broadcast addresses
Others: reserved
bits 7:1 Reserved, must be kept at reset value.
bit 0 PktType: Packet type definition
0: Fixed payload length and header field not added to packet
1: Variable payload length and header field added to packet
bits 7:0 PayloadLength[7:0]: Payload length in number of bytes
0x00- 0xFF: 0 to 255 bytes
RM0453 Rev 5
4
5
6
PktType
w
w
w
Sub-GHz radio (SUBGHZ)
7
8
w
w
191/1450
9
w
227

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32WL5 Series and is the answer not in the manual?

This manual is also suitable for:

Stm32wl55 seriesStm32wl54 series

Table of Contents