#include <rf.h>
Definition at line 29 of file rf.h.
◆ rf()
| rf::rf |
( |
double |
sample_rate, |
|
|
double |
center_frequency, |
|
|
double |
gain, |
|
|
double |
bandwidth, |
|
|
const string & |
subdev, |
|
|
const string & |
antenna_mode, |
|
|
const string & |
ref, |
|
|
const string & |
device_args |
|
) |
| |
- Parameters
-
| [in] | sample_rate | RF sampling rate |
| [in] | center_frequency | Frequency center |
| [in] | gain | Reception gain |
| [in] | bandwidth | Received bandwidth |
| [in] | subdev | Subdevice to be used on USRP |
| [in] | antenna_mode | USRP antenna mode |
| [in] | ref | USRP time reference |
| [in] | device_args | USRP arguments such as serial address |
Definition at line 31 of file rf.cpp.
◆ get_samples()
| void rf::get_samples |
( |
vector< complex< float >> * |
buff, |
|
|
double & |
time_first_sample |
|
) |
| |
Get samples from RF device.
- Configure and open receiver stream
- Read samples until buffer is full
- Parameters
-
| [out] | buff | Buffer in which data will be put. Number of samples is given by buffer size. |
| [out] | time_first_sample | Time at which first sample is received |
Definition at line 80 of file rf.cpp.
◆ getCenterFrequency()
| double rf::getCenterFrequency |
( |
| ) |
|
◆ getGain()
◆ getSampleRate()
| double rf::getSampleRate |
( |
| ) |
const |
- Returns
- RF device sampling rate, in Hz
Definition at line 69 of file rf.cpp.
◆ setCenterFrequency()
| void rf::setCenterFrequency |
( |
double |
freq | ) |
|
Change RF device center frequency
- Parameters
-
| [in] | freq | Center frequency in Hz |
Definition at line 141 of file rf.cpp.
◆ setGain()
| void rf::setGain |
( |
double |
gain | ) |
|
Change RF device reception gain
- Parameters
-
Definition at line 153 of file rf.cpp.
◆ setSampleRate()
| void rf::setSampleRate |
( |
double |
rate | ) |
|
Set RF device sampling rate
- Parameters
-
| [in] | rate | Sampling rate in Hz |
Definition at line 126 of file rf.cpp.
◆ antenna_mode
Definition at line 41 of file rf.h.
◆ bandwidth
Definition at line 38 of file rf.h.
◆ center_frequency
| double rf::center_frequency |
|
private |
Definition at line 36 of file rf.h.
◆ device_args
Definition at line 39 of file rf.h.
◆ gain
Definition at line 37 of file rf.h.
◆ ref
Definition at line 42 of file rf.h.
◆ sample_rate
Definition at line 35 of file rf.h.
◆ subdev
Definition at line 40 of file rf.h.
◆ usrp
| uhd::usrp::multi_usrp::sptr rf::usrp |
|
private |
Definition at line 43 of file rf.h.
The documentation for this class was generated from the following files: