32 #if !defined(ADI_FFT_MAX_SAMPLES)
33 #define ADI_FFT_MAX_SAMPLES 2048
adi_fft_windowing_type
Definition: adi_fft.h:44
@ RECTANGULAR
Definition: adi_fft.h:46
@ BLACKMAN_HARRIS_7TERM
Definition: adi_fft.h:45
float(* adi_fft_data_to_volt_conv)(int32_t, uint8_t)
Definition: adi_fft.h:40
int adi_fft_init(struct adi_fft_init_params *param, struct adi_fft_processing *fft_proc, struct adi_fft_measurements *fft_meas)
Initialize the FFT structure.
Definition: adi_fft.c:54
#define ADI_FFT_MAX_SAMPLES
Definition: adi_fft.h:33
int32_t(* adi_fft_code_to_straight_bin_conv)(uint32_t, uint8_t)
Definition: adi_fft.h:41
int adi_fft_perform(struct adi_fft_processing *fft_proc, struct adi_fft_measurements *fft_meas)
Perform the FFT.
Definition: adi_fft.c:558
int adi_fft_update_params(struct adi_fft_init_params *param, struct adi_fft_processing *fft_proc)
Update the FFT parameters.
Definition: adi_fft.c:115
FFT windowing functionality headers.
#define ADI_FFT_NUM_OF_TERMS
Definition: adi_fft_windowing.h:26
float vref
Definition: adi_fft.h:52
adi_fft_data_to_volt_conv convert_data_to_volt_without_vref
Definition: adi_fft.h:62
int32_t input_data_full_scale
Definition: adi_fft.h:58
uint16_t samples_count
Definition: adi_fft.h:56
adi_fft_data_to_volt_conv convert_data_to_volt_wrt_vref
Definition: adi_fft.h:64
uint32_t sample_rate
Definition: adi_fft.h:54
adi_fft_code_to_straight_bin_conv convert_code_to_straight_binary
Definition: adi_fft.h:66
int32_t input_data_zero_scale
Definition: adi_fft.h:60
Definition: adi_fft.h:108
uint16_t harmonics_freq[ADI_FFT_NUM_OF_TERMS]
Definition: adi_fft.h:114
uint32_t max_amplitude_LSB
Definition: adi_fft.h:149
float DC
Definition: adi_fft.h:145
float average_bin_noise
Definition: adi_fft.h:137
float max_amplitude
Definition: adi_fft.h:139
int32_t DC_LSB
Definition: adi_fft.h:155
float SFDR_dbc
Definition: adi_fft.h:130
float SNR
Definition: adi_fft.h:124
uint32_t min_amplitude_LSB
Definition: adi_fft.h:151
float pk_spurious_noise
Definition: adi_fft.h:118
float transition_noise_LSB
Definition: adi_fft.h:157
float pk_pk_amplitude
Definition: adi_fft.h:143
float THD
Definition: adi_fft.h:122
uint32_t pk_pk_amplitude_LSB
Definition: adi_fft.h:153
float min_amplitude
Definition: adi_fft.h:141
float SFDR_dbfs
Definition: adi_fft.h:132
float SINAD
Definition: adi_fft.h:128
float fundamental
Definition: adi_fft.h:116
float ENOB
Definition: adi_fft.h:134
float RMS_noise
Definition: adi_fft.h:136
float DR
Definition: adi_fft.h:126
float harmonics_power[ADI_FFT_NUM_OF_TERMS]
Definition: adi_fft.h:110
float transition_noise
Definition: adi_fft.h:147
uint16_t pk_spurious_freq
Definition: adi_fft.h:120
float harmonics_mag_dbfs[ADI_FFT_NUM_OF_TERMS]
Definition: adi_fft.h:112
enum adi_fft_windowing_type window
Definition: adi_fft.h:102
float bin_width
Definition: adi_fft.h:88
adi_fft_data_to_volt_conv cnv_data_to_volt_without_vref
Definition: adi_fft.h:80
int32_t input_data_zero_scale
Definition: adi_fft.h:78
float fft_magnitude[ADI_FFT_MAX_SAMPLES/2]
Definition: adi_fft.h:92
float fft_magnitude_corrected[ADI_FFT_MAX_SAMPLES/2]
Definition: adi_fft.h:94
float vref
Definition: adi_fft.h:72
float noise_bins[ADI_FFT_MAX_SAMPLES/2]
Definition: adi_fft.h:100
adi_fft_code_to_straight_bin_conv cnv_code_to_straight_binary
Definition: adi_fft.h:84
bool fft_done
Definition: adi_fft.h:104
int32_t input_data[ADI_FFT_MAX_SAMPLES]
Definition: adi_fft.h:90
float fft_dB[ADI_FFT_MAX_SAMPLES/2]
Definition: adi_fft.h:96
uint16_t fft_length
Definition: adi_fft.h:86
float fft_input[ADI_FFT_MAX_SAMPLES *2]
Definition: adi_fft.h:98
uint32_t sample_rate
Definition: adi_fft.h:74
int32_t input_data_full_scale
Definition: adi_fft.h:76
adi_fft_data_to_volt_conv cnv_data_to_volt_wrt_vref
Definition: adi_fft.h:82