Microchip® Advanced Software Framework

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

Macros

#define DSP16_COMPLEX_ABS(x_num, data)
 
#define DSP16_COMPLEX_ABS_KERNEL_X_FCT(x_num, data)
 

Functions

void dsp16_vect_complex_abs (dsp16_t *vect1, dsp16_complex_t *vect2, int size)
 16-bit fixed point version of the complex vector absolute function. More...
 
static void dsp16_vect_complex_abs_kernel_x0 (dsp16_t *vect1, dsp16_complex_t *vect2)
 

#define DSP16_COMPLEX_ABS (   x_num,
  data 
)
Value:
temp1 = vect2[x_num].real; \
temp1 = (temp1*temp1) >> DSP16_QB; \
temp2 = vect2[x_num].imag; \
temp2 = (temp2*temp2) >> DSP16_QB; \
vect1[x_num] = dsp16_op_sqrt(temp1 + temp2);
#define DSP16_QB
number of fractional bits
Definition: dsp_types.h:137
A_ALIGNED dsp32_t vect2[VECT2_SIZE]
First input signal.
Definition: convolution_example.c:89
dsp16_t dsp16_op_sqrt(dsp16_t num)
avr32-uc3 16 bit version
Definition: op_dsp16_sqrt_at32uc.c:80
A_ALIGNED dsp32_t vect1[VECT2_SIZE+2 *(VECT3_SIZE-1)+4]
The output buffer.
Definition: convolution_example.c:86

Referenced by dsp16_vect_complex_abs().

#define DSP16_COMPLEX_ABS_KERNEL_X_FCT (   x_num,
  data 
)
Value:
static void TPASTE2(dsp16_vect_complex_abs_kernel_x, x_num)(dsp16_t *vect1, dsp16_complex_t *vect2) \
{ \
S32 temp1, temp2; \
}
#define DSP16_COMPLEX_ABS(x_num, data)
Definition: vect_dsp16_complex_abs.c:46
16-bit complex signed fixed point type
Definition: dsp_types.h:209
int32_t S32
32-bit signed integer.
Definition: compiler.h:217
#define MREPEAT(count, macro, data)
Macro repeat.
Definition: mrepeat.h:67
dsp16_t__ dsp16_t
16-bit signed fixed point type optimized for 32-bit or lower microcontrollers
Definition: dsp_types.h:192
A_ALIGNED dsp32_t vect2[VECT2_SIZE]
First input signal.
Definition: convolution_example.c:89
A_ALIGNED dsp32_t vect1[VECT2_SIZE+2 *(VECT3_SIZE-1)+4]
The output buffer.
Definition: convolution_example.c:86
#define TPASTE2(a, b)
Definition: tpaste.h:61

static void dsp16_vect_complex_abs_kernel_x0 ( dsp16_t vect1,
dsp16_complex_t vect2 
)
static

Referenced by dsp16_vect_complex_abs().