Chirp SonicLib
4.5.2
invn
soniclib
sensor_fw
icu_gpt
shasta_iq_format.h
1
//
2
// Created by rprzybyla on 8/24/2021.
3
//
4
5
#ifndef SHASTA_GPT_SHASTA_MEMORY_H
6
#define SHASTA_GPT_SHASTA_MEMORY_H
7
#include <stdint.h>
8
9
typedef
struct
qi_data
{
// as in Whitney, data is packed with q first. Unlike Whitney, IQ data cannot overflow.
10
// Theoretical abs maximum is about 25klsbs
11
int16_t q;
12
int16_t i;
13
}
qi_t
;
14
15
#define IQ_SAMPLES_MAX 356
// 5.1m at 95kHz and ODR=4
16
#define MEAS_QUEUE_MAX_MEAS (2)
17
#define IQ_OUTPUT_NORMAL (0)
// normal qi_t (Q,I) pairs
18
#define IQ_OUTPUT_MAG_THRESH (1)
// magnitude,threshold pairs
19
#define IQ_OUTPUT_MAG (2)
// uint16_t magnitude, half length of normal trace
20
21
#endif
// SHASTA_GPT_SHASTA_MEMORY_H
qi_data
Definition:
shasta_iq_format.h:9
Generated by
1.9.1