Agora
1.2.0
Agora project
|
Go to the documentation of this file.
5 #ifndef RADIO_DATA_PLANE_SOCKET_H_
6 #define RADIO_DATA_PLANE_SOCKET_H_
22 long long act_time_ns = 0,
size_t samples = 0)
final;
26 int Rx(std::vector<std::vector<std::complex<int16_t>>>&
rx_data,
28 long long& rx_time_ns)
final;
30 int Rx(std::vector<std::vector<std::complex<int16_t>>*>& rx_buffs,
32 long long& rx_time_ns)
final;
34 int Rx(std::vector<void*>& rx_locations,
size_t rx_size,
42 #endif // RADIO_DATA_PLANE_SOCKET_H_
const Config * Configuration() const
Definition: radio_data_plane.h:50
int Rx(std::vector< std::vector< std::complex< int16_t >>> &rx_data, size_t rx_size, Radio::RxFlags &out_flags, long long &rx_time_ns) final
Definition: radio_data_plane_socket.cc:112
void Flush() final
Definition: radio_data_plane_socket.cc:152
Radio * radio_
Definition: radio_data_plane.h:54
size_t Id() const
Definition: radio.h:27
Class to commicate with the Radios. Including symbol parsing, packing and unpacking based on control ...
Definition: radio_socket.h:18
~RadioDataPlaneSocket() final
Definition: radio_data_plane_socket.cc:15
void Setup() final
Definition: radio_data_plane_socket.cc:34
const std::string & Port() const
Definition: radio_socket.h:30
void Deactivate() final
Definition: radio_data_plane_socket.cc:29
virtual void Activate(Radio::ActivationTypes type=Radio::ActivationTypes::kActivate, long long act_time_ns=0, size_t samples=0)=0
Definition: radio_data_plane.cc:57
int RxSamples(std::vector< void * > &out_data, long long &rx_time_ns, size_t req_samples_per_channel)
Definition: radio_socket.cc:159
Declaration file for the RadioDataPlaneSocket Class.
ActivationTypes
Definition: radio.h:23
void Init(Radio *radio, const Config *cfg, bool hw_framer) final
Definition: radio_data_plane_socket.cc:17
Helper definations for networking.
virtual void Deactivate()=0
Definition: radio_data_plane.cc:91
#define AGORA_LOG_TRACE(...)
Definition: logger.h:92
void Activate(Radio::ActivationTypes type=Radio::ActivationTypes::kActivate, long long act_time_ns=0, size_t samples=0) final
Definition: radio_data_plane_socket.cc:22
Defination file for the RadioSoapySdr class.
Definition: radio_data_plane_socket.h:11
RxFlags
Definition: radio.h:19
void Close() final
Definition: radio_data_plane_socket.cc:31
const Mode & CheckMode() const
Definition: radio_data_plane.h:51
std::string GetLocalAddressFromScope(size_t scope_id)
Definition: network_utils.cc:143
void Create(size_t samples_per_symbol, const std::string &local_addr, const std::string &remote_addr, const std::string &local_port, const std::string &remote_port)
Definition: radio_socket.cc:137
const std::string & Address() const
Definition: radio_socket.h:29
Definition: radio_data_plane.h:16
#define AGORA_LOG_FRAME(...)
Definition: logger.h:72
virtual void Close()=0
Definition: radio_data_plane.cc:113
static void RtAssert(bool condition, const char *throw_str)
Definition: utils.h:104
#define AGORA_LOG_WARN(...)
Definition: logger.h:53
virtual void Init(Radio *radio, const Config *cfg, bool hw_framer)=0
Definition: radio_data_plane.cc:36
std::string to_string() const
Definition: eth_common.h:64
case QPSK rx_data
Definition: generate_data.m:160
virtual void Setup()=0
Definition: radio_data_plane.cc:153
RadioSocket socket_
Definition: radio_data_plane_socket.h:40
Declaration file for the RadioSocket class.
Definition: radio_soapysdr.h:16
Declaration file for the RadioDataPlane Class.
type
Definition: core.h:1131
void Flush()
Definition: radio_socket.cc:420