SWCU192 November 2021 CC1312R7 , CC1352P7 , CC2652P7 , CC2652R7
Command ID number: 0x0008
CMD_CLEAR_RX is an immediate command that takes the parameters listed in Table 26-56.
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
Loop: Set pTemp->status = Pending
If pTemp->type == 1 then:
Set pTemp->nextIndex = 0
Set pTemp->numElements = 0
Set pTemp = pTemp->nextIndex
If pTemp != NULL and pTemp != pQueue->pCurrEntry, repeat from Loop
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.