mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-30 00:00:11 +01:00
34 lines
No EOL
755 B
C
34 lines
No EOL
755 B
C
/** Moving window / Recursive DFT implementation based on HLS
|
|
*
|
|
* @file
|
|
* @author Steffen Vogel <stvogel@eonerc.rwth-aachen.de>
|
|
* @copyright 2015-2016, Steffen Vogel
|
|
* This file is part of S2SS. All Rights Reserved. Proprietary and confidential.
|
|
* Unauthorized copying of this file, via any medium is strictly prohibited.
|
|
**********************************************************************************/
|
|
|
|
#ifndef _DFT_H_
|
|
#define _DFT_H_
|
|
|
|
#include <xilinx/xhls_dft.h>
|
|
|
|
/* Forward declaration */
|
|
struct ip;
|
|
|
|
struct dft {
|
|
XHls_dft inst;
|
|
|
|
int period; /* in samples */
|
|
int num_harmonics;
|
|
float *fharmonics;
|
|
int decimation;
|
|
};
|
|
|
|
int dft_parse(struct ip *c);
|
|
|
|
int dft_init(struct ip *c);
|
|
|
|
void dft_destroy(struct ip *c);
|
|
|
|
|
|
#endif /* _DFT_H_ */ |