Agora  1.2.0
Agora project
radio_data_plane_soapy.h
Go to the documentation of this file.
1 
5 #ifndef RADIO_DATA_PLANE_SOAPY_H_
6 #define RADIO_DATA_PLANE_SOAPY_H_
7 
8 #include "radio_data_plane.h"
9 
11  public:
13  // Allow move and disallow copy
14  RadioDataPlaneSoapy(RadioDataPlaneSoapy&&) noexcept = default;
15  explicit RadioDataPlaneSoapy(const RadioDataPlaneSoapy&) = delete;
16  ~RadioDataPlaneSoapy() final = default;
17 
18  void Init(Radio* radio, const Config* cfg, bool hw_framer) final;
19  void Setup() final;
20  void Activate(Radio::ActivationTypes type = Radio::ActivationTypes::kActivate,
21  long long act_time_ns = 0, size_t samples = 0) final;
22  void Deactivate() final;
23  void Close() final;
24 
25  int Rx(std::vector<std::vector<std::complex<int16_t>>>& rx_data,
26  size_t rx_size, Radio::RxFlags& out_flags,
27  long long& rx_time_ns) final;
28 
29  int Rx(std::vector<std::vector<std::complex<int16_t>>*>& rx_buffs,
30  size_t rx_size, Radio::RxFlags& out_flags,
31  long long& rx_time_ns) final;
32 
33  int Rx(std::vector<void*>& rx_locations, size_t rx_size,
34  Radio::RxFlags& out_flags, long long& rx_time_ns) final;
35 
36  void Flush() final;
37 
38  private:
39 };
40 #endif // RADIO_DATA_PLANE_SOAPY_H_
RadioDataPlane::Configuration
const Config * Configuration() const
Definition: radio_data_plane.h:50
RadioDataPlane::radio_
Radio * radio_
Definition: radio_data_plane.h:54
Radio::Id
size_t Id() const
Definition: radio.h:27
RadioDataPlane::Activate
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
Radio::ActivationTypes
ActivationTypes
Definition: radio.h:23
flags
list flags
Definition: .ycm_extra_conf.py:39
RadioDataPlane::Deactivate
virtual void Deactivate()=0
Definition: radio_data_plane.cc:91
RadioDataPlane::remote_stream_
SoapySDR::Stream * remote_stream_
Definition: radio_data_plane.h:55
AGORA_LOG_TRACE
#define AGORA_LOG_TRACE(...)
Definition: logger.h:92
Radio::SerialNumber
const std::string & SerialNumber() const
Definition: radio.h:28
RadioDataPlaneSoapy::Setup
void Setup() final
Definition: radio_data_plane_soapy.cc:33
Radio
Definition: radio.h:15
kDebugPrintRx
static constexpr bool kDebugPrintRx
Definition: radio_data_plane_soapy.cc:12
radio_soapysdr.h
Defination file for the RadioSoapySdr class.
RadioDataPlaneSoapy::Flush
void Flush() final
Definition: radio_data_plane_soapy.cc:195
kMaxChannels
static constexpr size_t kMaxChannels
Definition: symbols.h:292
Radio::RxFlags
RxFlags
Definition: radio.h:19
RadioDataPlaneSoapy::Close
void Close() final
Definition: radio_data_plane_soapy.cc:31
RadioDataPlane
Definition: radio_data_plane.h:16
Config
Definition: config.h:26
AGORA_LOG_INFO
#define AGORA_LOG_INFO(...)
Definition: logger.h:62
RadioDataPlaneSoapy::Init
void Init(Radio *radio, const Config *cfg, bool hw_framer) final
Definition: radio_data_plane_soapy.cc:16
RadioDataPlaneSoapy::Activate
void Activate(Radio::ActivationTypes type=Radio::ActivationTypes::kActivate, long long act_time_ns=0, size_t samples=0) final
Definition: radio_data_plane_soapy.cc:21
RadioDataPlaneSoapy::Rx
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_soapy.cc:40
RadioDataPlane::Close
virtual void Close()=0
Definition: radio_data_plane.cc:113
RadioDataPlaneSoapy::~RadioDataPlaneSoapy
~RadioDataPlaneSoapy() final=default
AGORA_LOG_WARN
#define AGORA_LOG_WARN(...)
Definition: logger.h:53
kDebugRadioRX
static constexpr bool kDebugRadioRX
Definition: symbols.h:209
RadioDataPlane::Init
virtual void Init(Radio *radio, const Config *cfg, bool hw_framer)=0
Definition: radio_data_plane.cc:36
RadioDataPlaneSoapy::RadioDataPlaneSoapy
RadioDataPlaneSoapy()
radio_data_plane_soapy.h
Declaration file for the RadioDataPlaneSoapy Class.
rx_data
case QPSK rx_data
Definition: generate_data.m:160
RadioDataPlane::Setup
virtual void Setup()=0
Definition: radio_data_plane.cc:153
RadioDataPlaneSoapy::Deactivate
void Deactivate() final
Definition: radio_data_plane_soapy.cc:27
RadioDataPlaneSoapy
Definition: radio_data_plane_soapy.h:10
RadioSoapySdr
Definition: radio_soapysdr.h:16
radio_data_plane.h
Declaration file for the RadioDataPlane Class.
fmt::v8::detail::type
type
Definition: core.h:1131
RadioDataPlane::HwFramer
const bool & HwFramer() const
Definition: radio_data_plane.h:52