SWCU192 November 2021 CC1312R7 , CC1352P7 , CC2652P7 , CC2652R7
Command ID number: 0x0007
CMD_FLUSH_QUEUE 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 to be flushed | ||
8–11 | pFirstEntry | R | Pointer to the first entry that was removed |
On reception, the radio CPU flushes the queue indicated, and returns a pointer to the first entry that was removed. The radio CPU performs the following operations:
Set pFirstEntry = pQueue->pCurrEntry
Set pQueue->pCurrEntry = NULL
Set pQueue->pLastEntry = NULL
If the pointer pQueue is invalid, the command fails, and the radio CPU sets the result byte of CMDSTA to ParError. 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. If the queue specified in pQueue is empty, the radio CPU does not need to do any operation, but this is still viewed as a success. The returned pFirstEntry is NULL in this case.