Front Haul Interface Library update to first seed code contribution
[o-du/phy.git] / fhi_lib / app / src / config.h
index b2953ee..c223b0b 100644 (file)
@@ -29,6 +29,7 @@
 
 #include <stdint.h>
 #include <rte_ether.h>
+#include "xran_fh_o_du.h"
 
 /** Run time configuration of application */
 typedef struct _RuntimeConfig
@@ -36,13 +37,18 @@ typedef struct _RuntimeConfig
     uint8_t appMode;      /**< Application mode: lls-CU or RU  */
     uint8_t xranMode;     /**< xran mode: Categoty A | Category B */
     uint8_t numCC;        /**< Number of CC per ports supported by RU */
-    uint8_t mu_number;    /**< Mu numner as per 3GPP */
     uint8_t numAxc;       /**< Number of Antenna Carriers per CC */
     uint32_t ttiPeriod;   /**< TTI period */
     uint32_t testVect;    /**< Test Signal to send */
-    struct ether_addr lls_cu_addr; /**<  lls-CU Ethernet Mac Address */
-    struct ether_addr ru_addr; /**<  RU Ethernet Mac Address */
-    char ant_file[16][512] /**<  file to use for test vector */ ;
+    struct ether_addr o_du_addr; /**<  lls-CU Ethernet Mac Address */
+    struct ether_addr o_ru_addr; /**<  RU Ethernet Mac Address */
+    struct ether_addr tmp_addr; /**<  Temp Ethernet Mac Address */
+
+    uint32_t mtu; /**< maximum transmission unit (MTU) is the size of the largest protocol data unit (PDU) that can be communicated in a single
+                       xRAN network layer transaction. supported 1500 bytes and 9600 bytes (Jumbo Frame) */
+    int numSlots;  /**< number of slots in IQ vector */
+    char ant_file[XRAN_MAX_SECTOR_NR*XRAN_MAX_ANTENNA_NR][512] /**<  file to use for test vector */ ;
+    char prach_file[XRAN_MAX_SECTOR_NR*XRAN_MAX_ANTENNA_NR][512] /**<  file to use for test vector */ ;
 
     /* prach config */
     uint8_t enablePrach; /**<  enable PRACH */
@@ -76,8 +82,22 @@ typedef struct _RuntimeConfig
     uint8_t up_vlan_tag; /**<  U-plane vlan tag */
 
     int32_t debugStop;
+    int32_t debugStopCount;
+    int32_t bbdevMode;
+    int32_t DynamicSectionEna;
+
+    uint8_t  mu_number;       /**< Mu numner as per 3GPP */
+    uint32_t nDLAbsFrePointA; /**< Abs Freq Point A of the Carrier Center Frequency for in KHz Value: 450000->52600000 */
+    uint32_t nULAbsFrePointA; /**< Abs Freq Point A of the Carrier Center Frequency for in KHz Value: 450000->52600000 */
+    uint32_t nDLBandwidth;    /**< Carrier bandwidth for in MHz. Value: 5->400 */
+    uint32_t nULBandwidth;    /**< Carrier bandwidth for in MHz. Value: 5->400 */
+    uint32_t nDLFftSize;      /**< DL FFT size */
+    uint32_t nULFftSize;      /**< UL FFT size */
 
 
+    uint8_t nFrameDuplexType;
+    uint8_t nTddPeriod;
+    struct xran_slot_config sSlotConfig[XRAN_MAX_TDD_PERIODICITY];
 } RuntimeConfig;
 
 /**