X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?p=o-du%2Fphy.git;a=blobdiff_plain;f=fhi_lib%2Flib%2Fapi%2Fxran_fh_o_ru.h;fp=fhi_lib%2Flib%2Fapi%2Fxran_fh_o_ru.h;h=781239940a2dc79978b3cbde7d452331b1b3a26f;hp=0000000000000000000000000000000000000000;hb=892daba4c616407f16506415d5a69549519ef11d;hpb=76b4495d593ccf45d712db1a3ec96fa9d2d8f5f5 diff --git a/fhi_lib/lib/api/xran_fh_o_ru.h b/fhi_lib/lib/api/xran_fh_o_ru.h new file mode 100644 index 0000000..7812399 --- /dev/null +++ b/fhi_lib/lib/api/xran_fh_o_ru.h @@ -0,0 +1,81 @@ +/****************************************************************************** +* +* Copyright (c) 2020 Intel. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +* +*******************************************************************************/ + +/** + * @brief This file provides public interface to xRAN Front Haul layer implementation as defined in the + * ORAN-WG4.CUS.0-v01.00 spec. Implementation specific to + * (O-DU): a logical node that includes the eNB/gNB functions as + * listed in section 2.1 split option 7-2x. + * + * + * @file xran_fh_o_ru.h + * @ingroup group_lte_source_xran + * @author Intel Corporation + * + **/ + +#ifdef __cplusplus +extern "C" { +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "xran_fh_o_du.h" + +/** + * @ingroup + * + * Function configures TX and RX output buffers + * + * @param pHandle + * Pointer to XRAN layer handle for given CC + * @param pSrcRxCpBuffer + * list of memory buffers to use to deliver BFWs from XRAN layer to the application for Validation + * @param pSrcTxCpBuffer + * list of memory buffers to use to deliver BFWs from XRAN layer to the application for Validation + * @param xran_transport_callback_fn pCallback + * Callback function to call with arrival of C-Plane packets for given CC + * @param pCallbackTag + * Parameters of Callback function + * + * @return + * 0 - on success + * -1 - on error + */ + +int32_t xran_5g_bfw_config(void * pHandle, struct xran_buffer_list *pSrcRxCpBuffer[XRAN_MAX_ANTENNA_NR][XRAN_N_FE_BUF_LEN], + struct xran_buffer_list *pSrcTxCpBuffer[XRAN_MAX_ANTENNA_NR][XRAN_N_FE_BUF_LEN], + xran_transport_callback_fn pCallback, + void *pCallbackTag); + + +#ifdef __cplusplus +} +#endif \ No newline at end of file