diff --git a/cmake/Modules/FindLibPerseus.cmake b/cmake/Modules/FindLibPerseus.cmake new file mode 100644 index 000000000..0a779e805 --- /dev/null +++ b/cmake/Modules/FindLibPerseus.cmake @@ -0,0 +1,28 @@ +if(NOT LIBPERSEUS_FOUND) + + pkg_check_modules (LIBPERSEUS_PKG libperseus) + find_path(LIBPERSEUS_INCLUDE_DIR NAMES perseus-sdr.h + PATHS + ${LIBPERSEUS_PKG_INCLUDE_DIRS} + /usr/include + /usr/local/include + ) + + find_library(LIBPERSEUS_LIBRARIES NAMES perseus-sdr + PATHS + ${LIBPERSEUS_PKG_LIBRARY_DIRS} + /usr/lib + /usr/local/lib + ) + + if(LIBPERSEUS_INCLUDE_DIR AND LIBPERSEUS_LIBRARIES) + set(LIBPERSEUS_FOUND TRUE CACHE INTERNAL "libperseus found") + message(STATUS "Found libperseus: ${LIBPERSEUS_INCLUDE_DIR}, ${LIBPERSEUS_LIBRARIES}") + else(LIBPERSEUS_INCLUDE_DIR AND LIBPERSEUS_LIBRARIES) + set(LIBPERSEUS_FOUND FALSE CACHE INTERNAL "libperseus found") + message(STATUS "libperseus not found.") + endif(LIBPERSEUS_INCLUDE_DIR AND LIBPERSEUS_LIBRARIES) + + mark_as_advanced(LIBPERSEUS_INCLUDE_DIR LIBPERSEUS_LIBRARIES) + +endif(NOT LIBPERSEUS_FOUND) diff --git a/plugins/samplesource/perseus/perseusgui.ui b/plugins/samplesource/perseus/perseusgui.ui new file mode 100644 index 000000000..341a2e2f4 --- /dev/null +++ b/plugins/samplesource/perseus/perseusgui.ui @@ -0,0 +1,403 @@ + + + PerseusGui + + + + 0 + 0 + 324 + 132 + + + + + 0 + 0 + + + + + 320 + 132 + + + + + Sans Serif + 9 + + + + AirspyHF + + + + 3 + + + 2 + + + 2 + + + 2 + + + 2 + + + + + 4 + + + + + + + + + start/stop acquisition + + + + + + + :/play.png + :/stop.png:/play.png + + + + + + + Toggle record I/Q samples from device + + + + + + + :/record_off.png:/record_off.png + + + + + + + + + + + I/Q sample rate kS/s + + + 00000k + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + + + + + + + Qt::Horizontal + + + + 0 + 0 + + + + + + + + + 0 + 0 + + + + + 32 + 16 + + + + + DejaVu Sans Mono + 20 + + + + PointingHandCursor + + + Qt::StrongFocus + + + Tuner center frequency in kHz + + + + + + + kHz + + + + + + + Qt::Horizontal + + + + 0 + 0 + + + + + + + + + + + + LO ppm + + + + + + + Local Oscillator ppm correction + + + -100 + + + 100 + + + 1 + + + Qt::Horizontal + + + + + + + + 36 + 0 + + + + LO correction value (ppm) + + + -00.0 + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + + + + 24 + 16777215 + + + + Rest LO ppm correction + + + R + + + + + + + + + Qt::Horizontal + + + + + + + + + + 0 + 0 + + + + S/R + + + + + + + + 60 + 0 + + + + + 60 + 16777215 + + + + Device sample rate in MS/s + + + + 0000 + + + + + + + + k + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Dec + + + + + + + + 50 + 16777215 + + + + Decimation factor + + + 0 + + + + 1 + + + + + 2 + + + + + 4 + + + + + + + + + 24 + 24 + + + + Transverter frequency translation dialog + + + X + + + + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + + ValueDial + QWidget +
gui/valuedial.h
+ 1 +
+ + ButtonSwitch + QToolButton +
gui/buttonswitch.h
+
+ + TransverterButton + QPushButton +
gui/transverterbutton.h
+
+
+ + + + +