1f1cc7bc6c73a9a682db8fb5a84b09cf7feb08d6
[o-du/phy.git] / fapi_5g / source / api / fapi2mac / p5 / nr5g_fapi_fapi2mac_p5_proc.h
1 /******************************************************************************
2 *
3 *   Copyright (c) 2019 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  * @file
21  * This file consist of macros, structures and prototypes of all FAPI
22  * to MAC P5 messages
23  *
24  **/
25
26 #ifndef _NR5G_FAPI_FAP2MAC_P5_PROC_H_
27 #define _NR5G_FAPI_FAP2MAC_P5_PROC_H_
28
29 #include "gnb_l1_l2_api.h"
30
31 uint8_t nr5g_fapi_message_header(
32     p_nr5g_fapi_phy_ctx_t p_phy_ctx);
33
34 uint8_t nr5g_fapi_message_header_per_phy(
35     uint8_t phy_id);
36
37 uint8_t nr5g_fapi_config_response(
38     p_nr5g_fapi_phy_ctx_t p_phy_ctx,
39     PCONFIGRESPONSEStruct p_iapi_resp);
40
41 uint8_t nr5g_fapi_stop_indication(
42     p_nr5g_fapi_phy_ctx_t p_phy_ctx,
43     PSTOPRESPONSEStruct p_iapi_resp);
44
45 uint8_t nr5g_fapi_shutdown_response(
46     p_nr5g_fapi_phy_ctx_t p_phy_ctx,
47     PSHUTDOWNRESPONSEStruct p_iapi_resp);
48
49 #ifdef DEBUG_MODE
50 uint8_t nr5g_fapi_start_resp(
51     p_nr5g_fapi_phy_ctx_t p_phy_ctx,
52     PSTARTRESPONSEStruct p_iapi_resp);
53
54 uint8_t nr5g_fapi_dl_iq_samples_response(
55     p_nr5g_fapi_phy_ctx_t p_phy_ctx,
56     PADD_REMOVE_BBU_CORES p_iapi_resp);
57
58 uint8_t nr5g_fapi_ul_iq_samples_response(
59     p_nr5g_fapi_phy_ctx_t p_phy_ctx,
60     PADD_REMOVE_BBU_CORES p_iapi_resp);
61
62 uint8_t nr5g_fapi_message_header_for_ul_iq_samples(
63     uint8_t phy_id);
64
65 #endif
66 #endif                          //_NR5G_FAPI_FAP2MAC_P5_PROC_H_