Microchip® Advanced Software Framework

vect_dsp32_complex_abs.c File Reference
#include "dsp.h"
#include "preprocessor.h"

Macros

#define DSP32_COMPLEX_ABS(x_num, data)
 
#define DSP32_COMPLEX_ABS_KERNEL_X_FCT(x_num, data)
 

Functions

void dsp32_vect_complex_abs (dsp32_t *vect1, dsp32_complex_t *vect2, int size)
 32-bit fixed point version of the complex vector absolute function. More...
 
static void dsp32_vect_complex_abs_kernel_x0 (dsp32_t *vect1, dsp32_complex_t *vect2)
 

#define DSP32_COMPLEX_ABS (   x_num,
  data 
)
Value:
temp1 = vect2[x_num].real; \
temp1 = (temp1*temp1) >> DSP32_QB; \
temp2 = vect2[x_num].imag; \
temp2 = (temp2*temp2) >> DSP32_QB; \
vect1[x_num] = dsp32_op_sqrt(temp1 + temp2);
A_ALIGNED dsp32_t vect2[SIZE]
The input signal resulting from a multiplication between a cosine and a sine.
Definition: complex_fft_example.c:91
dsp32_t dsp32_op_sqrt(dsp32_t num)
32-bit fixed point version of the square root function.
Definition: op_dsp32_fix_sqrt.c:55
#define DSP32_QB
number of fractional bits
Definition: dsp_types.h:167
A_ALIGNED dsp32_complex_t vect1[SIZE]
The output buffer.
Definition: complex_fft_example.c:88

Referenced by dsp32_vect_complex_abs().

#define DSP32_COMPLEX_ABS_KERNEL_X_FCT (   x_num,
  data 
)
Value:
static void TPASTE2(dsp32_vect_complex_abs_kernel_x, x_num)(dsp32_t *vect1, dsp32_complex_t *vect2) \
{ \
S64 temp1, temp2; \
}
32-bit complex signed fixed point type
Definition: dsp_types.h:226
signed long long int S64
64-bit signed integer.
Definition: compiler.h:221
A_ALIGNED dsp32_t vect2[SIZE]
The input signal resulting from a multiplication between a cosine and a sine.
Definition: complex_fft_example.c:91
#define DSP32_COMPLEX_ABS(x_num, data)
Definition: vect_dsp32_complex_abs.c:46
dsp32_t__ dsp32_t
32-bit signed fixed point type optimized for 32-bit or lower microcontrollers
Definition: dsp_types.h:201
#define MREPEAT(count, macro, data)
Macro repeat.
Definition: mrepeat.h:67
A_ALIGNED dsp32_complex_t vect1[SIZE]
The output buffer.
Definition: complex_fft_example.c:88
#define TPASTE2(a, b)
Definition: tpaste.h:61

static void dsp32_vect_complex_abs_kernel_x0 ( dsp32_t vect1,
dsp32_complex_t vect2 
)
static

Referenced by dsp32_vect_complex_abs().