Functions | Variables
fftc.c File Reference

This file contains the FFTC driver's higher layer API implementations. More...

#include <fftc_types.h>
#include <fftc_osal.h>
#include <ti/drv/fftc/fftc.h>
#include <ti/drv/fftc/include/fftc_pvt.h>
#include <string.h>

Functions

static Qmss_QueueHnd Fftc_setupCppiDesc (Fftc_CppiDescCfg *pCppiDescCfg)
static Qmss_QueueHnd Fftc_getFreeQ (Fftc_UserInfo *pFFTCUserInfo, uint32_t descSize, Cppi_DescType descType)
static void Fftc_cleanFreeQBuffers (Qmss_QueueHnd hQmssFreeQ, Qmss_QueueHnd hQmssGblFreeQ, uint32_t numBuffers, uint32_t bufferSize, uint32_t descSize)
static Qmss_QueueHnd Fftc_allocFreeQBuffers (Fftc_UserInfo *pFFTCUserInfo, uint32_t numBuffers, uint32_t bufferSize, Cppi_DescType descType, uint32_t descSize, int32_t *pNumAllocated, Qmss_QueueHnd *phGlblFreeQ)
static Fftc_TxQInfoFftc_txQueueOpen (Fftc_InstanceInfo *pFFTCInstInfo, Fftc_QueueId fftcTxQNum, Fftc_QLocalCfg *pFFTQCfg, uint8_t bSharedMode)
static Fftc_RetVal Fftc_txQueueClose (Fftc_TxQInfo *pFFTCTxQInfo)
static uint8_t Fftc_isValidFlow (Fftc_DrvHandle hFFTC, int8_t flowId)
static int32_t Fftc_getNextAvailRxObjId (uint8_t instNum)
uint32_t Fftc_getVersionID (void)
const char * Fftc_getVersionStr (void)
Fftc_RetVal Fftc_init (uint8_t instNum, Fftc_GlobalCfg *pFFTCGlobalCfg, Fftc_DeviceCfg *pFFTCDevCfg)
Fftc_RetVal Fftc_deInit (uint8_t instNum)
uint8_t Fftc_isInitialized (uint8_t instNum)
Fftc_DrvHandle Fftc_open (uint8_t instNum, Fftc_DrvCfg *pFFTCDrvCfg, Fftc_RetVal *pRetVal)
Fftc_RetVal Fftc_close (Fftc_DrvHandle hFFTC)
Fftc_LldObj * Fftc_getLLDObject (Fftc_DrvHandle hFFTC)
Fftc_TxHandle Fftc_txOpen (Fftc_DrvHandle hFFTC, Fftc_TxCfg *pFFTCTxCfg)
Fftc_RetVal Fftc_txClose (Fftc_TxHandle hFFTCTxInfo)
Fftc_RxHandle Fftc_rxOpen (Fftc_DrvHandle hFFTC, Fftc_RxCfg *pFFTCRxCfg)
Fftc_RetVal Fftc_rxClose (Fftc_RxHandle hFFTCRxInfo)
Fftc_RetVal Fftc_findFlowIdByQueueNumber (Fftc_DrvHandle hFFTC, uint32_t rxQueueNumber)
Fftc_RetVal Fftc_rxGetRxQueueNumber (Fftc_RxHandle hFFTCRxInfo)
Fftc_RetVal Fftc_rxGetFlowId (Fftc_RxHandle hFFTCRxInfo)
Fftc_RetVal Fftc_txGetRequestBuffer (Fftc_TxHandle hFFTCTxInfo, Fftc_BlockInfo *pDFTBlockSizeInfo, Fftc_QLocalCfg *pFFTCQConfig, uint32_t psInfoLen, uint8_t destnFlowId, uint16_t destnTagInfo, Fftc_RequestHandle *phFFTCRequest, uint8_t **ppReqDataBuffer, uint32_t *pMaxDataBufferLen)
Fftc_RetVal Fftc_txSubmitRequest (Fftc_TxHandle hFFTCTxInfo, Fftc_RequestHandle hRequestInfo, uint32_t reqBufferLen)
Fftc_RetVal Fftc_txFreeRequestBuffer (Fftc_TxHandle hFFTCTxInfo, Fftc_RequestHandle hRequestInfo)
Fftc_RetVal Fftc_rxProcessDesc (Fftc_RxHandle hFFTCRxInfo, Cppi_Desc *pCppiDesc, Fftc_ResultHandle *phResultInfo, uint8_t **ppResultBuffer, uint32_t *pResultBufferLen, uint8_t **ppPSInfo, uint32_t *pPSInfoLen, uint8_t *pFlowId, uint8_t *pSrcId, uint16_t *pDestnTagInfo)
Fftc_RetVal Fftc_rxGetResult (Fftc_RxHandle hFFTCRxInfo, Fftc_ResultHandle *phResultInfo, uint8_t **ppResultBuffer, uint32_t *pResultBufferLen, uint8_t **ppPSInfo, uint32_t *pPSInfoLen, uint8_t *pFlowId, uint8_t *pSrcId, uint16_t *pDestnTagInfo)
Fftc_RetVal Fftc_rxGetNumPendingResults (Fftc_RxHandle hFFTCRxInfo)
Fftc_RetVal Fftc_rxFreeResult (Fftc_RxHandle hFFTCRxInfo, Fftc_ResultHandle hResultInfo)
Fftc_RetVal Fftc_rxParseResult (Fftc_RxHandle hFFTCRxInfo, Fftc_ResultHandle hResultInfo, uint8_t *pResultBuffer, uint32_t resultBufferLen, Fftc_BlockInfo *pDFTBlockSizeInfo, uint8_t bSupressSideInfo, uint16_t cyclicPrefixAddNum, Fftc_Result *pFFTResult)
void Fftc_rxHiPriorityRxISR (Fftc_RxHandle hFFTCRxInfo)

Variables

Fftc_InstanceInfo Fftc_instanceInfo [FFTC_MAX_NUM_INSTANCES]

Detailed Description

This file contains the FFTC driver's higher layer API implementations.

The FFTC Higher Layer presents a useful set of APIs to submit FFT requests and retrieve its results from the engine using the CPPI, QMSS library APIs and the FFTC LLD APIs.

============================================================================
(C) Copyright 2009, Texas Instruments, Inc.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

Neither the name of Texas Instruments Incorporated nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


Variable Documentation

Global variable to hold the FFTC driver' state info

Tracks info that is maintained by FFTC driver for each of the FFTC peripheral instances.


Copyright 2014, Texas Instruments Incorporated