Agora  1.2.0
Agora project
ClientRadioConfig Class Reference

#include <client_radio.h>

Collaboration diagram for ClientRadioConfig:

Public Member Functions

 ClientRadioConfig (const Config *const cfg, Radio::RadioType radio_type)
 
 ~ClientRadioConfig ()
 
bool RadioStart ()
 
void RadioStop ()
 
void ReadSensors ()
 
int RadioTx (size_t radio_id, void **buffs, size_t num_samps, Radio::TxFlags flags, long long &tx_time)
 
int RadioRx (size_t radio_id, std::vector< std::vector< std::complex< int16_t >>> &rx_data, size_t rx_size, Radio::RxFlags &out_flags, long long &rx_time_ns)
 
int RadioRx (size_t radio_id, std::vector< std::vector< std::complex< int16_t >> * > &rx_buffs, size_t rx_size, Radio::RxFlags &out_flags, long long &rx_time_ns)
 
int RadioRx (size_t radio_id, std::vector< void * > &rx_locs, size_t rx_size, Radio::RxFlags &out_flags, long long &rx_time_ns)
 
void Go () const
 

Private Member Functions

void InitClientRadio (size_t radio_id)
 

Private Attributes

const Config *const cfg_
 
std::vector< std::unique_ptr< Radio > > radios_
 
size_t total_radios_
 
size_t total_antennas_
 
std::atomic< size_t > num_client_radios_initialized_
 

Constructor & Destructor Documentation

◆ ClientRadioConfig()

ClientRadioConfig::ClientRadioConfig ( const Config *const  cfg,
Radio::RadioType  radio_type 
)
Here is the call graph for this function:

◆ ~ClientRadioConfig()

ClientRadioConfig::~ClientRadioConfig ( )

Member Function Documentation

◆ Go()

void ClientRadioConfig::Go ( ) const

◆ InitClientRadio()

void ClientRadioConfig::InitClientRadio ( size_t  radio_id)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ RadioRx() [1/3]

int ClientRadioConfig::RadioRx ( size_t  radio_id,
std::vector< std::vector< std::complex< int16_t >> * > &  rx_buffs,
size_t  rx_size,
Radio::RxFlags out_flags,
long long &  rx_time_ns 
)

◆ RadioRx() [2/3]

int ClientRadioConfig::RadioRx ( size_t  radio_id,
std::vector< std::vector< std::complex< int16_t >>> &  rx_data,
size_t  rx_size,
Radio::RxFlags out_flags,
long long &  rx_time_ns 
)
Here is the caller graph for this function:

◆ RadioRx() [3/3]

int ClientRadioConfig::RadioRx ( size_t  radio_id,
std::vector< void * > &  rx_locs,
size_t  rx_size,
Radio::RxFlags out_flags,
long long &  rx_time_ns 
)

◆ RadioStart()

bool ClientRadioConfig::RadioStart ( )
Here is the call graph for this function:

◆ RadioStop()

void ClientRadioConfig::RadioStop ( )

◆ RadioTx()

int ClientRadioConfig::RadioTx ( size_t  radio_id,
void **  buffs,
size_t  num_samps,
Radio::TxFlags  flags,
long long &  tx_time 
)
Here is the caller graph for this function:

◆ ReadSensors()

void ClientRadioConfig::ReadSensors ( )

Member Data Documentation

◆ cfg_

const Config* const ClientRadioConfig::cfg_
private

◆ num_client_radios_initialized_

std::atomic<size_t> ClientRadioConfig::num_client_radios_initialized_
private

◆ radios_

std::vector<std::unique_ptr<Radio> > ClientRadioConfig::radios_
private

◆ total_antennas_

size_t ClientRadioConfig::total_antennas_
private

◆ total_radios_

size_t ClientRadioConfig::total_radios_
private

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