|
OBECA Receive Process
|
Interface to LimeSDR via LimeSuite. More...
#include <LimeSdrReader.h>
Public Member Functions | |
| LimeSdrReader (const libconfig::Config &cfg) | |
| Default constructor. More... | |
| virtual | ~LimeSdrReader () |
| Default destructor. | |
| bool | init (uint8_t device_index, const char *sample_file, const char *write_sample_file) |
| Initializes the SDR interface and creates a ring buffer according to the params from Cfg. | |
| bool | setSampleRate (unsigned sample_rate) |
| Adjust the sample rate. | |
| bool | tune (uint32_t frequency, uint32_t sample_rate, uint32_t bandwidth, double gain, const std::string &antenna) |
| Tune the SDR to the desired frequency, and set gain, filter and antenna parameters. | |
| void | start () |
| Start reading samples from the SDR. | |
| void | stop () |
| Stop reading samples from the SDR. | |
| void | clear_buffer () |
| Clear all samples from the rx buffers. | |
| int | getSamples (cf_t *data, uint32_t nsamples, srslte_timestamp_t *rx_time) |
| Store nsamples count samples into the buffer at data. More... | |
| double | get_sample_rate () |
| Get current sample rate. | |
| double | get_frequency () |
| Get current center frequency. | |
| unsigned | get_filter_bw () |
| Get current filter bandwidth. | |
| double | get_gain () |
| Get current gain. | |
| double | get_buffer_level () |
| Get current ringbuffer level (0 = empty . More... | |
| std::string | get_antenna () |
| Get current antenna port. | |
| uint32_t | rssi () |
| Get RSSI estimate (disabled at the moment) | |
Interface to LimeSDR via LimeSuite.
Sets up the SDR, reads samples from it, and handles a ringbuffer for the received samples.
Definition at line 36 of file LimeSdrReader.h.
|
inlineexplicit |
Default constructor.
| cfg | Config singleton reference |
Definition at line 43 of file LimeSdrReader.h.
|
inline |
Get current ringbuffer level (0 = empty .
. 1 = full)
Definition at line 117 of file LimeSdrReader.h.
| auto LimeSdrReader::getSamples | ( | cf_t * | data, |
| uint32_t | nsamples, | ||
| srslte_timestamp_t * | rx_time | ||
| ) |
Store nsamples count samples into the buffer at data.
| data | Buffer pointer |
| nsamples | sample count |
| rx_time | unused |
Definition at line 306 of file LimeSdrReader.cpp.
1.8.17