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 <devicelimesdrparam.h>
Public Types | |
enum | LimeType { LimeSPI, LimeMini, LimeUSB, LimeUndefined } |
Public Member Functions | |
DeviceLimeSDRParams () | |
bool | open (lms_info_str_t deviceStr) |
void | close () |
lms_device_t * | getDevice () |
~DeviceLimeSDRParams () | |
Public Attributes | |
lms_device_t * | m_dev |
device handle More... | |
uint32_t | m_nbRxChannels |
number of Rx channels (normally 2, we'll see if we really use it...) More... | |
uint32_t | m_nbTxChannels |
number of Tx channels (normally 2, we'll see if we really use it...) More... | |
lms_range_t | m_lpfRangeRx |
Low pass filter range information (Rx side) More... | |
lms_range_t | m_lpfRangeTx |
Low pass filter range information (Tx side) More... | |
lms_range_t | m_loRangeRx |
LO range for Rx. More... | |
lms_range_t | m_loRangeTx |
LO range for Tx. More... | |
lms_range_t | m_srRangeRx |
ADC sample rate range. More... | |
lms_range_t | m_srRangeTx |
DAC sample rate range. More... | |
float | m_sampleRate |
ADC/DAC sample rate. More... | |
int | m_log2OvSRRx |
log2 of Rx oversampling (0..5) More... | |
int | m_log2OvSRTx |
log2 of Tx oversampling (0..5) More... | |
float | m_rxFrequency |
Rx frequency. More... | |
float | m_txFrequency |
Tx frequency. More... | |
LimeType | m_type |
Hardware type. More... | |
Private Member Functions | |
void | getHardwareType (const char *device_str) |
This structure refers to one physical device shared among parties (logical devices represented by the DeviceAPI with single Rx or Tx stream type). It allows storing information on the common resources in one place and is shared among participants. There is only one copy that is constructed by the first participant and destroyed by the last. A participant knows it is the first or last by checking the lists of buddies (Rx + Tx).
Definition at line 32 of file devicelimesdrparam.h.
Enumerator | |
---|---|
LimeSPI | |
LimeMini | |
LimeUSB | |
LimeUndefined |
Definition at line 34 of file devicelimesdrparam.h.
|
inline |
Definition at line 58 of file devicelimesdrparam.h.
|
inline |
Definition at line 101 of file devicelimesdrparam.h.
void DeviceLimeSDRParams::close | ( | ) |
Definition at line 102 of file devicelimesdrparam.cpp.
References m_dev.
Referenced by LimeSDROutput::closeDevice(), LimeSDRInput::closeDevice(), LimeSDROutputPlugin::enumSampleSinks(), and LimeSDRInputPlugin::enumSampleSources().
|
inline |
Definition at line 99 of file devicelimesdrparam.h.
Referenced by LimeSDROutput::acquireChannel(), LimeSDRInput::acquireChannel(), LimeSDROutput::applySettings(), LimeSDRInput::applySettings(), LimeSDROutput::closeDevice(), LimeSDRInput::closeDevice(), LimeSDROutput::handleMessage(), LimeSDRInput::handleMessage(), LimeSDROutput::releaseChannel(), LimeSDRInput::releaseChannel(), LimeSDROutput::start(), LimeSDRInput::start(), LimeSDROutput::webapiFormatDeviceReport(), and LimeSDRInput::webapiFormatDeviceReport().
|
private |
Definition at line 111 of file devicelimesdrparam.cpp.
References LimeMini, LimeSPI, LimeUndefined, LimeUSB, and m_type.
Referenced by open().
bool DeviceLimeSDRParams::open | ( | lms_info_str_t | deviceStr | ) |
Opens and initialize the device and obtain information (# channels, ranges, ...)
Definition at line 21 of file devicelimesdrparam.cpp.
References getHardwareType(), m_dev, m_loRangeRx, m_loRangeTx, m_lpfRangeRx, m_lpfRangeTx, m_nbRxChannels, m_nbTxChannels, m_srRangeRx, m_srRangeTx, and m_type.
Referenced by LimeSDROutputPlugin::enumSampleSinks(), LimeSDRInputPlugin::enumSampleSources(), LimeSDROutput::openDevice(), and LimeSDRInput::openDevice().
lms_device_t* DeviceLimeSDRParams::m_dev |
device handle
Definition at line 42 of file devicelimesdrparam.h.
int DeviceLimeSDRParams::m_log2OvSRRx |
log2 of Rx oversampling (0..5)
Definition at line 52 of file devicelimesdrparam.h.
Referenced by LimeSDRInput::applySettings(), and LimeSDRInput::getHWLog2Decim().
int DeviceLimeSDRParams::m_log2OvSRTx |
log2 of Tx oversampling (0..5)
Definition at line 53 of file devicelimesdrparam.h.
Referenced by LimeSDROutput::applySettings(), and LimeSDROutput::getHWLog2Interp().
lms_range_t DeviceLimeSDRParams::m_loRangeRx |
LO range for Rx.
Definition at line 47 of file devicelimesdrparam.h.
Referenced by LimeSDRInput::getLORange(), and open().
lms_range_t DeviceLimeSDRParams::m_loRangeTx |
LO range for Tx.
Definition at line 48 of file devicelimesdrparam.h.
Referenced by LimeSDROutput::getLORange(), and open().
lms_range_t DeviceLimeSDRParams::m_lpfRangeRx |
Low pass filter range information (Rx side)
Definition at line 45 of file devicelimesdrparam.h.
Referenced by LimeSDRInput::getLPRange(), and open().
lms_range_t DeviceLimeSDRParams::m_lpfRangeTx |
Low pass filter range information (Tx side)
Definition at line 46 of file devicelimesdrparam.h.
Referenced by LimeSDROutput::getLPRange(), and open().
uint32_t DeviceLimeSDRParams::m_nbRxChannels |
number of Rx channels (normally 2, we'll see if we really use it...)
Definition at line 43 of file devicelimesdrparam.h.
Referenced by LimeSDRInputPlugin::enumSampleSources(), open(), and LimeSDRInput::openDevice().
uint32_t DeviceLimeSDRParams::m_nbTxChannels |
number of Tx channels (normally 2, we'll see if we really use it...)
Definition at line 44 of file devicelimesdrparam.h.
Referenced by LimeSDROutputPlugin::enumSampleSinks(), open(), and LimeSDROutput::openDevice().
float DeviceLimeSDRParams::m_rxFrequency |
Rx frequency.
Definition at line 54 of file devicelimesdrparam.h.
float DeviceLimeSDRParams::m_sampleRate |
ADC/DAC sample rate.
Definition at line 51 of file devicelimesdrparam.h.
Referenced by LimeSDROutput::applySettings(), and LimeSDRInput::applySettings().
lms_range_t DeviceLimeSDRParams::m_srRangeRx |
ADC sample rate range.
Definition at line 49 of file devicelimesdrparam.h.
Referenced by LimeSDRInput::getSRRange(), and open().
lms_range_t DeviceLimeSDRParams::m_srRangeTx |
DAC sample rate range.
Definition at line 50 of file devicelimesdrparam.h.
Referenced by LimeSDROutput::getSRRange(), and open().
float DeviceLimeSDRParams::m_txFrequency |
Tx frequency.
Definition at line 55 of file devicelimesdrparam.h.
LimeType DeviceLimeSDRParams::m_type |
Hardware type.
Definition at line 56 of file devicelimesdrparam.h.
Referenced by LimeSDROutput::applySettings(), LimeSDRInput::applySettings(), getHardwareType(), LimeSDROutput::getLimeType(), LimeSDRInput::getLimeType(), LimeSDROutput::handleMessage(), LimeSDRInput::handleMessage(), and open().