MSP DSP Library
|
Data Structures | |
struct | msp_cmplx_add_q15_params |
Parameter structure for the Q15 complex vector add functions. More... | |
struct | msp_cmplx_add_iq31_params |
Parameter structure for the IQ31 complex vector add functions. More... | |
struct | msp_cmplx_sub_q15_params |
Parameter structure for the Q15 complex vector subtract functions. More... | |
struct | msp_cmplx_sub_iq31_params |
Parameter structure for the IQ31 complex vector subtract functions. More... | |
struct | msp_cmplx_mpy_q15_params |
Parameter structure for the Q15 complex vector multiply functions. More... | |
struct | msp_cmplx_mpy_iq31_params |
Parameter structure for the IQ31 complex vector multiply functions. More... | |
struct | msp_cmplx_mpy_real_q15_params |
Parameter structure for the Q15 complex vector multiply by real functions. More... | |
struct | msp_cmplx_mpy_real_iq31_params |
Parameter structure for the IQ31 complex vector multiply by real functions. More... | |
struct | msp_cmplx_mac_q15_params |
Parameter structure for the Q15 complex vector multiply and accumulate function. More... | |
struct | msp_cmplx_mac_iq31_params |
Parameter structure for the IQ31 complex vector multiply and accumulate function. More... | |
struct | msp_cmplx_conj_q15_params |
Parameter structure for the Q15 complex vector conjugate function. More... | |
struct | msp_cmplx_conj_iq31_params |
Parameter structure for the IQ31 complex vector conjugate function. More... | |
struct | msp_cmplx_scale_q15_params |
Parameter structure for the Q15 complex vector scale by real function. More... | |
struct | msp_cmplx_scale_iq31_params |
Parameter structure for the IQ31 complex vector scale by real function. More... | |
struct | msp_cmplx_shift_q15_params |
Parameter structure for the Q15 complex vector shift function. More... | |
struct | msp_cmplx_shift_iq31_params |
Parameter structure for the IQ31 complex vector shift function. More... | |
Functions | |
msp_status | msp_cmplx_add_q15 (const msp_cmplx_add_q15_params *params, const _q15 *srcA, const _q15 *srcB, _q15 *dst) |
Addition of two complex source vectors. More... | |
msp_status | msp_cmplx_add_iq31 (const msp_cmplx_add_iq31_params *params, const _iq31 *srcA, const _iq31 *srcB, _iq31 *dst) |
Addition of two complex source vectors. More... | |
msp_status | msp_cmplx_sub_q15 (const msp_cmplx_sub_q15_params *params, const _q15 *srcA, const _q15 *srcB, _q15 *dst) |
Subtraction of two complex source vectors. More... | |
msp_status | msp_cmplx_sub_iq31 (const msp_cmplx_sub_iq31_params *params, const _iq31 *srcA, const _iq31 *srcB, _iq31 *dst) |
Subtraction of two complex source vectors. More... | |
msp_status | msp_cmplx_mpy_q15 (const msp_cmplx_mpy_q15_params *params, const _q15 *srcA, const _q15 *srcB, _q15 *dst) |
Multiplication of two complex source vectors. More... | |
msp_status | msp_cmplx_mpy_iq31 (const msp_cmplx_mpy_iq31_params *params, const _iq31 *srcA, const _iq31 *srcB, _iq31 *dst) |
Multiplication of complex source vectors. More... | |
msp_status | msp_cmplx_mpy_real_q15 (const msp_cmplx_mpy_real_q15_params *params, const _q15 *srcCmplx, const _q15 *srcReal, _q15 *dst) |
Multiplication of complex source vector by real source vector. More... | |
msp_status | msp_cmplx_mpy_real_iq31 (const msp_cmplx_mpy_real_iq31_params *params, const _iq31 *srcCmplx, const _iq31 *srcReal, _iq31 *dst) |
Multiplication of complex source vector by real source vector. More... | |
msp_status | msp_cmplx_mac_q15 (const msp_cmplx_mac_q15_params *params, const _q15 *srcA, const _q15 *srcB, _iq31 *result) |
Multiply and accumulate of complex source vectors. More... | |
msp_status | msp_cmplx_mac_iq31 (const msp_cmplx_mac_iq31_params *params, const _iq31 *srcA, const _iq31 *srcB, _iq31 *result) |
Multiply and accumulate of complex source vectors. More... | |
msp_status | msp_cmplx_conj_q15 (const msp_cmplx_conj_q15_params *params, const _q15 *src, _q15 *dst) |
Conjugation of a source vector. More... | |
msp_status | msp_cmplx_conj_iq31 (const msp_cmplx_conj_iq31_params *params, const _iq31 *src, _iq31 *dst) |
Conjugation of a source vector. More... | |
msp_status | msp_cmplx_scale_q15 (const msp_cmplx_scale_q15_params *params, const _q15 *src, _q15 *dst) |
Scale a complex source vector. More... | |
msp_status | msp_cmplx_scale_iq31 (const msp_cmplx_scale_iq31_params *params, const _iq31 *src, _iq31 *dst) |
Scale a complex source vector. More... | |
msp_status | msp_cmplx_shift_q15 (const msp_cmplx_shift_q15_params *params, const _q15 *src, _q15 *dst) |
Bitwise shift of a complex source vector. More... | |
msp_status | msp_cmplx_shift_iq31 (const msp_cmplx_shift_iq31_params *params, const _iq31 *src, _iq31 *dst) |
Bitwise shift of a complex source vector. More... | |
Functions for performing vector operations on complex data.
msp_status msp_cmplx_add_iq31 | ( | const msp_cmplx_add_iq31_params * | params, |
const _iq31 * | srcA, | ||
const _iq31 * | srcB, | ||
_iq31 * | dst | ||
) |
Addition of two complex source vectors.
dst = complex(srcA) + complex(srcB)
params | Pointer to the complex vector add parameter structure. |
srcA | Pointer to the first complex source data vector. |
srcB | Pointer to the second complex source data vector. |
dst | Pointer to the complex destination data vector. |
msp_status msp_cmplx_add_q15 | ( | const msp_cmplx_add_q15_params * | params, |
const _q15 * | srcA, | ||
const _q15 * | srcB, | ||
_q15 * | dst | ||
) |
Addition of two complex source vectors.
dst = complex(srcA) + complex(srcB)
params | Pointer to the complex vector add parameter structure. |
srcA | Pointer to the first complex source data vector. |
srcB | Pointer to the second complex source data vector. |
dst | Pointer to the complex destination data vector. |
msp_status msp_cmplx_conj_iq31 | ( | const msp_cmplx_conj_iq31_params * | params, |
const _iq31 * | src, | ||
_iq31 * | dst | ||
) |
Conjugation of a source vector.
dst = conj(src)
params | Pointer to the complex vector conjugate parameter structure. |
src | Pointer to the complex source data vector. |
dst | Pointer to the complex destination data vector. |
msp_status msp_cmplx_conj_q15 | ( | const msp_cmplx_conj_q15_params * | params, |
const _q15 * | src, | ||
_q15 * | dst | ||
) |
Conjugation of a source vector.
dst = conj(src)
params | Pointer to the complex vector conjugate parameter structure. |
src | Pointer to the complex source data vector. |
dst | Pointer to the complex destination data vector. |
msp_status msp_cmplx_mac_iq31 | ( | const msp_cmplx_mac_iq31_params * | params, |
const _iq31 * | srcA, | ||
const _iq31 * | srcB, | ||
_iq31 * | result | ||
) |
Multiply and accumulate of complex source vectors.
result = sum(complex(srcA) .* complex(srcB))
params | Pointer to the complex vector multiply and accumulate parameter structure. |
srcA | Pointer to the first complex source data vector. |
srcB | Pointer to the second complex source data vector. |
result | Pointer to the 32-bit result data. |
msp_status msp_cmplx_mac_q15 | ( | const msp_cmplx_mac_q15_params * | params, |
const _q15 * | srcA, | ||
const _q15 * | srcB, | ||
_iq31 * | result | ||
) |
Multiply and accumulate of complex source vectors.
result = sum(complex(srcA) .* complex(srcB))
params | Pointer to the complex vector multiply and accumulate parameter structure. |
srcA | Pointer to the first complex source data vector. |
srcB | Pointer to the second complex source data vector. |
result | Pointer to the 32-bit result data. |
msp_status msp_cmplx_mpy_iq31 | ( | const msp_cmplx_mpy_iq31_params * | params, |
const _iq31 * | srcA, | ||
const _iq31 * | srcB, | ||
_iq31 * | dst | ||
) |
Multiplication of complex source vectors.
dst = complex(srcA) .* complex(srcB)
params | Pointer to the complex vector multiply parameter structure. |
srcA | Pointer to the first complex source data vector. |
srcB | Pointer to the second complex source data vector. |
dst | Pointer to the complex destination data vector. |
msp_status msp_cmplx_mpy_q15 | ( | const msp_cmplx_mpy_q15_params * | params, |
const _q15 * | srcA, | ||
const _q15 * | srcB, | ||
_q15 * | dst | ||
) |
Multiplication of two complex source vectors.
dst = complex(srcA) .* complex(srcB)
params | Pointer to the complex vector multiply parameter structure. |
srcA | Pointer to the first complex source data vector. |
srcB | Pointer to the second complex source data vector. |
dst | Pointer to the complex destination data vector. |
msp_status msp_cmplx_mpy_real_iq31 | ( | const msp_cmplx_mpy_real_iq31_params * | params, |
const _iq31 * | srcCmplx, | ||
const _iq31 * | srcReal, | ||
_iq31 * | dst | ||
) |
Multiplication of complex source vector by real source vector.
dst = real(srcA) .* real(srcB) + imag(srcB)
params | Pointer to the complex vector multiply parameter structure. |
srcCmplx | Pointer to the complex source data vector. |
srcReal | Pointer to the real source data vector. |
dst | Pointer to the complex destination data vector. |
msp_status msp_cmplx_mpy_real_q15 | ( | const msp_cmplx_mpy_real_q15_params * | params, |
const _q15 * | srcCmplx, | ||
const _q15 * | srcReal, | ||
_q15 * | dst | ||
) |
Multiplication of complex source vector by real source vector.
dst = real(srcA) .* real(srcB) + imag(srcB)
params | Pointer to the complex vector multiply parameter structure. |
srcCmplx | Pointer to the complex source data vector. |
srcReal | Pointer to the real source data vector. |
dst | Pointer to the complex destination data vector. |
msp_status msp_cmplx_scale_iq31 | ( | const msp_cmplx_scale_iq31_params * | params, |
const _iq31 * | src, | ||
_iq31 * | dst | ||
) |
Scale a complex source vector.
dst = src * 2^SHIFT * SCALE
params | Pointer to the complex vector scale structure. |
src | Pointer to the complex source data vector. |
dst | Pointer to the complex destination data vector. |
msp_status msp_cmplx_scale_q15 | ( | const msp_cmplx_scale_q15_params * | params, |
const _q15 * | src, | ||
_q15 * | dst | ||
) |
Scale a complex source vector.
dst = src * 2^SHIFT * SCALE
params | Pointer to the complex vector scale structure. |
src | Pointer to the complex source data vector. |
dst | Pointer to the complex destination data vector. |
msp_status msp_cmplx_shift_iq31 | ( | const msp_cmplx_shift_iq31_params * | params, |
const _iq31 * | src, | ||
_iq31 * | dst | ||
) |
Bitwise shift of a complex source vector.
dst = src * 2^SHIFT
params | Pointer to the complex vector shift parameter structure. |
src | Pointer to the complex source data vector. |
dst | Pointer to the complex destination data vector. |
msp_status msp_cmplx_shift_q15 | ( | const msp_cmplx_shift_q15_params * | params, |
const _q15 * | src, | ||
_q15 * | dst | ||
) |
Bitwise shift of a complex source vector.
dst = src * 2^SHIFT
params | Pointer to the complex vector shift parameter structure. |
src | Pointer to the complex source data vector. |
dst | Pointer to the complex destination data vector. |
msp_status msp_cmplx_sub_iq31 | ( | const msp_cmplx_sub_iq31_params * | params, |
const _iq31 * | srcA, | ||
const _iq31 * | srcB, | ||
_iq31 * | dst | ||
) |
Subtraction of two complex source vectors.
dst = complex(srcA) - complex(srcB)
params | Pointer to the complex vector subtraction parameter structure. |
srcA | Pointer to the first complex source data vector. |
srcB | Pointer to the second complex source data vector. |
dst | Pointer to the complex destination data vector. |
msp_status msp_cmplx_sub_q15 | ( | const msp_cmplx_sub_q15_params * | params, |
const _q15 * | srcA, | ||
const _q15 * | srcB, | ||
_q15 * | dst | ||
) |
Subtraction of two complex source vectors.
dst = complex(srcA) - complex(srcB)
params | Pointer to the complex vector subtraction parameter structure. |
srcA | Pointer to the first complex source data vector. |
srcB | Pointer to the second complex source data vector. |
dst | Pointer to the complex destination data vector. |