Microchip® Advanced Software Framework

arm_fir_example_f32.c File Reference
#include <asf.h>
#include "arm_math.h"
#include "math_helper.h"

Macros

#define BLOCK_SIZE   32
 
#define NUM_TAPS   29
 
#define SNR_THRESHOLD_F32   140.0f
 
#define TEST_LENGTH_SAMPLES   320
 

Functions

int32_t main (void)
 

Variables

uint32_t blockSize = BLOCK_SIZE
 
const float32_t firCoeffs32 [NUM_TAPS]
 
static float32_t firStateF32 [BLOCK_SIZE+NUM_TAPS-1]
 
uint32_t numBlocks = TEST_LENGTH_SAMPLES/BLOCK_SIZE
 
float32_t refOutput [TEST_LENGTH_SAMPLES]
 
float32_t snr
 
float32_t testInput_f32_1kHz_15kHz [TEST_LENGTH_SAMPLES]
 
static float32_t testOutput [TEST_LENGTH_SAMPLES]
 

#define BLOCK_SIZE   32
#define NUM_TAPS   29

Referenced by main().

#define SNR_THRESHOLD_F32   140.0f

Referenced by main().

#define TEST_LENGTH_SAMPLES   320

Referenced by main().

uint32_t blockSize = BLOCK_SIZE
const float32_t firCoeffs32[NUM_TAPS]
Initial value:
= {
-0.0018225230f, -0.0015879294f, +0.0000000000f, +0.0036977508f, +0.0080754303f, +0.0085302217f, -0.0000000000f, -0.0173976984f,
-0.0341458607f, -0.0333591565f, +0.0000000000f, +0.0676308395f, +0.1522061835f, +0.2229246956f, +0.2504960933f, +0.2229246956f,
+0.1522061835f, +0.0676308395f, +0.0000000000f, -0.0333591565f, -0.0341458607f, -0.0173976984f, -0.0000000000f, +0.0085302217f,
+0.0080754303f, +0.0036977508f, +0.0000000000f, -0.0015879294f, -0.0018225230f
}

Referenced by main().

float32_t firStateF32[BLOCK_SIZE+NUM_TAPS-1]
static

Referenced by main().

uint32_t numBlocks = TEST_LENGTH_SAMPLES/BLOCK_SIZE

Referenced by main().

float32_t refOutput[TEST_LENGTH_SAMPLES]

Referenced by main().

float32_t snr
float32_t testInput_f32_1kHz_15kHz[TEST_LENGTH_SAMPLES]

Referenced by main().

float32_t testOutput[TEST_LENGTH_SAMPLES]
static