Texas Instruments CC2650DK Benutzerhandbuch

Seite von 1570
RF Core HAL
The status field may take the following values:
0: Pending: The entry is not yet in use by the radio CPU. This is the status to write by the system CPU
prior to submitting the entry.
1: Active: The entry is the entry in the queue currently open for writing (RX) or reading (TX) by the
radio CPU.
2: Busy: An ongoing radio operation is writing or reading an unfinished packet. Certain operations are
not allowed while an entry is in this state (see
Immediate Commands for Data Queue
Manipulation).
3: Finished: The radio CPU is finished writing data into this entry, and is free for the system CPU to
reuse or free memory (if dynamically allocated).
For data entries, the system CPU is responsible for setting up the required data structure, either in system
RAM or in the available part of the radio RAM. If the data structure is dynamically allocated, the system
CPU is responsible for freeing the memory after use.
In an entry that is being used for received data, the radio CPU may start the entry element with a length
indicator. If config.lenSz is 00, no such indicator will be written. This option must only be used if the length
of the received packet can be determined by other means. If config.lenSz is 01, one byte indicates the
number of bytes following the length byte. This may only be used if no element of more than 255 bytes will
be written to the entry. If config.lenSz is 10, a 16-bit word indicates the number of bytes following the
length word.
23.3.2.7.3 Pointer Entry
A pointer entry is an entry where the data is not contained in the entry itself, but the entry holds a pointer
to the buffer. Such an entry is indicated by setting config.type to 2. The pointer replaces the data field, as
shown in
Table 23-11. Pointer Field in Pointer Entry Structure
Bytes
Field Name
Bits
Bit Field Name
Type
Description
Pointer to data buffer of size length
8–11
pData
W
bytes
The data is read from or stored in the buffer given by pData. The size of this buffer is given by length, just
as for the size of the data field in a general data entry.
23.3.2.7.4 RX Multi-Element Entry
For an RX entry, a special variant of the structure in
may be used. This type lets several entry
elements be contained in the same entry. Each entry element typically corresponds to one packet
received over the air, but may contain additional fields. This type is selected by setting config.type to 1; if
config.type is 0 or 2, the radio CPU will write only one entry element into each data entry. In the multi-
element entry, the data field is composed as shown in
(the indexes are relative to the entire
entry structure).
Table 23-12. Fields in RX Multi-Element Structure
Bit Field
Byte Index
Field Name
Bit Index
Type
Description
Name
Number of entry elements
8–9
numElements
R
committed in the entry
Index to the byte after the last byte
10–11
nextIndex
R
of the last entry element committed
by the radio CPU
Data received. Exact format
depends on operation being run.
12–(7+n)
RXData
R
Each entry element may start with
a length byte or word
1467
SWCU117A – February 2015 – Revised March 2015
Radio
Copyright © 2015, Texas Instruments Incorporated