SDRAngel
4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
|
#include <devicebladerf2.h>
Public Member Functions | |
DeviceBladeRF2 () | |
~DeviceBladeRF2 () | |
bool | open (const char *serial) |
void | close () |
bladerf * | getDev () |
bool | openRx (int channel) |
bool | openTx (int channel) |
void | closeRx (int channel) |
void | closeTx (int channel) |
void | getFrequencyRangeRx (uint64_t &min, uint64_t &max, int &step) |
void | getFrequencyRangeTx (uint64_t &min, uint64_t &max, int &step) |
void | getSampleRateRangeRx (int &min, int &max, int &step) |
void | getSampleRateRangeTx (int &min, int &max, int &step) |
void | getBandwidthRangeRx (int &min, int &max, int &step) |
void | getBandwidthRangeTx (int &min, int &max, int &step) |
void | getGlobalGainRangeRx (int &min, int &max, int &step) |
void | getGlobalGainRangeTx (int &min, int &max, int &step) |
int | getGainModesRx (const bladerf_gain_modes **) |
void | setBiasTeeRx (bool enable) |
void | setBiasTeeTx (bool enable) |
Static Public Attributes | |
static const unsigned int | blockSize = (1<<14) |
Static Private Member Functions | |
static struct bladerf * | open_bladerf_from_serial (const char *serial) |
Private Attributes | |
bladerf * | m_dev |
int | m_nbRxChannels |
int | m_nbTxChannels |
bool * | m_rxOpen |
bool * | m_txOpen |
Definition at line 26 of file devicebladerf2.h.
DeviceBladeRF2::DeviceBladeRF2 | ( | ) |
Definition at line 26 of file devicebladerf2.cpp.
DeviceBladeRF2::~DeviceBladeRF2 | ( | ) |
void DeviceBladeRF2::close | ( | ) |
Definition at line 86 of file devicebladerf2.cpp.
References m_dev.
Referenced by BladeRF2Output::closeDevice(), and BladeRF2Input::closeDevice().
void DeviceBladeRF2::closeRx | ( | int | channel | ) |
Definition at line 210 of file devicebladerf2.cpp.
References m_dev, m_nbRxChannels, and m_rxOpen.
Referenced by BladeRF2Input::stop().
void DeviceBladeRF2::closeTx | ( | int | channel | ) |
Definition at line 239 of file devicebladerf2.cpp.
References m_dev, m_nbTxChannels, and m_txOpen.
Referenced by BladeRF2Output::start(), and BladeRF2Output::stop().
void DeviceBladeRF2::getBandwidthRangeRx | ( | int & | min, |
int & | max, | ||
int & | step | ||
) |
Definition at line 361 of file devicebladerf2.cpp.
References m_dev.
Referenced by BladeRF2Input::getBandwidthRange(), and BladeRF2Input::webapiFormatDeviceReport().
void DeviceBladeRF2::getBandwidthRangeTx | ( | int & | min, |
int & | max, | ||
int & | step | ||
) |
Definition at line 384 of file devicebladerf2.cpp.
References m_dev.
Referenced by BladeRF2Output::getBandwidthRange(), and BladeRF2Output::webapiFormatDeviceReport().
|
inline |
Definition at line 35 of file devicebladerf2.h.
References leansdr::max(), and leansdr::min().
Referenced by BladeRF2Output::applySettings(), BladeRF2Input::applySettings(), BladeRF2Output::handleMessage(), BladeRF2Input::handleMessage(), BladeRF2Output::start(), BladeRF2Input::start(), BladeRF2Output::stop(), and BladeRF2Input::stop().
Definition at line 268 of file devicebladerf2.cpp.
References m_dev.
Referenced by BladeRF2Input::getFrequencyRange(), and BladeRF2Input::webapiFormatDeviceReport().
Definition at line 291 of file devicebladerf2.cpp.
References m_dev.
Referenced by BladeRF2Output::getFrequencyRange(), and BladeRF2Output::webapiFormatDeviceReport().
int DeviceBladeRF2::getGainModesRx | ( | const bladerf_gain_modes ** | modes | ) |
Definition at line 453 of file devicebladerf2.cpp.
References m_dev.
void DeviceBladeRF2::getGlobalGainRangeRx | ( | int & | min, |
int & | max, | ||
int & | step | ||
) |
Definition at line 407 of file devicebladerf2.cpp.
References m_dev.
Referenced by BladeRF2Input::getGlobalGainRange(), and BladeRF2Input::webapiFormatDeviceReport().
void DeviceBladeRF2::getGlobalGainRangeTx | ( | int & | min, |
int & | max, | ||
int & | step | ||
) |
Definition at line 430 of file devicebladerf2.cpp.
References m_dev.
Referenced by BladeRF2Output::getGlobalGainRange(), and BladeRF2Output::webapiFormatDeviceReport().
void DeviceBladeRF2::getSampleRateRangeRx | ( | int & | min, |
int & | max, | ||
int & | step | ||
) |
Definition at line 314 of file devicebladerf2.cpp.
References m_dev.
Referenced by BladeRF2Input::getSampleRateRange(), and BladeRF2Input::webapiFormatDeviceReport().
void DeviceBladeRF2::getSampleRateRangeTx | ( | int & | min, |
int & | max, | ||
int & | step | ||
) |
Definition at line 337 of file devicebladerf2.cpp.
References m_dev.
Referenced by BladeRF2Output::getSampleRateRange(), and BladeRF2Output::webapiFormatDeviceReport().
bool DeviceBladeRF2::open | ( | const char * | serial | ) |
Definition at line 51 of file devicebladerf2.cpp.
References m_dev, m_nbRxChannels, m_nbTxChannels, m_rxOpen, m_txOpen, and open_bladerf_from_serial().
Referenced by BladeRF2Output::openDevice(), and BladeRF2Input::openDevice().
|
staticprivate |
Definition at line 95 of file devicebladerf2.cpp.
Referenced by open().
bool DeviceBladeRF2::openRx | ( | int | channel | ) |
Definition at line 134 of file devicebladerf2.cpp.
References m_dev, m_nbRxChannels, and m_rxOpen.
Referenced by BladeRF2Input::start().
bool DeviceBladeRF2::openTx | ( | int | channel | ) |
Definition at line 172 of file devicebladerf2.cpp.
References m_dev, m_nbTxChannels, and m_txOpen.
Referenced by BladeRF2Output::start(), and BladeRF2Output::stop().
void DeviceBladeRF2::setBiasTeeRx | ( | bool | enable | ) |
Definition at line 483 of file devicebladerf2.cpp.
References m_dev.
Referenced by BladeRF2Input::applySettings().
void DeviceBladeRF2::setBiasTeeTx | ( | bool | enable | ) |
Definition at line 495 of file devicebladerf2.cpp.
References m_dev.
Referenced by BladeRF2Output::applySettings().
|
static |
Definition at line 54 of file devicebladerf2.h.
Referenced by BladeRF2InputThread::BladeRF2InputThread(), BladeRF2OutputThread::BladeRF2OutputThread(), BladeRF2OutputThread::run(), and BladeRF2InputThread::run().
|
private |
Definition at line 57 of file devicebladerf2.h.
Referenced by close(), closeRx(), closeTx(), getBandwidthRangeRx(), getBandwidthRangeTx(), getFrequencyRangeRx(), getFrequencyRangeTx(), getGainModesRx(), getGlobalGainRangeRx(), getGlobalGainRangeTx(), getSampleRateRangeRx(), getSampleRateRangeTx(), open(), openRx(), openTx(), setBiasTeeRx(), setBiasTeeTx(), and ~DeviceBladeRF2().
|
private |
Definition at line 58 of file devicebladerf2.h.
|
private |
Definition at line 59 of file devicebladerf2.h.
|
private |
Definition at line 60 of file devicebladerf2.h.
Referenced by closeRx(), open(), openRx(), and ~DeviceBladeRF2().
|
private |
Definition at line 61 of file devicebladerf2.h.
Referenced by closeTx(), open(), openTx(), and ~DeviceBladeRF2().