O-RAN E Maintenance Release contribution for ODULOW
[o-du/phy.git] / fhi_lib / lib / src / xran_cb_proc.h
1 /******************************************************************************
2 *
3 *   Copyright (c) 2020 Intel.
4 *
5 *   Licensed under the Apache License, Version 2.0 (the "License");
6 *   you may not use this file except in compliance with the License.
7 *   You may obtain a copy of the License at
8 *
9 *       http://www.apache.org/licenses/LICENSE-2.0
10 *
11 *   Unless required by applicable law or agreed to in writing, software
12 *   distributed under the License is distributed on an "AS IS" BASIS,
13 *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 *   See the License for the specific language governing permissions and
15 *   limitations under the License.
16 *
17 *******************************************************************************/
18
19 /**
20  * @brief XRAN Callback processing module header file
21  * @file xran_cb_proc.h
22  * @ingroup group_source_xran
23  * @author Intel Corporation
24  **/
25
26 #ifndef _XRAN_CB_PROC_H_
27 #define _XRAN_CB_PROC_H_
28
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32
33 #include <stdio.h>
34 #include <unistd.h>
35
36 int32_t xran_timing_create_cbs(void *args);
37 int32_t xran_timing_destroy_cbs(void *args);
38
39 void xran_timer_arm_ex(struct rte_timer *tim, void* CbFct, void *CbArg, unsigned tim_lcore);
40 void xran_timer_arm(struct rte_timer *tim, void* arg, void* p_dev_ctx);
41 void xran_timer_arm_cp_dl(struct rte_timer *tim, void* arg, void* p_dev_ctx);
42 void xran_timer_arm_cp_ul(struct rte_timer *tim, void* arg, void* p_dev_ctx);
43 void xran_timer_arm_ex(struct rte_timer *tim, void* CbFct, void *CbArg, unsigned tim_lcore);
44
45 #ifdef __cplusplus
46 }
47 #endif
48
49 #endif /* _XRAN_CB_PROC_H_ */