Download Print this page

Texas Instruments SimpleLink CC2620 Technical Reference Manual page 1519

Zigbee rf4ce wireless mcu simplelink cc13 series; simplelink cc26 series

Advertisement

www.ti.com
23.4.1.5 PROC_FINISH_RX: Commit Received Data to RX Data Entry
The procedure takes the following input parameters:
Pointer to queue, pQueue
Size of entry element that has been stored, size
The procedure returns the following:
Pointer to data entry where data is stored, pEntry
Pointer to a finished data entry, or NULL if not finished; pFinishedEntry
The procedure returns with error if the queue is empty or if there is not room for an entry element of the
specified size. Otherwise, the following is done:
If pQueue->pCurrEntry->type != 1 then
Set pTemp = pQueue->pCurrEntry
Set pQueue->pCurrEntry = pTemp->pNextEntry
Set pTemp->status = Finished
else
Increase pQueue->pCurrEntry->nextIndex by size
Increment pQueue->pCurrEntry->numElements by 1
If pQueue->pCurrEntry->nextIndex + 2 == pQueue->pCurrEntry-
>length then
else
end if
end if
This operation is to be done after doing PROC_ALLOCATE_RX and writing to the correct locations in the
buffer; the size must be the same as with PROC_ALLOCATE_RX.
SWCU117C – February 2015 – Revised September 2015
Submit Documentation Feedback
Set pTemp = pQueue->pCurrEntry
Set pQueue->pCurrEntry = pTemp->pNextEntry
Set pTemp->status = Finished
Set pFinishedEntry == pTemp
Set pQueue->pCurrEntry->status = Active
Set pFinishedEntry == NULL
Copyright © 2015, Texas Instruments Incorporated
Data Queue Usage
1519
Radio

Hide quick links:

Advertisement

loading