Download Print this page

Texas Instruments SimpleLink CC2620 Technical Reference Manual page 1515

Zigbee rf4ce wireless mcu simplelink cc13 series; simplelink cc26 series

Advertisement

www.ti.com
23.3.5.3 CMD_FLUSH_QUEUE: Flush Queue
Command ID number: 0x0007
CMD_FLUSH_QUEUE is an immediate command that takes the parameters listed in
Byte Index
Field Name
0–1
commandNo
2–3
4–7
pQueue
8–11
pFirstEntry
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.
23.3.5.4 CMD_CLEAR_RX: Clear All RX Queue Entries
Command ID number: 0x0008
CMD_CLEAR_RX is an immediate command that takes the parameters listed in
Byte Index
Field Name
0–1
commandNo
2–:3
4–7
pQueue
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.
SWCU117C – February 2015 – Revised September 2015
Submit Documentation Feedback
Table 23-52. CMD_FLUSH_QUEUE Command Format
Bits
Bit Field Name
Table 23-53. CMD_CLEAR_RX Command Format
Bits
Bit Field Name
Copyright © 2015, Texas Instruments Incorporated
Type
Description
W
The command ID number
Reserved
W
Pointer to the queue structure to be flushed
R
Pointer to the first entry that was removed
Type
Description
W
The command ID number
Reserved
W
Pointer to the queue structure be cleared
RF Core HAL
Table
23-52.
Table
23-53.
1515
Radio

Hide quick links:

Advertisement

loading