Texas Instruments CC2650DK 사용자 설명서

다운로드
페이지 1570
RF Core HAL
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 will
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
.
Table 23-51. CMD_CLEAR_RX Command Format
Bytes
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.
23.3.5.5 CMD_REMOVE_PENDING_ENTRIES: Remove Pending Entries From Queue
Command ID number: 0x0009
CMD_REMOVE_PENDING_ENTRIES is an immediate command that takes the parameters listed in
.
Table 23-52. CMD_REMOVE_PENDING_ENTRIES Command Format
Bytes
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 removes all entries that are in the Pending state from the queue indicated,
and returns a pointer to the first entry that was removed. The radio CPU performs the following operations:
If pQueue->pCurrEntry->status = Pending, then
Set pFirstEntry = pQueue->pCurrEntry
Set pQueue->pCurrEntry = NULL
1489
SWCU117A – February 2015 – Revised March 2015
Radio
Copyright © 2015, Texas Instruments Incorporated