SWRU368C May 2018 – January 2021 CC3100 , CC3100MOD , CC3200 , CC3200MOD
A SimpleLink proprietary radio header is attached to the packet being received. The header has some information about the packet. This is the structure of the header.
typedef struct
}
UINT8 rate; /* Received Rate Format */
UINT8 channel; /* The received channel */
INT8 rssi; /* The RSSI value in db of current frame */
UINT8 padding; /* pad to align to 32 bits */
UINT32 timestamp; /* Timestamp in microseconds, */
}TransceiverRxOverHead_t;
The rate is an index from 0 to 20 in the following order:
RATE 1M = 0
RATE 2M = 1
RATE 5.5M = 2
RATE 11M = 3
RATE 6M = 4
RATE 9M = 6
RATE 12M = 7
RATE 18M = 8
RATE 24M = 9
RATE 36M = 10
RATE 48M = 11
RATE 54M = 12
RATE MCS_0 = 13
RATE MCS_1 = 14
RATE MCS_2 = 15
RATE MCS_3 = 16
RATE MCS_4 = 17
RATE MCS_5 = 18
RATE MCS_6 = 19
RATE MCS_7 = 20
The channel is 1 to 11.
If using the sl_Recv command results in a frame in a buffer, extract the header by casting the start of the buffer to a pointer variable in type of TransceiverRxOverHead_t
frameRadioHeader = (TransceiverRxOverHead_t *)buffer;