SWCU194 March 2023 CC1314R10 , CC1354P10 , CC1354R10 , CC2674P10 , CC2674R10
Command ID number: 0x0008
CMD_CLEAR_RX is an immediate command that takes the parameters listed in Table 26-55.
Byte Index | Field Name | Bits | Bit Field Name | Type | Description |
---|---|---|---|---|---|
0–1 | commandNo | W | The command ID number | ||
2–:3 | Reserved | ||||
4–7 | pQueue | W | Pointer to the queue structure be cleared |
On reception, the radio CPU makes all RX entries indicate that they are empty. The radio CPU performs the following operations:
set pTemp = pQueue->pCurrEntry
do
set pTemp->status = Pending
if pTemp->type == 1 then
Set pTemp->nextIndex = 0
Set pTemp->numElements = 0
Set pTemp = pTemp->nextIndex
end if
while (pTemp != NULL and pTemp != pQueue->pCurrEntry)
If the pointer pQueue is invalid, the command fails, and the radio CPU sets the result byte of CMDSTA to ParError. If the queue specified in pQueue is empty, the command fails, and the radio CPU sets the result byte of CMDSTA to QueueError. If the first entry to be removed is in the BUSY state, the command fails, and the radio CPU sets the result byte of CMDSTA to QueueBusy.