Bit Reverse Complex Library
mikroC PRO for PIC32 includes a Bit Reverse Complex Library for DSP engine. All routines work with fractional Q15 format.
Library Routines
BitReverseComplex
Prototype |
void BitReverseComplex(int *indata, unsigned int log2N); |
---|---|
Description |
This function does Complex (in-place) Bit Reverse re-organization. |
Parameters |
|
Returns |
Nothing. |
Requires |
Nothing. |
Example |
// 8 pairs of [Re, Im] values int inputSamples[16] = { 0x4000, 0, 0x4000, 0, 0x4000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0}; // Twiddle factors for 8 pairs complex input values. const int Wn[8] = {0x7fff,0, 0x5A82, 0xA57E, 0, 0x8000, 0xA57E, 0xA57E}; unsigned int log2N =3; void main() { FFT(inputSamples, Wn, log2N); BitReverseComplex(inputSamples, log2N); } |
Notes |
None. |
Copyright (c) 2002-2017 mikroElektronika. All rights reserved.
What do you think about this topic ? Send us feedback!
What do you think about this topic ? Send us feedback!