X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=docs%2FAPI%2Fsample-app_8c.html;fp=docs%2FAPI%2Fsample-app_8c.html;h=811a13376553f4725ca21015153aff9f6d0c3f52;hb=870e1b86b0c74169b215c166dee787c7c1a20d06;hp=0000000000000000000000000000000000000000;hpb=298022ce50fa8133cc880507170c4b7120d227b5;p=o-du%2Fphy.git
diff --git a/docs/API/sample-app_8c.html b/docs/API/sample-app_8c.html
new file mode 100644
index 0000000..811a133
--- /dev/null
+++ b/docs/API/sample-app_8c.html
@@ -0,0 +1,1179 @@
+
+
+
+
+
#include <unistd.h>
+
#include <sys/syscall.h>
+
#include <sched.h>
+
#include <assert.h>
+
#include <err.h>
+
#include <libgen.h>
+
#include <sys/time.h>
+
#include <time.h>
+
#include <stdio.h>
+
#include <fcntl.h>
+
#include <pthread.h>
+
#include <sys/stat.h>
+
#include "common.h"
+
#include "config.h"
+
#include "xran_mlog_lnx.h"
+
#include "xran_fh_o_du.h"
+
#include "xran_compression.h"
+
#include "xran_cp_api.h"
+
#include "xran_sync_api.h"
+
#include "xran_mlog_task_id.h"
+
+
+
+
+
+
+
Go to the source code of this file.
+
+
+
+
◆ _GNU_SOURCE
+
+
+
+
+
+ #define _GNU_SOURCE |
+
+
+
+
+
+
◆ CPU_HZ
+
+
+
+
◆ FPGA_TO_SW_PRACH_RX_BUFFER_LEN
+
+
+
+
+
+ #define FPGA_TO_SW_PRACH_RX_BUFFER_LEN (8192) |
+
+
+
+
+
+
◆ MAIN_PRIORITY
+
+
+
+
+
+ #define MAIN_PRIORITY 98 |
+
+
+
+
+
+
◆ MAX_BBU_POOL_CORE_MASK
+
+
+
+
+
+ #define MAX_BBU_POOL_CORE_MASK (4) |
+
+
+
+
+
+
◆ MAX_PKT_BURST
+
+
+
+
+
+ #define MAX_PKT_BURST (448+4) |
+
+
+
+
+
+
◆ N_MAX_BUFFER_SEGMENT
+
+
+
+
◆ NS_PER_SEC
+
+
+
+
+
+ #define NS_PER_SEC 1E9 |
+
+
+
+
+
+
+
+
◆ NSEC_PER_SEC
+
+
+
+
+
+ #define NSEC_PER_SEC 1000000000 |
+
+
+
+
+
+
◆ NUM_OF_SUBFRAME_PER_FRAME
+
+
+
+
+
+ #define NUM_OF_SUBFRAME_PER_FRAME (10) |
+
+
+
+
+
+
◆ SW_FPGA_FH_TOTAL_BUFFER_LEN
+
+
+
+
+
+ #define SW_FPGA_FH_TOTAL_BUFFER_LEN 1*1024*1024*1024 |
+
+
+
+
+
+
◆ SW_FPGA_SEGMENT_BUFFER_LEN
+
+
+
+
+
+ #define SW_FPGA_SEGMENT_BUFFER_LEN 1*1024*1024*1024 |
+
+
+
+
+
+
◆ SW_FPGA_TOTAL_BUFFER_LEN
+
+
+
+
+
+ #define SW_FPGA_TOTAL_BUFFER_LEN 4*1024*1024*1024 |
+
+
+
+
+
+
+
◆ XranLibConfigStruct
+
+
+
+
+
◆ SWXRANInterfaceTypeEnum
+
+
+
+
+Enumerator |
---|
XRANFTHTX_OUT | |
+XRANFTHTX_PRB_MAP_OUT | |
+XRANFTHTX_SEC_DESC_OUT | |
+XRANFTHRX_IN | |
+XRANFTHRX_PRB_MAP_IN | |
+XRANFTHTX_SEC_DESC_IN | |
+XRANFTHRACH_IN | |
+XRANSRS_IN | |
+MAX_SW_XRAN_INTERFACE_NUM | |
+
+
+
Definition at line 101 of file sample-app.c.
+
+
+
+
+
+
◆ get_xran_iq_content()
+
+
+
+
+
+ int get_xran_iq_content |
+ ( |
+ void |
+ | ) |
+ |
+
+
+
+
+
+
◆ init_xran()
+
+
+
+
+
+ int32_t init_xran |
+ ( |
+ void |
+ | ) |
+ |
+
+
+
+
+
+
◆ init_xran_iq_content()
+
+
+
+
+
+ int init_xran_iq_content |
+ ( |
+ void |
+ | ) |
+ |
+
+
+
+
+
+
◆ main()
+
+
+
+
+
+ int main |
+ ( |
+ int |
+ argc, |
+
+
+ |
+ |
+ char * |
+ argv[] |
+
+
+ |
+ ) |
+ | |
+
+
+
+
+
+
◆ physide_dl_tti_call_back()
+
+
+
+
+
+ int physide_dl_tti_call_back |
+ ( |
+ void * |
+ param | ) |
+ |
+
+
+
+
+
+
◆ physide_ul_full_slot_call_back()
+
+
+
+
+
+ int physide_ul_full_slot_call_back |
+ ( |
+ void * |
+ param | ) |
+ |
+
+
+
+
+
+
◆ physide_ul_half_slot_call_back()
+
+
+
+
+
+ int physide_ul_half_slot_call_back |
+ ( |
+ void * |
+ param | ) |
+ |
+
+
+
+
+
+
◆ stop_xran()
+
+
+
+
+
+ void stop_xran |
+ ( |
+ void |
+ | ) |
+ |
+
+
+
+
+
+
◆ timer_get_ticks()
+
+
+
+
+
+ unsigned long timer_get_ticks |
+ ( |
+ void |
+ | ) |
+ |
+
+
+
+
- Parameters
-
+
+
+
+
- Returns
- Ticks
+
This function reads the rtdsc clock and returns the current value in there.
+
+
Definition at line 289 of file sample-app.c.
+
+
+
+
+
◆ timer_set_tsc_freq_from_clock()
+
+
+
+
+
+ int timer_set_tsc_freq_from_clock |
+ ( |
+ void |
+ | ) |
+ |
+
+
+
+
- Parameters
-
+
+
+
+
- Returns
- 0 if SUCCESS
+
This function gets the clock speed of the core and figures out number of ticks per usec. It is used by l1app and testmac applications to initialize the mlog utility
+
+
Definition at line 323 of file sample-app.c.
+
+
+
+
+
◆ version_print()
+
+
+
+
+
+ void version_print |
+ ( |
+ void |
+ | ) |
+ |
+
+
+
+
+
+
◆ xran_fh_rx_callback()
+
+
+
+
+
+ void xran_fh_rx_callback |
+ ( |
+ void * |
+ pCallbackTag, |
+
+
+ |
+ |
+ int32_t |
+ status |
+
+
+ |
+ ) |
+ | |
+
+
+
+
+
+
◆ xran_fh_rx_prach_callback()
+
+
+
+
+
+ void xran_fh_rx_prach_callback |
+ ( |
+ void * |
+ pCallbackTag, |
+
+
+ |
+ |
+ int32_t |
+ status |
+
+
+ |
+ ) |
+ | |
+
+
+
+
+
+
◆ xran_fh_rx_srs_callback()
+
+
+
+
+
+ void xran_fh_rx_srs_callback |
+ ( |
+ void * |
+ pCallbackTag, |
+
+
+ |
+ |
+ xran_status_t |
+ status |
+
+
+ |
+ ) |
+ | |
+
+
+
+
+
+
+
◆ nFpgaToSW_FTH_RxBufferLen
+
+
+
+
+
+ uint32_t nFpgaToSW_FTH_RxBufferLen |
+
+
+
+
+
+
◆ nFpgaToSW_PRACH_RxBufferLen
+
+
+
+
+
+ uint32_t nFpgaToSW_PRACH_RxBufferLen |
+
+
+
+
+
+
◆ nSW_ToFpga_FTH_TxBufferLen
+
+
+
+
+
+ uint32_t nSW_ToFpga_FTH_TxBufferLen |
+
+
+
+
+
+
◆ old_rx_counter
+
+
+
+
+
+ long old_rx_counter = 0 |
+
+
+
+
+
+
◆ old_tx_counter
+
+
+
+
+
+ long old_tx_counter = 0 |
+
+
+
+
+
+
◆ pXranConf
+
+
+
+
◆ rx_bytes_counter
+
+
+
+
+
+ long rx_bytes_counter |
+
+
+
+
+
+
◆ rx_bytes_per_sec
+
+
+
+
+
+ long rx_bytes_per_sec |
+
+
+
+
+
+
◆ rx_counter
+
+
+
+
◆ startupConfiguration
+
+
+
+
◆ state
+
+
+
+
◆ tick_per_usec
+
+
+
+
+
+ uint64_t tick_per_usec |
+
+
+
+
+
+
◆ tx_bytes_counter
+
+
+
+
+
+ long tx_bytes_counter |
+
+
+
+
+
+
◆ tx_bytes_per_sec
+
+
+
+
+
+ long tx_bytes_per_sec |
+
+
+
+
+
+
◆ tx_counter
+
+
+
+
◆ xranConf
+
+
+
+
◆ xranHandle
+
+
+
+
+
+ void* xranHandle = NULL |
+
+
+
+
+
+
+
+
+