Agora
1.2.0
Agora project
|
Go to the documentation of this file.
6 #ifndef TXRX_WORKER_CLIENT_SIM_H_
7 #define TXRX_WORKER_CLIENT_SIM_H_
19 size_t interface_offset,
Config*
const config,
20 size_t* rx_frame_start,
25 std::vector<RxPacket>& rx_memory,
26 std::byte*
const tx_memory, std::mutex& sync_mutex,
27 std::condition_variable& sync_cond,
28 std::atomic<bool>& can_proceed);
36 std::vector<Packet*>
RecvEnqueue(
size_t interface_id);
45 #endif // TXRX_WORKER_CLIENT_SIM_H_
size_t NumPilotSyms() const
Definition: framestats.cc:91
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
uint32_t frame_id_
Definition: message.h:168
void PinToCoreWithOffset(ThreadType thread_type, size_t core_offset, size_t thread_id, bool allow_reuse, bool verbose)
Definition: utils.cc:157
size_t GetPilotSymbol(size_t location) const
Definition: framestats.cc:122
size_t *const rx_frame_start_
Definition: txrx_worker.h:59
void DoTxRx() final
Definition: txrx_worker_client_sim.cc:58
uint32_t ant_id_
Definition: message.h:171
std::vector< std::unique_ptr< UDPComm > > udp_comm_
Definition: txrx_worker_client_sim.h:39
bool Running() const
Definition: txrx_worker.h:42
#define AGORA_LOG_ERROR(...)
Definition: logger.h:39
const FrameStats & Frame() const
Definition: config.h:340
Packet * GetUlTxPacket(size_t frame, size_t symbol, size_t ant)
Definition: txrx_worker.cc:173
int UeServerPort() const
Definition: config.h:306
Definition: message.h:227
uint16_t ue_id_
Definition: message.h:37
void WaitSync()
Using a latch might be better but adds c++20 requirement.
Definition: txrx_worker.cc:64
void ReturnRxPacket(RxPacket &unused_packet)
Definition: txrx_worker.cc:129
static constexpr bool kDebugPrintInTask
Definition: symbols.h:201
std::vector< EventData > GetPendingTxEvents(size_t max_events=0)
Definition: txrx_worker.cc:85
Definition: message.h:142
~TxRxWorkerClientSim() final
Self defined functions for message storage and passing.
static constexpr size_t kOffsetOfData
Definition: message.h:166
Plot Rx waveform for u
Definition: inspect_single_frame.m:108
static size_t Rdtsc()
Return the TSC.
Definition: gettime.h:25
static constexpr bool kEnableSlowStart
Definition: txrx_worker_client_sim.cc:15
Definition: message.h:164
Config * Configuration()
Definition: txrx_worker.h:46
uint32_t symbol_id_
Definition: message.h:169
size_t DequeueSend()
Definition: txrx_worker_client_sim.cc:130
static constexpr size_t kNumStatsFrames
Definition: symbols.h:300
bool NotifyComplete(const EventData &complete_event)
Definition: txrx_worker.cc:75
std::vector< uint8_t > tx_pkt_pilot_
Definition: txrx_worker_client_sim.h:43
Definition: txrx_worker.h:18
static constexpr bool kIsWorkerTimingEnabled
Definition: symbols.h:303
RxPacket & GetRxPacket()
Definition: txrx_worker.cc:104
Packet * RawPacket()
Definition: message.h:213
const size_t channels_per_interface_
Definition: txrx_worker.h:58
size_t NumULSyms() const
Definition: framestats.cc:85
const size_t tid_
Definition: txrx_worker.h:54
txrx worker thread definition. This is the simulator declaration for the userequiptment code
#define AGORA_LOG_INFO(...)
Definition: logger.h:62
Definition: txrx_worker_client_sim.h:16
std::vector< uint8_t > tx_pkt_zeros_
Definition: txrx_worker_client_sim.h:42
TxRxWorkerClientSim()=delete
#define AGORA_LOG_FRAME(...)
Definition: logger.h:72
static void RtAssert(bool condition, const char *throw_str)
Definition: utils.h:104
std::vector< Packet * > RecvEnqueue(size_t interface_id)
Definition: txrx_worker_client_sim.cc:92
Definition: message.h:186
int UeRruPort() const
Definition: config.h:307
const size_t interface_offset_
Definition: txrx_worker.h:57
size_t PacketLength() const
Definition: config.h:238
const size_t num_interfaces_
Definition: txrx_worker.h:56
uint32_t frame_id_
Definition: message.h:32
txrx worker thread definition. This is the parent / interface
const size_t core_offset_
Definition: txrx_worker.h:55
std::string UeRruAddr() const
Definition: config.h:301
size_t GetULSymbol(size_t location) const
Definition: framestats.cc:114
bool running_
Definition: txrx_worker.h:60
std::string UeServerAddr() const
Definition: config.h:298
std::vector< std::complex< int16_t > > & PilotCi16()
Definition: config.h:377
static constexpr size_t kSocketRxBufferSize
Definition: txrx_worker_client_sim.cc:16