* INTC Contribution to the O-RAN F Release for O-DU Low
[o-du/phy.git] / fapi_5g / source / api / fapi2mac / p5 / nr5g_fapi_fapi2mac_p5_proc.h
1 /******************************************************************************
2 *
3 *   Copyright (c) 2021 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 "common_mac_phy_api.h"
30 #include "nr5g_mac_phy_api.h"
31
32 uint8_t nr5g_fapi_message_header(
33     p_nr5g_fapi_phy_ctx_t p_phy_ctx,
34     bool is_urllc);
35
36 uint8_t nr5g_fapi_message_header_per_phy(
37     uint8_t phy_id,
38     bool is_urllc);
39
40 uint8_t nr5g_fapi_config_response(
41     p_nr5g_fapi_phy_ctx_t p_phy_ctx,
42     PCONFIGRESPONSEStruct p_iapi_resp);
43
44 uint8_t nr5g_fapi_stop_indication(
45     p_nr5g_fapi_phy_ctx_t p_phy_ctx,
46     PSTOPRESPONSEStruct p_iapi_resp);
47
48 uint8_t nr5g_fapi_shutdown_response(
49     p_nr5g_fapi_phy_ctx_t p_phy_ctx,
50     PSHUTDOWNRESPONSEStruct p_iapi_resp);
51
52 uint8_t nr5g_fapi_start_resp(
53     p_nr5g_fapi_phy_ctx_t p_phy_ctx,
54     PSTARTRESPONSEStruct p_iapi_resp);
55
56 #ifdef DEBUG_MODE
57 uint8_t nr5g_fapi_dl_iq_samples_response(
58     p_nr5g_fapi_phy_ctx_t p_phy_ctx,
59     PADD_REMOVE_BBU_CORES_NR5G p_iapi_resp);
60
61 uint8_t nr5g_fapi_ul_iq_samples_response(
62     p_nr5g_fapi_phy_ctx_t p_phy_ctx,
63     PADD_REMOVE_BBU_CORES_NR5G p_iapi_resp);
64
65 uint8_t nr5g_fapi_message_header_for_ul_iq_samples(
66     uint8_t phy_id);
67
68 #endif
69 #endif                          //_NR5G_FAPI_FAP2MAC_P5_PROC_H_