![]() |
![]() |
This file contains the BCP driver's higher layer API implementations. More...
#include <bcp_types.h>
#include <bcp_osal.h>
#include <ti/drv/bcp/bcp.h>
#include <ti/drv/bcp/include/bcp_pvt.h>
#include <string.h>
Functions | |
static Bcp_TxQInfo * | Bcp_txQueueOpen (Bcp_InstanceInfo *pBcpInstInfo, Bcp_QueueId bcpTxQNum) |
static Bcp_RetVal | Bcp_txQueueClose (Bcp_TxQInfo *pBcpTxQInfo) |
static int32_t | Bcp_getNextAvailRxObjId (uint8_t instNum) |
uint32_t | Bcp_getVersionID (void) |
const char * | Bcp_getVersionStr (void) |
Bcp_RetVal | Bcp_init (uint8_t instNum, Bcp_DrvMode mode, Bcp_InitCfg *pBcpInitCfg) |
Bcp_RetVal | Bcp_deInit (uint8_t instNum) |
uint8_t | Bcp_isInitialized (uint8_t instNum) |
Bcp_DrvHandle | Bcp_open (uint8_t instNum, Bcp_DrvCfg *pBcpDrvCfg, Bcp_RetVal *pRetVal) |
Bcp_RetVal | Bcp_close (Bcp_DrvHandle hBcp) |
Bcp_LldObj * | Bcp_getLLDHandle (uint8_t instNum) |
Bcp_TxHandle | Bcp_txOpen (Bcp_DrvHandle hBcp, Bcp_TxCfg *pBcpTxCfg, void *pTxEndpointCfg) |
Bcp_RetVal | Bcp_txClose (Bcp_TxHandle hBcpTxInfo) |
Bcp_RxHandle | Bcp_rxOpen (Bcp_DrvHandle hBcp, Bcp_RxCfg *pBcpRxCfg, void *pRxEndpointCfg) |
Bcp_RetVal | Bcp_rxClose (Bcp_RxHandle hBcpRxInfo) |
Bcp_RetVal | Bcp_findFlowIdByQueueNumber (Bcp_DrvHandle hBcp, uint32_t rxQueueNumber) |
Bcp_RetVal | Bcp_rxGetRxQueueNumber (Bcp_RxHandle hBcpRxInfo) |
Bcp_RetVal | Bcp_rxGetFlowId (Bcp_RxHandle hBcpRxInfo) |
Bcp_RetVal | Bcp_send (Bcp_TxHandle hBcpTxInfo, Bcp_DrvBufferHandle hDrvBuffer, uint32_t drvBufferLen, void *pDestnAddress) |
Bcp_RetVal | Bcp_rxGetNumOutputEntries (Bcp_RxHandle hBcpRxInfo) |
Bcp_RetVal | Bcp_recv (Bcp_RxHandle hBcpRxInfo, Bcp_DrvBufferHandle *phDrvBuffer, uint8_t **ppDataBuffer, uint32_t *pDataBufferLen, uint8_t **ppPSInfo, uint32_t *pPSInfoLen, uint8_t *pFlowId, uint8_t *pSrcId, uint16_t *pDestnTagInfo) |
Bcp_RetVal | Bcp_rxProcessDesc (Bcp_RxHandle hBcpRxInfo, Cppi_Desc *pCppiDesc, Bcp_DrvBufferHandle *phDrvBuffer, uint8_t **ppDataBuffer, uint32_t *pDataBufferLen, uint8_t **ppPSInfo, uint32_t *pPSInfoLen, uint8_t *pFlowId, uint8_t *pSrcId, uint16_t *pDestnTagInfo) |
Bcp_RetVal | Bcp_rxFreeRecvBuffer (Bcp_RxHandle hBcpRxInfo, Bcp_DrvBufferHandle hDrvBuffer, uint32_t drvBufferLen) |
Variables | |
Bcp_InstanceInfo | gBcp_instanceInfo [BCP_MAX_NUM_INSTANCES] |
This file contains the BCP driver's higher layer API implementations.
The BCP Higher Layer presents a useful set of APIs to send/receive data from BCP.
============================================================================
(C) Copyright 2010, 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. ============================================================================
Global variable to hold the BCP driver' state info
Tracks info that is maintained by BCP driver for each of its peripheral instances.