Agora
1.2.0
Agora project
|
Go to the documentation of this file.
30 size_t core_offset = 1);
51 size_t in_buffer_length,
size_t core_id_
Definition: receiver.h:71
moodycamel::ProducerToken ** rx_ptoks_
Definition: receiver.h:70
byte
Definition: core.h:388
Declaration file for the UDPComm class. This class is used to send messages and receive messages from...
Definition: concurrentqueue.h:630
void Running(bool value)
Definition: config.h:33
unsigned short ushort
Definition: receiver.h:26
uint32_t frame_id_
Definition: message.h:168
size_t UeAntNum() const
Definition: config.h:41
void Calloc(size_t dim1, size_t dim2, Agora_memory::Alignment_t alignment)
Definition: memory_manage.h:45
static constexpr bool kDebugSenderReceiver
Definition: symbols.h:354
void PinToCoreWithOffset(ThreadType thread_type, size_t core_offset, size_t thread_id, bool allow_reuse, bool verbose)
Definition: utils.cc:157
static void ReadFromFile(const std::string &filename, Table< TableType > &data, size_t num_reads, size_t read_elements, size_t element_size)
Definition: main.cc:23
size_t SampsPerSymbol() const
Definition: config.h:234
auto printf(const S &fmt, const T &... args) -> int
Definition: printf.h:631
Definition: signal_handler.h:14
Agora project version configuration file.
size_t NumChannels() const
Definition: config.h:98
size_t OfdmTxZeroPrefix() const
Definition: config.h:211
const std::string & GetAgoraProjectVersion()
Definition: version_config.h:10
Receiver(Config *cfg, size_t rx_thread_num=1, size_t core_offset=1)
Definition: receiver.cc:10
#define AGORA_LOG_INIT()
Definition: logger.h:35
int main(int argc, char const *argv[])
Definition: main.cc:7
static const std::string kTxFilename
Definition: main.cc:20
static bool GotExitSignal()
Definition: signal_handler.cc:23
size_t BsAntNum() const
Definition: config.h:35
uint32_t ant_id_
Definition: message.h:171
Helper definations for networking.
std::vector< std::thread > StartRecv(Table< char > &in_buffer, size_t in_buffer_length, Table< double > &in_frame_start)
Definition: receiver.cc:21
#define AGORA_LOG_ERROR(...)
Definition: logger.h:39
#define TOSTRING(x)
Definition: symbols.h:14
static unsigned int CheckCorrectnessUl(Config const *const cfg)
Definition: main.cc:57
const FrameStats & Frame() const
Definition: config.h:340
static const bool kDebugPrintDlCorr
Definition: main.cc:10
#define AGORA_LOG_TRACE(...)
Definition: logger.h:92
Definition: message.h:227
void Use()
Definition: message.h:215
moodycamel::ConcurrentQueue< EventData > * message_queue_
Definition: receiver.h:69
Definition: memory_manage.h:28
Definition: receiver.h:27
Declaration file for the RadioConfig class.
filename
Definition: parse_all_dl.m:14
size_t UeNum() const
Definition: config.h:40
size_t OfdmDataNum() const
Definition: config.h:47
static const std::string kInputFileDirectory
Definition: main.cc:12
Definition: message.h:142
int BsRruPort() const
Definition: config.h:305
static void ReadFromFileUl(const std::string &filename, Table< uint8_t > &data, int num_bytes_per_ue, Config const *const cfg)
Definition: main.cc:45
RadioType
Definition: radio.h:17
Self defined functions for message storage and passing.
void Free()
Definition: memory_manage.h:84
static void TestUeRadioRx(Config *cfg, const uint32_t max_rx, Radio::RadioType type)
Definition: main.cc:227
int BsServerPort() const
Definition: config.h:304
Table< double > * frame_start_
Definition: receiver.h:68
size_t ClientUlPilotSymbols() const
Definition: framestats.h:73
for i
Definition: generate_data.m:107
size_t OfdmCaNum() const
Definition: config.h:45
bool enqueue(T const &item)
Definition: concurrentqueue.h:974
Definition: rx_status_tracker.h:17
Communications Library: a) Generate pilot/preamble sequences b) OFDM modulation.
std::string BsServerAddr() const
Definition: config.h:299
unsigned int CheckCorrectnessDl(Config const *const cfg)
Definition: main.cc:113
Definition: message.h:164
static constexpr bool kUseArgos
Definition: symbols.h:156
uint32_t symbol_id_
Definition: message.h:169
static unsigned int CheckCorrectness(Config const *const cfg)
Definition: main.cc:169
static int FindBeaconAvx(const std::vector< std::complex< float >> &iq, const std::vector< std::complex< float >> &seq, float corr_scale=1.f)
Correlation and Peak detection of a beacon with Gold code (2 repetitions)
Definition: comms-lib-avx.cc:46
size_t rx_thread_num_
Definition: receiver.h:66
for ue_num
Definition: parse_all_dl.m:84
const LDPCconfig & LdpcConfig(Direction dir) const
Definition: config.h:280
static void ReadFromFileDl(const std::string &filename, Table< short > &data, int ofdm_size, Config const *const cfg)
Definition: main.cc:51
static constexpr bool kIsWorkerTimingEnabled
Definition: symbols.h:303
Packet * RawPacket()
Definition: message.h:213
size_t NumDLSyms() const
Definition: framestats.cc:83
static const std::string kDlCheckFilePrefix
Definition: main.cc:18
Config * cfg_
Definition: receiver.h:72
int ListLocalInterfaces()
Definition: network_utils.cc:28
@ kSoapySdrStream
Definition: radio.h:17
ue
Definition: user_gui.py:117
static double GetTime()
Definition: gettime.h:22
size_t NumULSyms() const
Definition: framestats.cc:85
frame_start
Definition: parse_dl_file.m:6
bool HwFramer() const
Definition: config.h:53
size_t NumUeChannels() const
Definition: config.h:99
#define AGORA_LOG_INFO(...)
Definition: logger.h:62
ssize_t SyncBeacon(const std::complex< int16_t > *samples, size_t detect_window, const Config *cfg)
Definition: main.cc:378
Declaration file for the simulator class.
@ kSoapySdrSocket
Definition: radio.h:17
static void RtAssert(bool condition, const char *throw_str)
Definition: utils.h:104
end Generate data if GENERATE_DATA tx_data
Definition: generate_data.m:38
#define AGORA_LOG_SHUTDOWN()
Definition: logger.h:36
Declaration file for the receiver class.
Implementation of RxStatusTracker helper class.
size_t buffers_per_thread_
Definition: receiver.h:64
#define AGORA_LOG_WARN(...)
Definition: logger.h:53
void * LoopRecv(size_t tid)
Definition: receiver.cc:45
size_t BeaconLen() const
Definition: config.h:103
uint32_t NumCbLen() const
Definition: ldpc_config.h:50
std::string to_string() const
Definition: eth_common.h:64
bool UeHwFramer() const
Definition: config.h:54
void PrintCoreAssignmentSummary()
Definition: utils.cc:85
static void TestBsRadioRx(Config *cfg, const uint32_t max_rx, Radio::RadioType type)
Definition: main.cc:72
Definition: message.h:186
Declaration file for the configuration class which importants json configuration values into class va...
std::vector< std::vector< RxPacket > > rx_packets_
Definition: receiver.h:63
const std::vector< std::complex< float > > & GoldCf32() const
Definition: config.h:344
static const bool kDebugPrintUlCorr
Definition: main.cc:9
void SetupSignalHandlers()
Definition: signal_handler.cc:44
size_t PacketLength() const
Definition: config.h:238
static const std::string kUlCheckFilePrefix
Definition: main.cc:14
static constexpr float kShrtFltConvFactor
Definition: datatype_conversion.h:18
Declaration file for the main agora class.
Definition: signal_handler.h:8
size_t NumRadios() const
Definition: config.h:95
DEFINE_string(conf_file, TOSTRING(PROJECT_DIRECTORY) "/files/config/ci/tddconfig-sim-both.json", "Config filename")
void NumBlocksInSymbol(size_t num_blocks)
Definition: ldpc_config.h:41
Declaration file for the client radio config class.
DEFINE_uint32(rx_symbols, 10, "The number of symbols to receive before the program terminates")
static const std::string kDecodedFilename
Definition: main.cc:16
std::string BsRruAddr() const
Definition: config.h:302
bool Empty() const
Definition: message.h:214
type
Definition: core.h:1131