PandA-2024.02
Data Structures | Macros | Functions
coef1.cpp File Reference
#include <stdio.h>
#include <stdint.h>
#include <array>
#include <utility>
#include <cmath>
#include <cstddef>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <cassert>
Include dependency graph for coef1.cpp:

Go to the source code of this file.

Data Structures

class  firFixedClass< filter_len >
 

Macros

#define _USE_MATH_DEFINES
 This code is an adaptation of the Shawn's DSP Tutorials. More...
 
#define FILTER_LEN   63
 

Functions

short int __attribute__ ((noinline)) firFixed(short int input)
 
int main (void)
 

Macro Definition Documentation

◆ _USE_MATH_DEFINES

#define _USE_MATH_DEFINES

This code is an adaptation of the Shawn's DSP Tutorials.

In particular, I started from this link. https://sestevenson.wordpress.com/2009/10/08/implementation-of-fir-filtering-in-c-part-2/ The first relevant change is in the initialization of coeffs variable done by exploiting constexpr described by the c++14 standard. The second change is on the number of samples that can be handled by a function call. Here we assume a single sample per function call.

Author
Fabrizio Ferrandi - Politecnico di Milano

Definition at line 9 of file coef1.cpp.

◆ FILTER_LEN

#define FILTER_LEN   63

Definition at line 101 of file coef1.cpp.

Function Documentation

◆ __attribute__()

short int __attribute__ ( (noinline)  )

Definition at line 109 of file coef1.cpp.

◆ main()

int main ( void  )

Definition at line 120 of file coef1.cpp.

References input, output, and read().

Here is the call graph for this function:

Generated on Mon Feb 12 2024 13:03:08 for PandA-2024.02 by doxygen 1.8.13