SWCU194 March 2023 CC1314R10 , CC1354P10 , CC1354R10 , CC2674P10 , CC2674R10
The procedure takes the following input parameters:
The procedure returns the following:
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
set pTemp = pQueue->pCurrEntry
set pQueue->pCurrEntry = pTemp->pNextEntry
set pTemp->status = Finished
set pFinishedEntry == pTemp
else
set pQueue->pCurrEntry->status = Active
set pFinishedEntry == NULL
end if
end if
This operation is 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.