
Sub-GHz radio (SUBGHZ)
RM0453
190/1454
RM0453 Rev 2
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
1
2
3
4
5
6
7
8
9
Opcode
PbLength[15:0]
PbDe
tL
ength[2:0]
SyncW
ordLe
ngth[6:0]
AddrComp[1:0]
PktType
Pa
yload
Len
gth
[7
:0
]
CrcT
yp
e[2:0]
Wh
ite
nin
g
w
w
w
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: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
byte 4
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
byte 5
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
byte 6
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
byte 7
bits 7:0
PayloadLength[7:0]
: Payload length in number of bytes
0x00- 0xFF: 0 to 255 bytes