Filtering Management Task.
Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
#include <stddef.h>
#include <stdio.h>
#include <avr32/io.h>
#include "compiler.h"
#include "filter_task.h"
#include "dsp.h"
#include "conf_demo.h"
Macros | |
#define | FIR_COEF_SIZE 25 |
Functions | |
void | filter_task (void) |
Filter Task Function: More... | |
static void | filter_task_fir (float *vect2, float *vect1, int b_length, float *h, int h_size) |
Local function of filtering through floating point implementation of FIR filter. More... | |
static void | filter_task_fir_fp (dsp32_t *vect2, dsp32_t *vect1, int b_length, dsp32_t *h, int h_size) |
Local function of filtering through fixed point implementation of FIR filter. More... | |
void | filter_task_init (void) |
Filter Task Init Function. More... | |
Variables | |
A_ALIGNED dsp32_t | fir_coef32b [FIR_COEF_SIZE] |
float | fir_coef_fl [FIR_COEF_SIZE] |
dsp16_t | signalin_noise_gui [GUI_BUFFER_LENGTH] |
Reference to Signal In + Noise Signal Buff 16-bit fixed point Format scaled in GUI format for the GUI task. More... | |
volatile float | signalin_noise_remote [GUI_BUFFER_LENGTH] |
Reference to Signal In + Noise Signal Buff in floating point Format scaled for the remote task. More... | |
A_ALIGNED dsp16_t | signalout_fp_gui [GUI_BUFFER_LENGTH] |
Reference to Filtered Signal through 16-bit fixed point Format scaled in GUI format for the GUI task. More... | |
volatile float | signalout_fp_remote [GUI_BUFFER_LENGTH] |
Reference to Filtered Signal through 16-bit fixed point Format scaled for the remote task. More... | |
A_ALIGNED dsp16_t | signalout_fpu_gui [GUI_BUFFER_LENGTH] |
Reference to Filtered Signal through floating point Format scaled in GUI format for the GUI task. More... | |
volatile float | signalout_fpu_remote [GUI_BUFFER_LENGTH] |
Reference to Filtered Signal through floating point Format scaled for the remote task. More... | |
float | w [FIR_COEF_SIZE] |
Floating Point Implementation of FIR Filter. More... | |
dsp32_t | w_fp [FIR_COEF_SIZE] |
Fixed Point Implementation of FIR Filter in 32-bits format. More... | |
#define FIR_COEF_SIZE 25 |
Referenced by filter_task().
void filter_task | ( | void | ) |
Filter Task Function:
References A_ALIGNED, filter_task_fir(), filter_task_fir_fp(), fir_coef32b, fir_coef_fl, FIR_COEF_SIZE, GUI_BUFFER_LENGTH, GUI_SCALE_GAIN_VALUE, GUI_SCALE_OFFSET_VALUE, i, signalin_noise_remote, signalout_fp_gui, signalout_fp_remote, signalout_fpu_gui, and signalout_fpu_remote.
Referenced by main().
|
static |
Local function of filtering through floating point implementation of FIR filter.
Referenced by filter_task().
|
static |
Local function of filtering through fixed point implementation of FIR filter.
Referenced by filter_task().
void filter_task_init | ( | void | ) |
Filter Task Init Function.
Referenced by main().
A_ALIGNED dsp32_t fir_coef32b[FIR_COEF_SIZE] |
Referenced by filter_task().
float fir_coef_fl[FIR_COEF_SIZE] |
Referenced by filter_task().
dsp16_t signalin_noise_gui[GUI_BUFFER_LENGTH] |
Reference to Signal In + Noise Signal Buff 16-bit fixed point Format scaled in GUI format for the GUI task.
volatile float signalin_noise_remote[GUI_BUFFER_LENGTH] |
Reference to Signal In + Noise Signal Buff in floating point Format scaled for the remote task.
A_ALIGNED dsp16_t signalout_fp_gui[GUI_BUFFER_LENGTH] |
Reference to Filtered Signal through 16-bit fixed point Format scaled in GUI format for the GUI task.
Referenced by filter_task(), and gui_task().
volatile float signalout_fp_remote[GUI_BUFFER_LENGTH] |
Reference to Filtered Signal through 16-bit fixed point Format scaled for the remote task.
Referenced by filter_task(), and remote_task().
A_ALIGNED dsp16_t signalout_fpu_gui[GUI_BUFFER_LENGTH] |
Reference to Filtered Signal through floating point Format scaled in GUI format for the GUI task.
Referenced by filter_task(), and gui_task().
volatile float signalout_fpu_remote[GUI_BUFFER_LENGTH] |
Reference to Filtered Signal through floating point Format scaled for the remote task.
Referenced by filter_task(), and remote_task().
float w[FIR_COEF_SIZE] |
Floating Point Implementation of FIR Filter.
Referenced by Adam7_deinterlace(), dsp16_win_black(), dsp16_win_hamm(), dsp16_win_hann(), dsp16_win_welch(), dsp32_win_black(), dsp32_win_hamm(), dsp32_win_hann(), dsp32_win_welch(), and postProcessScanlines().
dsp32_t w_fp[FIR_COEF_SIZE] |
Fixed Point Implementation of FIR Filter in 32-bits format.