Agora  1.2.0
Agora project
RadioDataPlaneSocket Class Reference

#include <radio_data_plane_socket.h>

Inheritance diagram for RadioDataPlaneSocket:
Collaboration diagram for RadioDataPlaneSocket:

Public Member Functions

 RadioDataPlaneSocket ()
 
 RadioDataPlaneSocket (RadioDataPlaneSocket &&) noexcept=default
 
 RadioDataPlaneSocket (const RadioDataPlaneSocket &)=delete
 
 ~RadioDataPlaneSocket () final
 
void Init (Radio *radio, const Config *cfg, bool hw_framer) final
 
void Setup () final
 
void Activate (Radio::ActivationTypes type=Radio::ActivationTypes::kActivate, long long act_time_ns=0, size_t samples=0) final
 
void Deactivate () final
 
void Close () final
 
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
 
int Rx (std::vector< std::vector< std::complex< int16_t >> * > &rx_buffs, size_t rx_size, Radio::RxFlags &out_flags, long long &rx_time_ns) final
 
int Rx (std::vector< void * > &rx_locations, size_t rx_size, Radio::RxFlags &out_flags, long long &rx_time_ns) final
 
void Flush () final
 
- Public Member Functions inherited from RadioDataPlane
virtual ~RadioDataPlane ()
 
 RadioDataPlane (RadioDataPlane &&) noexcept=delete
 
 RadioDataPlane (const RadioDataPlane &)=delete
 

Private Attributes

RadioSocket socket_
 

Additional Inherited Members

- Public Types inherited from RadioDataPlane
enum  DataPlaneType { kSoapyStream, kLinuxSocket }
 
enum  Mode { kModeUninit, kModeShutdown, kModeDeactive, kModeActive }
 
- Static Public Member Functions inherited from RadioDataPlane
static std::unique_ptr< RadioDataPlaneCreate (DataPlaneType type)
 
- Protected Member Functions inherited from RadioDataPlane
 RadioDataPlane ()
 
virtual void Setup (const SoapySDR::Kwargs &args)
 
const ConfigConfiguration () const
 
const ModeCheckMode () const
 
const bool & HwFramer () const
 
- Protected Attributes inherited from RadioDataPlane
Radioradio_ {nullptr}
 
SoapySDR::Stream * remote_stream_ {nullptr}
 

Constructor & Destructor Documentation

◆ RadioDataPlaneSocket() [1/3]

RadioDataPlaneSocket::RadioDataPlaneSocket ( )
default

◆ RadioDataPlaneSocket() [2/3]

RadioDataPlaneSocket::RadioDataPlaneSocket ( RadioDataPlaneSocket &&  )
defaultnoexcept

◆ RadioDataPlaneSocket() [3/3]

RadioDataPlaneSocket::RadioDataPlaneSocket ( const RadioDataPlaneSocket )
explicitdelete

◆ ~RadioDataPlaneSocket()

RadioDataPlaneSocket::~RadioDataPlaneSocket ( )
final
Here is the call graph for this function:

Member Function Documentation

◆ Activate()

void RadioDataPlaneSocket::Activate ( Radio::ActivationTypes  type = Radio::ActivationTypes::kActivate,
long long  act_time_ns = 0,
size_t  samples = 0 
)
inlinefinalvirtual

Implements RadioDataPlane.

Here is the call graph for this function:

◆ Close()

void RadioDataPlaneSocket::Close ( )
inlinefinalvirtual

Implements RadioDataPlane.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Deactivate()

void RadioDataPlaneSocket::Deactivate ( )
inlinefinalvirtual

Implements RadioDataPlane.

Here is the call graph for this function:

◆ Flush()

void RadioDataPlaneSocket::Flush ( )
finalvirtual

Implements RadioDataPlane.

Here is the call graph for this function:

◆ Init()

void RadioDataPlaneSocket::Init ( Radio radio,
const Config cfg,
bool  hw_framer 
)
finalvirtual

Implements RadioDataPlane.

Here is the call graph for this function:

◆ Rx() [1/3]

int RadioDataPlaneSocket::Rx ( std::vector< std::vector< std::complex< int16_t >> * > &  rx_buffs,
size_t  rx_size,
Radio::RxFlags out_flags,
long long &  rx_time_ns 
)
finalvirtual

Implements RadioDataPlane.

Here is the call graph for this function:

◆ Rx() [2/3]

int RadioDataPlaneSocket::Rx ( std::vector< std::vector< std::complex< int16_t >>> &  rx_data,
size_t  rx_size,
Radio::RxFlags out_flags,
long long &  rx_time_ns 
)
finalvirtual

Implements RadioDataPlane.

Here is the caller graph for this function:

◆ Rx() [3/3]

int RadioDataPlaneSocket::Rx ( std::vector< void * > &  rx_locations,
size_t  rx_size,
Radio::RxFlags out_flags,
long long &  rx_time_ns 
)
finalvirtual

Implements RadioDataPlane.

Here is the call graph for this function:

◆ Setup()

void RadioDataPlaneSocket::Setup ( )
finalvirtual
Todo:
Not sure why we need this???

Implements RadioDataPlane.

Here is the call graph for this function:

Member Data Documentation

◆ socket_

RadioSocket RadioDataPlaneSocket::socket_
private

The documentation for this class was generated from the following files: