Functions | Variables
fftc_lld.c File Reference

This file contains the FFTC Configuration and Helper APIs useful in setting up the FFTC engine for DFT/IDFT calculations. It also contains various APIs required to retrieve and setup the FFTC error keeping related registers. More...

#include <fftc_types.h>
#include <ti/drv/fftc/fftc_lld.h>

Functions

int32_t Fftc_mapDFTSizeToIndex (uint32_t dftBlockSize)
int32_t Fftc_compileQueueLocalConfigParams (Fftc_QLocalCfg *pFFTLocalCfg, uint8_t *pData, uint32_t *pLen)
int32_t Fftc_recompileQueueLocalDFTParams (int32_t dftSize, Fftc_DFTMode dftMode, uint8_t *pData)
int32_t Fftc_recompileQueueLocalCyclicPrefixParams (int32_t cyclicPrefixLen, uint8_t *pData)
int32_t Fftc_createControlHeader (Fftc_ControlHdr *pFFTCfgCtrlHdr, uint8_t *pData, uint32_t *pLen)
int32_t Fftc_createDftSizeList (uint16_t *pDftSizeList, uint32_t dftSizeListLen, uint8_t *pData, uint32_t *pLen)
int32_t Fftc_modifyLocalCfgPresentControlHeader (int32_t bLocalConfigPresent, uint8_t *pData)
int32_t Fftc_lldOpen (uint8_t instNum, void *cfgRegs, Fftc_LldObj *pFFTCLldObj)
int32_t Fftc_lldClose (Fftc_LldObj *pFFTCLldObj)
int32_t Fftc_readPidReg (Fftc_LldObj *pFFTCLldObj, Fftc_PeripheralIdParams *pPIDCfg)
int32_t Fftc_readGlobalConfigReg (Fftc_LldObj *pFFTCLldObj, Fftc_GlobalCfg *pFFTGlobalCfg)
int32_t Fftc_writeGlobalConfigReg (Fftc_LldObj *pFFTCLldObj, Fftc_GlobalCfg *pFFTGlobalCfg)
void Fftc_doSoftwareReset (Fftc_LldObj *pFFTCLldObj)
void Fftc_doSoftwareContinue (Fftc_LldObj *pFFTCLldObj)
int32_t Fftc_isHalted (Fftc_LldObj *pFFTCLldObj)
int32_t Fftc_writeEmulationControlReg (Fftc_LldObj *pFFTCLldObj, Fftc_EmulationControlParams *pEmulationCfg)
int32_t Fftc_readEmulationControlReg (Fftc_LldObj *pFFTCLldObj, Fftc_EmulationControlParams *pEmulationCfg)
int32_t Fftc_writeEoiReg (Fftc_LldObj *pFFTCLldObj, int32_t eoiVal)
int32_t Fftc_readEoiReg (Fftc_LldObj *pFFTCLldObj)
void Fftc_clearQueueClippingDetectReg (Fftc_LldObj *pFFTCLldObj, Fftc_QueueId qNum)
int32_t Fftc_readQueueClippingDetectReg (Fftc_LldObj *pFFTCLldObj, Fftc_QueueId qNum)
int32_t Fftc_readBlockDestQStatusReg (Fftc_LldObj *pFFTCLldObj, Fftc_DestQStatusReg *pFFTDestQStatus)
int32_t Fftc_readBlockShiftStatusReg (Fftc_LldObj *pFFTCLldObj, Fftc_ScalingShiftingStatusReg *pFFTShiftStatus)
int32_t Fftc_readBlockCyclicPrefixStatusReg (Fftc_LldObj *pFFTCLldObj, Fftc_CyclicPrefixStatusReg *pFFTCyclicStatus)
int32_t Fftc_readBlockControlStatusReg (Fftc_LldObj *pFFTCLldObj, Fftc_ControlStatusReg *pFFTControlStatus)
int32_t Fftc_readBlockFreqShiftStatusReg (Fftc_LldObj *pFFTCLldObj, Fftc_FreqShiftStatusReg *pFFTFreqShiftStatus)
int32_t Fftc_readBlockPktSizeStatusReg (Fftc_LldObj *pFFTCLldObj, Fftc_PktSizeStatusReg *pFFTPktSizeStatus)
int32_t Fftc_readBlockTagStatusReg (Fftc_LldObj *pFFTCLldObj, Fftc_TagStatusReg *pFFTTagStatus)
int32_t Fftc_readErrorIntRawStatusReg (Fftc_LldObj *pFFTCLldObj, Fftc_QueueId qNum, Fftc_ErrorParams *pErrorCfg)
int32_t Fftc_clearErrorIntRawStatusReg (Fftc_LldObj *pFFTCLldObj, Fftc_QueueId qNum, Fftc_ErrorParams *pErrorCfg)
int32_t Fftc_writeErrorIntEnableSetReg (Fftc_LldObj *pFFTCLldObj, Fftc_QueueId qNum, Fftc_ErrorParams *pErrorCfg)
int32_t Fftc_readErrorIntEnableSetReg (Fftc_LldObj *pFFTCLldObj, Fftc_QueueId qNum, Fftc_ErrorParams *pErrorCfg)
int32_t Fftc_clearErrorIntEnableReg (Fftc_LldObj *pFFTCLldObj, Fftc_QueueId qNum, Fftc_ErrorParams *pErrorCfg)
int32_t Fftc_writeHaltOnErrorReg (Fftc_LldObj *pFFTCLldObj, Fftc_QueueId qNum, Fftc_ErrorParams *pErrorCfg)
int32_t Fftc_readHaltOnErrorReg (Fftc_LldObj *pFFTCLldObj, Fftc_QueueId qNum, Fftc_ErrorParams *pErrorCfg)
int32_t Fftc_writeQueueConfigRegs (Fftc_LldObj *pFFTCLldObj, Fftc_QueueId qNum, Fftc_QLocalCfg *pFFTLocalCfg)
int32_t Fftc_readQueueConfigRegs (Fftc_LldObj *pFFTCLldObj, Fftc_QueueId qNum, Fftc_QLocalCfg *pFFTLocalCfg)
int32_t Fftc_writeDftSizeListGroupReg (Fftc_LldObj *pFFTCLldObj, uint16_t *pDftSizeList, uint32_t dftSizeListLen)
int32_t Fftc_readDftSizeListGroupReg (Fftc_LldObj *pFFTCLldObj, uint16_t *pDftSizeList)

Variables

uint32_t Fftc_DftBlockSizeTable [50]
 Fftc_DftBlockSizeTable.

Detailed Description

This file contains the FFTC Configuration and Helper APIs useful in setting up the FFTC engine for DFT/IDFT calculations. It also contains various APIs required to retrieve and setup the FFTC error keeping related registers.

============================================================================
(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.


Copyright 2014, Texas Instruments Incorporated