precision-converters-firmware
Macros | Functions
adi_fft.c File Reference

FFT library implementation. More...

#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <errno.h>
#include "adi_fft.h"
#include "adi_fft_windowing.h"
Include dependency graph for adi_fft.c:

Macros

#define ADI_FFT_DC_BINS   10
 
#define ADI_FFT_FUND_BINS   10
 
#define ADI_FFT_HARM_BINS   3
 

Functions

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. More...
 
int adi_fft_update_params (struct adi_fft_init_params *param, struct adi_fft_processing *fft_proc)
 Update the FFT parameters. More...
 
int adi_fft_perform (struct adi_fft_processing *fft_proc, struct adi_fft_measurements *fft_meas)
 Perform the FFT. More...
 

Detailed Description

FFT library implementation.

Copyright (c) 2023 Analog Devices, Inc.

This software is proprietary to Analog Devices, Inc. and its licensors. By using this software you agree to the terms of the associated Analog Devices Software License Agreement.

Macro Definition Documentation

◆ ADI_FFT_DC_BINS

#define ADI_FFT_DC_BINS   10

◆ ADI_FFT_FUND_BINS

#define ADI_FFT_FUND_BINS   10

◆ ADI_FFT_HARM_BINS

#define ADI_FFT_HARM_BINS   3

Function Documentation

◆ adi_fft_init()

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.

Parameters
param[in]- FFT init parameters
fft_proc[in,out]- FFT processing parameters
fft_meas[in,out]- FFT measurements parameters
Returns
0 in case of success, negative error code otherwise

◆ adi_fft_perform()

int adi_fft_perform ( struct adi_fft_processing fft_proc,
struct adi_fft_measurements fft_meas 
)

Perform the FFT.

Parameters
fft_proc[in,out]- FFT processing parameters
fft_meas[in,out]- FFT measurements parameters
Returns
0 in case of success, negative error code otherwise

◆ adi_fft_update_params()

int adi_fft_update_params ( struct adi_fft_init_params param,
struct adi_fft_processing fft_proc 
)

Update the FFT parameters.

Parameters
param[in]- FFT init parameters
fft_proc[in,out]- FFT entry parameters
Returns
none