#include <cic.h>
Collaboration diagram for SPUC::cic< Numeric >:

Public Member Functions | |
| cic (char n=3) | |
| Constructor. | |
| void | reset () |
| Reset. | |
| void | num_stages (char n) |
| To change the number of stages dynamically. | |
| Numeric | interpolate (Numeric in=0, signed char dump=0) |
| For CIC interpolation, non-zero dump implies new input. | |
| Numeric | decimate (Numeric in, signed char dump) |
| For CIC decimation, non-zero dump implies output required. | |
Protected Attributes | |
| smart_array< Numeric > | diff |
| smart_array< Numeric > | nacc |
| Differentiators. | |
| smart_array< Numeric > | prev |
| Accumulators. | |
| 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.
| Numeric SPUC::cic< Numeric >::decimate | ( | Numeric | in, | |
| signed char | dump | |||
| ) | [inline] |
For CIC decimation, non-zero dump implies output required.
| Numeric SPUC::cic< Numeric >::interpolate | ( | Numeric | in = 0, |
|
| signed char | dump = 0 | |||
| ) | [inline] |
For CIC interpolation, non-zero dump implies new input.
| void SPUC::cic< Numeric >::num_stages | ( | char | n | ) | [inline] |
To change the number of stages dynamically.
| void SPUC::cic< Numeric >::reset | ( | void | ) | [inline] |
Reset.
smart_array<Numeric> SPUC::cic< Numeric >::diff [protected] |
smart_array<Numeric> SPUC::cic< Numeric >::nacc [protected] |
Differentiators.
smart_array<Numeric> SPUC::cic< Numeric >::prev [protected] |
Accumulators.
1.4.7