Functions
digital_filter.c File Reference
#include "digital_filter.h"
#include <math.h>
#include <stdint.h>

Functions

void filter_fft (int dir, int m, float *real, float *imag)
 
void filter_dft (int dir, int len, float *real, float *imag)
 
void filter_fftshift (float *data, int len)
 
void filter_hamming (float *data, int len)
 
void filter_zeroPad (float *data, float *result, int dataLen, int resultLen)
 
void filter_create_fir_lowpass (float *filter_vector, float f_break, int bits, int use_hamming)
 
float filter_run_fir_iteration (float *vector, float *filter, int bits, uint32_t offset)
 
void filter_add_sample (float *buffer, float sample, int bits, uint32_t *offset)
 

Function Documentation

void filter_add_sample ( float *  buffer,
float  sample,
int  bits,
uint32_t *  offset 
)

Add sample to buffer

Parameters
bufferThe buffer to add the sample to
sampleThe sample to add
bitsThe length of the buffer in bits
offsetPointer to the current offset in the buffer. Will be updated in this call and wrapped at the length of this buffer.
void filter_create_fir_lowpass ( float *  filter_vector,
float  f_break,
int  bits,
int  use_hamming 
)
void filter_dft ( int  dir,
int  len,
float *  real,
float *  imag 
)
void filter_fft ( int  dir,
int  m,
float *  real,
float *  imag 
)
void filter_fftshift ( float *  data,
int  len 
)
void filter_hamming ( float *  data,
int  len 
)
float filter_run_fir_iteration ( float *  vector,
float *  filter,
int  bits,
uint32_t  offset 
)
void filter_zeroPad ( float *  data,
float *  result,
int  dataLen,
int  resultLen 
)