Microchip® Advanced Software Framework

op_fix_sin.c File Reference
#include "dsp.h"

Macros

#define DSP16_MODULO_1_MASK   (((U16) -1) >> (16 - (DSP16_QB+1)))
 
#define DSP32_MODULO_1_MASK   (((U32) -1) >> (32 - (DSP32_QB+1)))
 

Functions

dsp16_t dsp16_op_kernel_cosfix (dsp16_t angle)
 
dsp16_t dsp16_op_kernel_sinfix (dsp16_t angle)
 
dsp16_t dsp16_op_sin (dsp16_t angle)
 16-bit fixed point version of the sine function. More...
 
dsp32_t dsp32_op_kernel_cosfix (dsp32_t angle)
 
dsp32_t dsp32_op_kernel_sinfix (dsp32_t angle)
 
dsp32_t dsp32_op_sin (dsp32_t angle)
 32-bit fixed point version of the sine function. More...
 

#define DSP16_MODULO_1_MASK   (((U16) -1) >> (16 - (DSP16_QB+1)))

Referenced by dsp16_op_sin().

#define DSP32_MODULO_1_MASK   (((U32) -1) >> (32 - (DSP32_QB+1)))

Referenced by dsp32_op_sin().

dsp16_t dsp16_op_kernel_cosfix ( dsp16_t  angle)

References DSP16_Q, and DSP16_QB.

Referenced by dsp16_op_sin().

dsp16_t dsp16_op_kernel_sinfix ( dsp16_t  angle)

References DSP16_Q, and DSP16_QB.

Referenced by dsp16_op_sin().

dsp32_t dsp32_op_kernel_cosfix ( dsp32_t  angle)

References DSP32_Q, and DSP32_QB.

Referenced by dsp32_op_sin().

dsp32_t dsp32_op_kernel_sinfix ( dsp32_t  angle)

References DSP32_Q, and DSP32_QB.

Referenced by dsp32_op_sin().