#include <devicehackrf.h>
Definition at line 25 of file devicehackrf.h.
◆ DeviceHackRF() [1/2]
DeviceHackRF::DeviceHackRF |
( |
| ) |
|
|
protected |
Definition at line 22 of file devicehackrf.cpp.
24 hackrf_error rc = (hackrf_error) hackrf_init();
26 if (rc != HACKRF_SUCCESS) {
27 qCritical(
"DeviceHackRF::open_hackrf: failed to initiate HackRF library %s", hackrf_error_name(rc));
◆ DeviceHackRF() [2/2]
◆ ~DeviceHackRF()
DeviceHackRF::~DeviceHackRF |
( |
| ) |
|
|
protected |
◆ instance()
◆ open_hackrf() [1/2]
hackrf_device * DeviceHackRF::open_hackrf |
( |
int |
sequence | ) |
|
|
static |
◆ open_hackrf() [2/2]
hackrf_device * DeviceHackRF::open_hackrf |
( |
const char *const |
serial | ) |
|
|
static |
Definition at line 49 of file devicehackrf.cpp.
References instance().
52 hackrf_device *hackrf_ptr;
56 rc = (hackrf_error) hackrf_open_by_serial(serial, &hackrf_ptr);
58 if (rc == HACKRF_SUCCESS)
64 qCritical(
"DeviceHackRF::open_hackrf: error #%d: %s", (
int) rc, hackrf_error_name(rc));
static DeviceHackRF & instance()
◆ open_hackrf_from_sequence()
hackrf_device * DeviceHackRF::open_hackrf_from_sequence |
( |
int |
sequence | ) |
|
|
staticprivate |
Definition at line 69 of file devicehackrf.cpp.
References instance().
Referenced by open_hackrf().
71 hackrf_device_list_t *hackrf_devices = hackrf_device_list();
72 hackrf_device *hackrf_ptr;
77 rc = (hackrf_error) hackrf_device_list_open(hackrf_devices, sequence, &hackrf_ptr);
79 if (rc == HACKRF_SUCCESS)
85 qCritical(
"DeviceHackRF::open_hackrf_from_sequence: error #%d: %s", (
int) rc, hackrf_error_name(rc));
static DeviceHackRF & instance()
◆ operator=()
Definition at line 34 of file devicehackrf.h.
34 { (void) other;
return *
this; }
The documentation for this class was generated from the following files: