UHD
003.001.002
|
Namespaces | |
dsp_type1 | |
Classes | |
class | dboard_base |
struct | dboard_eeprom_t |
class | dboard_id_t |
class | dboard_iface |
struct | dboard_iface_special_props_t |
Special properties that differentiate this daughterboard slot. More... | |
class | dboard_manager |
struct | mboard_eeprom_t |
class | mboard_iface |
class | multi_usrp |
class | rx_dboard_base |
struct | subdev_spec_pair_t |
class | subdev_spec_t |
class | tx_dboard_base |
class | xcvr_dboard_base |
Typedefs | |
typedef multi_usrp | single_usrp |
Multi-USRP is a superset of Single-USRP. More... | |
Functions | |
UHD_API bool | operator== (const dboard_id_t &lhs, const dboard_id_t &rhs) |
UHD_API gain_group::sptr | make_gain_group (const dboard_id_t &dboard_id, wax::obj subdev, wax::obj codec, gain_group_policy_t gain_group_policy) |
UHD_API void | verify_rx_subdev_spec (subdev_spec_t &subdev_spec, wax::obj mboard) |
UHD_API void | verify_tx_subdev_spec (subdev_spec_t &subdev_spec, wax::obj mboard) |
UHD_API bool | operator== (const subdev_spec_pair_t &, const subdev_spec_pair_t &) |
overloaded comparison operator for subdev_spec_pair_t More... | |
UHD_API tune_result_t | tune_rx_subdev_and_dsp (wax::obj subdev, wax::obj ddc, const tune_request_t &tune_request) |
UHD_API double | derive_freq_from_rx_subdev_and_dsp (wax::obj subdev, wax::obj ddc) |
UHD_API tune_result_t | tune_tx_subdev_and_dsp (wax::obj subdev, wax::obj duc, const tune_request_t &tune_request) |
UHD_API double | derive_freq_from_tx_subdev_and_dsp (wax::obj subdev, wax::obj duc) |
typedef multi_usrp uhd::usrp::single_usrp |
Multi-USRP is a superset of Single-USRP.
Possible device dboard properties: A dboard has an id, one or more subdevices, and a codec. A dboard is considered to be unidirectional (RX or TX).
Enumerator | |
---|---|
DBOARD_PROP_NAME | |
DBOARD_PROP_SUBDEV | |
DBOARD_PROP_SUBDEV_NAMES | |
DBOARD_PROP_DBOARD_EEPROM | |
DBOARD_PROP_GBOARD_EEPROM | |
DBOARD_PROP_DBOARD_IFACE | |
DBOARD_PROP_CODEC | |
DBOARD_PROP_GAIN_GROUP |
Possible device dsp properties: A dsp is a black box fpga component found between the over-the-wire data and the codec pins.
The host rate can be modified to control resampling. Resampling can take the form of decimation, interpolation, or more complex fractional resampling techniques. As usual, read back the host rate after setting it to get the actual rate that was set (implementation dependent).
A dsp can also shift the digital stream in frequency. Set the shift property and read it back to get actual shift.
Enumerator | |
---|---|
DSP_PROP_NAME | |
DSP_PROP_OTHERS | |
DSP_PROP_STREAM_CMD | |
DSP_PROP_FREQ_SHIFT | |
DSP_PROP_CODEC_RATE | |
DSP_PROP_HOST_RATE |
Possible device mboard properties: The general mboard properties are listed below. Custom properties can be identified with a string and discovered though the others property.
Possible subdev connection types:
A complex subdevice is physically connected to both channels, which may be connected in one of two ways: IQ or QI (swapped).
A real subdevice is only physically connected one channel, either only the I channel or only the Q channel.
Enumerator | |
---|---|
SUBDEV_CONN_COMPLEX_IQ | |
SUBDEV_CONN_COMPLEX_QI | |
SUBDEV_CONN_REAL_I | |
SUBDEV_CONN_REAL_Q |
Possible device subdev properties
Calculate the overall frequency from the combination of dboard IF and DDC shift.
subdev | the dboard subdevice object with properties |
ddc | the mboard dsp object with properties |
Calculate the overall frequency from the combination of dboard IF and DUC shift.
subdev | the dboard subdevice object with properties |
duc | the mboard dsp object with properties |
UHD_API gain_group::sptr uhd::usrp::make_gain_group | ( | const dboard_id_t & | dboard_id, |
wax::obj | subdev, | ||
wax::obj | codec, | ||
gain_group_policy_t | gain_group_policy | ||
) |
Create a gain group that represents the subdevice and its codec.
dboard_id | the dboard id for this subdevice |
subdev | the object with subdevice properties |
codec | the object with codec properties |
gain_group_policy | the policy to use |
UHD_API bool uhd::usrp::operator== | ( | const subdev_spec_pair_t & | , |
const subdev_spec_pair_t & | |||
) |
overloaded comparison operator for subdev_spec_pair_t
UHD_API bool uhd::usrp::operator== | ( | const dboard_id_t & | lhs, |
const dboard_id_t & | rhs | ||
) |
Comparator operator overloaded for dboard ids. The boost::equality_comparable provides the !=.
lhs | the dboard id to the left of the operator |
rhs | the dboard id to the right of the operator |
UHD_API tune_result_t uhd::usrp::tune_rx_subdev_and_dsp | ( | wax::obj | subdev, |
wax::obj | ddc, | ||
const tune_request_t & | tune_request | ||
) |
Tune a rx chain to the desired frequency: The IF of the subdevice is set as close as possible to the given target frequency + the LO offset (when applicable). The ddc cordic is setup to bring the IF down to baseband.
subdev | the dboard subdevice object with properties |
ddc | the mboard dsp object with properties |
tune_request | tune request instructions |
UHD_API tune_result_t uhd::usrp::tune_tx_subdev_and_dsp | ( | wax::obj | subdev, |
wax::obj | duc, | ||
const tune_request_t & | tune_request | ||
) |
Tune a tx chain to the desired frequency: The IF of the subdevice is set as close as possible to the given target frequency + the LO offset (when applicable). The duc cordic is setup to bring the baseband up to IF.
subdev | the dboard subdevice object with properties |
duc | the mboard dsp object with properties |
tune_request | tune request instructions |
UHD_API void uhd::usrp::verify_rx_subdev_spec | ( | subdev_spec_t & | subdev_spec, |
wax::obj | mboard | ||
) |
Verify the rx subdevice specification. If the subdev spec if empty, automatically fill it.
subdev_spec | the subdev spec to verify/fill |
mboard | the motherboard properties object |
exception | when the subdev spec is invalid |
UHD_API void uhd::usrp::verify_tx_subdev_spec | ( | subdev_spec_t & | subdev_spec, |
wax::obj | mboard | ||
) |
Verify the tx subdevice specification. If the subdev spec if empty, automatically fill it.
subdev_spec | the subdev spec to verify/fill |
mboard | the motherboard properties object |
exception | when the subdev spec is invalid |