Agora  1.2.0
Agora project
main.cc File Reference
#include <string>
#include "agora.h"
#include "datatype_conversion.h"
#include "gflags/gflags.h"
#include "logger.h"
#include "signal_handler.h"
Include dependency graph for main.cc:

Functions

template<class TableType >
static void ReadFromFile (const std::string &filename, Table< TableType > &data, size_t num_reads, size_t read_elements, size_t element_size)
 
static void ReadFromFileUl (const std::string &filename, Table< uint8_t > &data, int num_bytes_per_ue, Config const *const cfg)
 
static void ReadFromFileDl (const std::string &filename, Table< short > &data, int ofdm_size, Config const *const cfg)
 
static unsigned int CheckCorrectnessUl (Config const *const cfg)
 
unsigned int CheckCorrectnessDl (Config const *const cfg)
 
static unsigned int CheckCorrectness (Config const *const cfg)
 
 DEFINE_string (conf_file, TOSTRING(PROJECT_DIRECTORY) "/files/config/ci/tddconfig-sim-both.json", "Config filename")
 
int main (int argc, char *argv[])
 

Variables

static const bool kDebugPrintUlCorr = false
 
static const bool kDebugPrintDlCorr = false
 
static const std::string kInputFileDirectory
 
static const std::string kUlCheckFilePrefix
 
static const std::string kDecodedFilename
 
static const std::string kDlCheckFilePrefix
 
static const std::string kTxFilename = kInputFileDirectory + "tx_data.bin"
 

Function Documentation

◆ CheckCorrectness()

static unsigned int CheckCorrectness ( Config const *const  cfg)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ CheckCorrectnessDl()

unsigned int CheckCorrectnessDl ( Config const *const  cfg)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ CheckCorrectnessUl()

static unsigned int CheckCorrectnessUl ( Config const *const  cfg)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ DEFINE_string()

DEFINE_string ( conf_file  ,
TOSTRING(PROJECT_DIRECTORY) "/files/config/ci/tddconfig-sim-both.json ,
"Config filename  
)

◆ main()

int main ( int  argc,
char *  argv[] 
)
Here is the call graph for this function:

◆ ReadFromFile()

template<class TableType >
static void ReadFromFile ( const std::string &  filename,
Table< TableType > &  data,
size_t  num_reads,
size_t  read_elements,
size_t  element_size 
)
static
Here is the caller graph for this function:

◆ ReadFromFileDl()

static void ReadFromFileDl ( const std::string &  filename,
Table< short > &  data,
int  ofdm_size,
Config const *const  cfg 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ReadFromFileUl()

static void ReadFromFileUl ( const std::string &  filename,
Table< uint8_t > &  data,
int  num_bytes_per_ue,
Config const *const  cfg 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ kDebugPrintDlCorr

const bool kDebugPrintDlCorr = false
static

◆ kDebugPrintUlCorr

const bool kDebugPrintUlCorr = false
static

◆ kDecodedFilename

const std::string kDecodedFilename
static
Initial value:
=
kInputFileDirectory + "decode_data.bin"

◆ kDlCheckFilePrefix

const std::string kDlCheckFilePrefix
static
Initial value:
=
kInputFileDirectory + "LDPC_dl_tx_data_"

◆ kInputFileDirectory

const std::string kInputFileDirectory
static
Initial value:
=
TOSTRING(PROJECT_DIRECTORY) "/files/experiment/"

◆ kTxFilename

const std::string kTxFilename = kInputFileDirectory + "tx_data.bin"
static

◆ kUlCheckFilePrefix

const std::string kUlCheckFilePrefix
static
Initial value:
=
kInputFileDirectory + "LDPC_orig_ul_data_"
TOSTRING
#define TOSTRING(x)
Definition: symbols.h:14
kInputFileDirectory
static const std::string kInputFileDirectory
Definition: main.cc:12