Functions | |
decimator_instancef_t * | create_decimatorf (int fs, int dec_factor, int tr_width, int blocksz) |
decimator_instancef_t * | create_decimatorf_tap (int fs, int dec_factor, int taps, int blocksz) |
int | decimator_executef (decimator_instancef_t *dec, float *input, int input_len, float *output, int output_len) |
int | decimator_tapnumf (decimator_instancef_t *dec) |
void | decimator_deletef (decimator_instancef_t *dec) |
decimator_instancef_t * create_decimatorf | ( | int | fs, |
int | dec_factor, | ||
int | tr_width, | ||
int | blocksz | ||
) |
Create FIR Decimator intance
[in] | fs | Sampling rate of input signals. |
[in] | dec_factor | Cut off frequency. (Hz) |
[in] | tr_width | Transition frequency band width of Low Pass Filter(Hz) |
[in] | blocksz | Block size to execute filter calcuation in one time. (samples) |
decimator_instancef_t * create_decimatorf_tap | ( | int | fs, |
int | dec_factor, | ||
int | taps, | ||
int | blocksz | ||
) |
Create FIR Decimator intance with Tap size
[in] | fs | Sampling rate of input signals. |
[in] | dec_factor | Cut off frequency. (Hz) |
[in] | taps | Tap size of FIR filter. |
[in] | blocksz | Block size to execute filter calcuation in one time. (samples) |
int decimator_executef | ( | decimator_instancef_t * | dec, |
float * | input, | ||
int | input_len, | ||
float * | output, | ||
int | output_len | ||
) |
Execute Decimation
[in] | dec | Instance of decimation_instancef_t. |
[in] | input | float array of input data. |
[in] | input_len | Length of input array. This size must be multiple of blocksz set by create_decimatorf(). |
[out] | output | float array of output data. |
[in] | output_len | Length of output array. |
int decimator_tapnumf | ( | decimator_instancef_t * | dec | ) |
Delete Decimator instance
[in] | dec | Instance of decimator_instancef_t. |
void decimator_deletef | ( | decimator_instancef_t * | dec | ) |
Delete Decimator instance
[in] | dec | Instance of decimator_instancef_t. |