Texas Instruments CC2650DK 사용자 설명서

다운로드
페이지 1570
Data Queue Usage
23.4 Data Queue Usage
This section describes how the radio CPU uses data queues.
23.4.1 Operations on Data Queues Only Available for Internal Radio CPU Operations
Immediate Commands for Data Queue Manipulation, lists commands used for data queue
manipulation. For internal radio CPU operations described, additional operations are available. These
operations are described in the following sections.
23.4.1.1 PROC_ALLOCATE_TX: Allocate TX Entry for Reading
The procedure takes the following input parameters:
Pointer to queue, pQueue
The procedure returns the following:
Pointer to allocated data entry, pEntry
The procedure returns with error if the specified queue is empty, or if the first entry of the queue is already
busy. Otherwise, the following is done:
Set pQueue->pCurrEntry->status = Busy
Set pEntry = pQueue->pCurrEntry
23.4.1.2 PROC_FREE_DATA_ENTRY: Free Allocated Data Entry
The procedure takes the following input parameters:
Pointer to queue, pQueue
The procedure returns with error if the specified queue is empty. Otherwise, the following is done:
Set pQueue->pCurrEntry->status = Active
23.4.1.3 PROC_FINISH_DATA_ENTRY: Finish Use of First Data Entry From Queue
The procedure takes the following input parameters:
Pointer to queue, pQueue
The procedure returns the following:
Pointer to new entry, pEntry
The procedure returns with error if the specified queue is empty. Otherwise, the following is done:
Set pTemp = pQueue->pCurrEntry
Set pQueue->pCurrEntry = pTemp->pNextEntry
Set pTemp->status = Finished
Set pEntry = pQueue->pCurrEntry
1491
SWCU117A – February 2015 – Revised March 2015
Radio
Copyright © 2015, Texas Instruments Incorporated