From abbe14bebb2935b017b980e6fc2bfc5e94052049 Mon Sep 17 00:00:00 2001 From: Arturs Artamonovs Date: Wed, 4 Dec 2024 11:07:17 +0000 Subject: AirSpyHFIQ: read samples from airspyhf and dump those to fc32 file --- Radio/HW/AirSpyHF/src/airspyhf.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'Radio/HW/AirSpyHF/src/airspyhf.c') diff --git a/Radio/HW/AirSpyHF/src/airspyhf.c b/Radio/HW/AirSpyHF/src/airspyhf.c index efacd03..c5ca337 100644 --- a/Radio/HW/AirSpyHF/src/airspyhf.c +++ b/Radio/HW/AirSpyHF/src/airspyhf.c @@ -28,6 +28,7 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSI #define _CRT_SECURE_NO_WARNINGS #endif +#include #include #include #include @@ -55,9 +56,9 @@ typedef int bool; #define SAMPLES_TO_TRANSFER (1024 * 2) #define SERIAL_NUMBER_UNUSED (0) #define FILE_DESCRIPTOR_UNUSED (-1) -#define RAW_BUFFER_COUNT (8) #define AIRSPYHF_SERIAL_SIZE (28) + #define MAX_SAMPLERATE_INDEX (100) #define DEFAULT_SAMPLERATE (768000) @@ -81,15 +82,10 @@ static const char str_prefix_serial_airspyhf[STR_PREFIX_SERIAL_AIRSPYHF_SIZE] = #define IQ_BALANCER_EVAL_SKIP (RAW_BUFFER_COUNT) -#pragma pack(push,1) -typedef struct { - int16_t im; - int16_t re; -} airspyhf_complex_int16_t; -#pragma pack(pop) +/* typedef struct airspyhf_device { libusb_context* usb_context; @@ -136,6 +132,7 @@ typedef struct airspyhf_device airspyhf_complex_float_t *output_buffer; void* ctx; } airspyhf_device_t; +*/ typedef struct flash_config { -- cgit v1.2.3