Agora
1.2.0
Agora project
|
Go to the documentation of this file.
7 #ifndef PACKETTXRX_RADIO_H_
8 #define PACKETTXRX_RADIO_H_
10 #include "common_typedef_sdk.h"
30 Table<char>& rx_buffer,
size_t packet_num_in_buffer,
37 bool CreateWorker(
size_t tid,
size_t interface_count,
size_t interface_offset,
38 size_t* rx_frame_start, std::vector<RxPacket>& rx_memory,
44 #endif // PACKETTXRX_RADIO_H_
Definition: packet_txrx.h:18
std::condition_variable cond_
Definition: packet_txrx.h:90
byte
Definition: core.h:388
std::mutex mutex_
Owned by this class and shared with the workers.
Definition: packet_txrx.h:89
std::vector< std::unique_ptr< TxRxWorker > > worker_threads_
Definition: packet_txrx.h:76
Definition: concurrentqueue.h:630
void Running(bool value)
Definition: config.h:33
TxRxTypes
Definition: packet_txrx.h:19
moodycamel::ProducerToken ** tx_producer_tokens_
Definition: packet_txrx.h:86
static constexpr size_t kFrameWnd
Definition: symbols.h:18
Implementation of PacketTxRx datapath functions for communicating with real iris / faros hardware.
~PacketTxRxRadio() final
Definition: packet_txrx_radio.cc:30
Common definations for PacketTxRx. Including datapath functions for communicating with simulators.
Implementation of PacketTxRx datapath functions for communicating with usrp hardware.
Config *const cfg_
Definition: packet_txrx.h:77
const FrameStats & Frame() const
Definition: config.h:340
std::atomic< bool > proceed_
Definition: packet_txrx.h:91
Declaration file for the RadioConfig class.
size_t OfdmDataNum() const
Definition: config.h:47
bool StartTxRx(Table< complex_float > &calib_dl_buffer, Table< complex_float > &calib_ul_buffer) final
Start the network I/O threads.
Definition: packet_txrx_radio.cc:40
static constexpr size_t kRadioTriggerWaitMs
Definition: packet_txrx_radio.cc:13
PacketTxRxRadio(Config *const cfg, size_t core_offset, moodycamel::ConcurrentQueue< EventData > *event_notify_q, moodycamel::ConcurrentQueue< EventData > *tx_pending_q, moodycamel::ProducerToken **notify_producer_tokens, moodycamel::ProducerToken **tx_producer_tokens, Table< char > &rx_buffer, size_t packet_num_in_buffer, Table< size_t > &frame_start, char *tx_buffer)
Definition: packet_txrx_radio.cc:15
auto fprintf(std::FILE *f, const S &fmt, const T &... args) -> int
Definition: printf.h:607
static constexpr bool kUseUHD
Definition: symbols.h:162
static constexpr bool kUseArgos
Definition: symbols.h:156
virtual bool StartTxRx(Table< complex_float > &calib_dl_buffer, Table< complex_float > &calib_ul_buffer)
Start the network I/O threads.
Definition: packet_txrx.cc:117
Common definations for PacketTxRxRadio. Including datapath functions for communicating with hardware.
Implementations of this class provide packet I/O for Agora.
Definition: packet_txrx.h:34
size_t NumDLSyms() const
Definition: framestats.cc:83
moodycamel::ConcurrentQueue< EventData > * event_notify_q_
Definition: packet_txrx.h:80
std::unique_ptr< RadioConfig > radio_config_
Definition: packet_txrx_radio.h:41
@ kSoapySdrStream
Definition: radio.h:17
frame_start
Definition: parse_dl_file.m:6
moodycamel::ProducerToken ** notify_producer_tokens_
Definition: packet_txrx.h:84
#define AGORA_LOG_INFO(...)
Definition: logger.h:62
#define AGORA_LOG_FRAME(...)
Definition: logger.h:72
static void RtAssert(bool condition, const char *throw_str)
Definition: utils.h:104
const size_t core_offset_
Definition: packet_txrx.h:79
Implementations of this class provide packet I/O for Agora.
Definition: packet_txrx_radio.h:23
bool CreateWorker(size_t tid, size_t interface_count, size_t interface_offset, size_t *rx_frame_start, std::vector< RxPacket > &rx_memory, std::byte *const tx_memory) final
Definition: packet_txrx_radio.cc:68
moodycamel::ConcurrentQueue< EventData > * tx_pending_q_
Definition: packet_txrx.h:81
@ kBaseStation
Definition: packet_txrx.h:19
size_t NumChannels() const
Definition: packet_txrx.h:74
size_t BfAntNum() const
Definition: config.h:39