#include <cic.h>
Public Member Functions | |
cic (char n=3) | |
Constructor. | |
void | reset () |
Reset. | |
signed long | interpolate (signed long in=0, signed char dump=0) |
For CIC interpolation, non-zero dump implies new input. | |
signed long | decimate (signed long in, signed char dump) |
For CIC decimation, non-zero dump implies output required. | |
void | num_stages (char n) |
To change the number of stages dynamically. | |
Protected Attributes | |
signed long * | nacc |
signed long * | diff |
Accumulators. | |
signed long * | prev |
Differentiators. | |
char | stages |
Previous values. |
Implementation for cascaded integrator comb filters This implementation provides for both decimation and interpolation filtering. Registers are signed long and the default number of stages is 3.
|
Constructor.
|
|
For CIC decimation, non-zero dump implies output required.
|
|
For CIC interpolation, non-zero dump implies new input.
|
|
To change the number of stages dynamically.
|
|
Reset.
|
|
Accumulators.
|
|
|
|
Differentiators.
|
|
Previous values.
|