GNU Radio 3.3.0 C++ API
|
#include <usrp2_base.h>
Public Member Functions | |
~usrp2_base () | |
std::string | mac_addr () const |
Get USRP2 hardware MAC address. | |
std::string | interface_name () const |
Get interface name used to communicat with USRP2. | |
bool | fpga_master_clock_freq (long *freq) const |
Get USRP2 master clock rate. | |
bool | config_mimo (int flags) |
MIMO configuration. | |
bool | sync_to_pps () |
Set master time to 0 at next PPS rising edge. | |
bool | sync_every_pps (bool enable) |
std::vector< uint32_t > | peek32 (uint32_t addr, uint32_t words) |
Read memory from Wishbone bus as words. | |
bool | poke32 (uint32_t addr, const std::vector< uint32_t > &data) |
Write memory to Wishbone bus as words. | |
virtual bool | start () |
Called by scheduler when starting flowgraph. | |
virtual bool | stop () |
Called by scheduler when stopping flowgraph. | |
virtual int | work (int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)=0 |
Derived class must override this. | |
Protected Member Functions | |
usrp2_base (const char *name, gr_io_signature_sptr input_signature, gr_io_signature_sptr output_signature, const std::string &ifc, const std::string &mac) throw (std::runtime_error) | |
Protected Attributes | |
usrp2::usrp2::sptr | d_u2 |
Base class for all USRP2 blocks
usrp2_base::usrp2_base | ( | const char * | name, |
gr_io_signature_sptr | input_signature, | ||
gr_io_signature_sptr | output_signature, | ||
const std::string & | ifc, | ||
const std::string & | mac | ||
) | throw (std::runtime_error) [protected] |
usrp2_base::~usrp2_base | ( | ) |
bool usrp2_base::config_mimo | ( | int | flags | ) |
MIMO configuration.
bool usrp2_base::fpga_master_clock_freq | ( | long * | freq | ) | const |
Get USRP2 master clock rate.
std::string usrp2_base::interface_name | ( | ) | const |
Get interface name used to communicat with USRP2.
std::string usrp2_base::mac_addr | ( | ) | const |
Get USRP2 hardware MAC address.
std::vector<uint32_t> usrp2_base::peek32 | ( | uint32_t | addr, |
uint32_t | words | ||
) |
Read memory from Wishbone bus as words.
bool usrp2_base::poke32 | ( | uint32_t | addr, |
const std::vector< uint32_t > & | data | ||
) |
Write memory to Wishbone bus as words.
virtual bool usrp2_base::start | ( | ) | [virtual] |
Called by scheduler when starting flowgraph.
Reimplemented from gr_block.
Reimplemented in usrp2_source_base.
virtual bool usrp2_base::stop | ( | ) | [virtual] |
Called by scheduler when stopping flowgraph.
Reimplemented from gr_block.
Reimplemented in usrp2_source_base.
bool usrp2_base::sync_to_pps | ( | ) |
Set master time to 0 at next PPS rising edge.
virtual int usrp2_base::work | ( | int | noutput_items, |
gr_vector_const_void_star & | input_items, | ||
gr_vector_void_star & | output_items | ||
) | [pure virtual] |
Derived class must override this.
Implements gr_sync_block.
Implemented in usrp2_sink_16sc, usrp2_sink_32fc, usrp2_source_16sc, and usrp2_source_32fc.
usrp2::usrp2::sptr usrp2_base::d_u2 [protected] |