|
#define | DSPLIB_TABLE_OFFSET 2 |
| Offset used to store table size.
|
|
#define | CMPLX_INCREMENT (2) |
| Increment size for complex data.
|
|
#define | CMPLX_REAL(ptr) ((ptr)[0]) |
| Access the real portion of complex data.
|
|
#define | CMPLX_IMAG(ptr) ((ptr)[1]) |
| Access the imaginary portion of complex data.
|
|
#define | _Q15(A) |
| Convert number to Q15 fixed point. More...
|
|
#define | _IQ31(A) |
| Convert number to IQ31 fixed point. More...
|
|
#define | _Q31(A) (_IQ31(A)) |
| Convert number to IQ31 fixed point.
|
|
#define | __saturate(x, min, max) (((x)>(max))?(max):(((x)<(min))?(min):(x))) |
| Saturate input to minimum or maximum value and return value.
|
|
#define | DSPLIB_DATA(var, align) |
| Place data with alignment, when LEA is used data is placed into the shared RAM section.
|
|
|
static _q15 | __saturated_add_q15 (_q15 x, _q15 y) |
| Add Q15 arguments with saturation.
|
|
static _q15 | __saturated_sub_q15 (_q15 x, _q15 y) |
| Subtract Q15 arguments with saturation.
|
|
static _iq31 | __saturated_add_iq31 (_iq31 x, _iq31 y) |
| Add IQ31 arguments with saturation.
|
|
static _iq31 | __saturated_sub_iq31 (_iq31 x, _iq31 y) |
| Subtract IQ31 arguments with saturation.
|
|
static void | msp_checkStatus (msp_status status) |
| Check status flag and loop forever if not MSP_SUCCESS. More...
|
|
static void | msp_benchmarkStart (uint16_t baseAddress, uint8_t res) |
| Start benchmark using Timer_A or Timer_B with SMCLK as the clock source. More...
|
|
static uint32_t | msp_benchmarkStop (uint16_t baseAddress) |
| Stop timer benchmark and return cycle counts. More...
|
|
static int16_t | __q15mpy (int16_t a, int16_t b) |
| Real Q15 multiply with result returned. More...
|
|
static int32_t | __q15mpyl (int16_t a, int16_t b) |
| Real Q15 multiply with 32-bit result returned. More...
|
|
static int32_t | __q31mpy (int32_t a, int32_t b) |
| Real Q31 multiply with result returned. More...
|
|
static void | __q15cmpy (int16_t *aR, int16_t *aI, const int16_t *bR, const int16_t *bI) |
| Complex Q15 multiply with result stored back to a. More...
|
|
static void | __q15iq31cmpy (int32_t *aR, int32_t *aI, const int32_t *bR, const int32_t *bI) |
| Complex IQ31 by IQ31 multiply with result stored back to a. More...
|
|
This file provides common definitions, useful conversion macros and abstracted functions to support the core DSPLib functions. While not all macros and functions in this file are useful outside of DSPLib the main application can use any of them as needed.