Texas Instruments CC2650DK 사용자 설명서

다운로드
페이지 1570
RF Core HAL
Table 23-48. CMD_ADD_DATA_ENTRY Command Format
Bytes
Field Name
Bits
Bit Field Name
Type
Description
0–1
commandNo
W
The command ID number
2–3
Reserved
Pointer to the queue structure to which the
4–7
pQueue
W
entry will be added
8–11
pEntry
W
Pointer to the entry
On reception, the radio CPU appends the provided data entry to the queue indicated. The radio CPU
performs the following operations:
Set pQueue-> pLastEntry-> pNextEntry = pEntry
Set pQueue-> pLastEntry = pEntry
If either of the pointers pQueue or pEntry are invalid (that is, in an address range that is not memory or
without 32-bit word alignment), the command fails, and the radio CPU sets the result byte of CMDSTA to
ParError. If the queue specified in pQueue is set up not to allow entries to be appended (see
), the command fails, and the radio CPU sets the result byte of CMDSTA to QueueError.
23.3.5.2 CMD_REMOVE_DATA_ENTRY: Remove First Data Entry From Queue
Command ID number: 0x0006
CMD_REMOVE_DATA_ENTRY is an immediate command that takes the parameters listed in
.
Table 23-49. CMD_REMOVE_DATA_ENTRY Command Format
Bytes
Field Name
Bits
Bit Field Name
Type
Description
0–1
commandNo
W
The command ID number
2–3
Reserved
Pointer to the queue structure from which the
4–7
pQueue
W
entry will be removed
8–11
pEntry
R
Pointer to the entry that was removed
On reception, the radio CPU removes the first data entry from the queue indicated. The command returns
a pointer to the entry that was removed. The radio CPU performs the following operations:
Set pEntry = pQueue->pCurrEntry
Set pQueue->pCurrEntry = pEntry->pNextEntry
Set pEntry->status = Finished
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 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.3 CMD_FLUSH_QUEUE: Flush Queue
Command ID number: 0x0007
CMD_FLUSH_QUEUE is an immediate command that takes the parameters listed in
.
Table 23-50. CMD_FLUSH_QUEUE 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
1488
Radio
SWCU117A – February 2015 – Revised March 2015
Copyright © 2015, Texas Instruments Incorporated