Functions | Variables
cppi_drv.c File Reference

This is the CPPI Low Level Driver. More...

#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <ti/drv/cppi/cppi_drv.h>
#include <ti/drv/cppi/include/cppi_listlib.h>
#include <ti/drv/cppi/include/cppi_pvt.h>
#include <cppi_osal.h>
#include <ti/drv/rm/rm_services.h>

Functions

Cppi_Result Cppi_initCfg (Cppi_GlobalConfigParams *cppiGblCfgParams, Cppi_InitCfg *initCfg)
Cppi_Result Cppi_init (Cppi_GlobalConfigParams *cppiGblCfgParams)
Cppi_Result Cppi_getHeapReq (Cppi_GlobalConfigParams *cppiGblCfgParams, uint32_t *size)
void Cppi_startCfg (Cppi_StartCfg *startCfg)
Cppi_Result Cppi_exit (void)
Cppi_Handle Cppi_open (Cppi_CpDmaInitCfg *initCfg)
Cppi_Result Cppi_close (Cppi_Handle hnd)
Cppi_ChHnd Cppi_txChannelOpenWithHwCfg (Cppi_Handle hnd, Cppi_TxChInitCfg *cfg, uint8_t *isAllocated, int32_t cfgHw)
Cppi_ChHnd Cppi_txChannelOpen (Cppi_Handle hnd, Cppi_TxChInitCfg *cfg, uint8_t *isAllocated)
Cppi_ChHnd Cppi_rxChannelOpen (Cppi_Handle hnd, Cppi_RxChInitCfg *cfg, uint8_t *isAllocated)
Cppi_Result Cppi_channelEnable (Cppi_ChHnd hnd)
Cppi_Result Cppi_channelDisable (Cppi_ChHnd hnd)
Cppi_Result Cppi_channelTeardown (Cppi_ChHnd hnd, Cppi_Wait wait)
Cppi_Result Cppi_channelClose (Cppi_ChHnd hnd)
Cppi_Result Cppi_channelPause (Cppi_ChHnd hnd)
Cppi_Result Cppi_channelStatus (Cppi_ChHnd hnd)
Cppi_FlowHnd Cppi_configureRxFlow (Cppi_Handle hnd, Cppi_RxFlowCfg *cfg, uint8_t *isAllocated)
Cppi_Result Cppi_closeRxFlow (Cppi_FlowHnd hnd)
uint32_t Cppi_getChannelNumber (Cppi_ChHnd hnd)
uint32_t Cppi_getFlowId (Cppi_FlowHnd hnd)
Cppi_Result Cppi_setCpdmaLoopback (Cppi_Handle hnd, uint8_t loopback)
Cppi_Result Cppi_getCpdmaLoopback (Cppi_Handle hnd)
uint32_t Cppi_getVersion (void)
const char * Cppi_getVersionStr (void)

Variables

const char cppiLldVersionStr [] = ":" __TIME__
 Global Variable which describes the CPPI LLD Version Information.

Detailed Description

This is the CPPI Low Level Driver.

============================================================================
(C) Copyright 2009-2014, 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