|
MSP DSP Library
|
Data Structures | |
| struct | msp_add_q15_params |
| Parameter structure for the Q15 vector add functions. More... | |
| struct | msp_add_iq31_params |
| Parameter structure for the IQ31 vector add functions. More... | |
| struct | msp_sub_q15_params |
| Parameter structure for the Q15 vector subtract functions. More... | |
| struct | msp_sub_iq31_params |
| Parameter structure for the IQ31 vector subtract functions. More... | |
| struct | msp_mpy_q15_params |
| Parameter structure for the Q15 vector multiply functions. More... | |
| struct | msp_mpy_iq31_params |
| Parameter structure for the IQ31 vector multiply functions. More... | |
| struct | msp_mac_q15_params |
| Parameter structure for the Q15 vector multiply and accumulate function. More... | |
| struct | msp_mac_iq31_params |
| Parameter structure for the IQ31 vector multiply and accumulate function. More... | |
| struct | msp_neg_q15_params |
| Parameter structure for the Q15 vector negate function. More... | |
| struct | msp_neg_iq31_params |
| Parameter structure for the IQ31 vector negate function. More... | |
| struct | msp_abs_q15_params |
| Parameter structure for the Q15 vector absolute value function. More... | |
| struct | msp_abs_iq31_params |
| Parameter structure for the IQ31 vector absolute value function. More... | |
| struct | msp_offset_q15_params |
| Parameter structure for the Q15 vector offset function. More... | |
| struct | msp_offset_iq31_params |
| Parameter structure for the vector offset function. More... | |
| struct | msp_scale_q15_params |
| Parameter structure for the Q15 vector scale function. More... | |
| struct | msp_scale_iq31_params |
| Parameter structure for the IQ31 vector scale function. More... | |
| struct | msp_shift_q15_params |
| Parameter structure for the Q15 vector shift function. More... | |
| struct | msp_shift_iq31_params |
| Parameter structure for the IQ31 vector shift function. More... | |
| struct | msp_max_q15_params |
| Parameter structure for the Q15 signed vector maximum function. More... | |
| struct | msp_max_iq31_params |
| Parameter structure for the IQ31 signed vector maximum function. More... | |
| struct | msp_max_uq15_params |
| Parameter structure for the Q15 unsigned vector maximum function. More... | |
| struct | msp_max_uq31_params |
| Parameter structure for the IQ31 unsigned vector maximum function. More... | |
| struct | msp_min_q15_params |
| Parameter structure for the Q15 signed vector minimum function. More... | |
| struct | msp_min_iq31_params |
| Parameter structure for the IQ31 signed vector minimum function. More... | |
| struct | msp_min_uq15_params |
| Parameter structure for the Q15 unsigned vector minimum function. More... | |
| struct | msp_min_uq31_params |
| Parameter structure for the IQ31 unsigned vector minimum function. More... | |
Functions | |
| msp_status | msp_add_q15 (const msp_add_q15_params *params, const _q15 *srcA, const _q15 *srcB, _q15 *dst) |
| Addition of two real source vectors. More... | |
| msp_status | msp_add_iq31 (const msp_add_iq31_params *params, const _iq31 *srcA, const _iq31 *srcB, _iq31 *dst) |
| Addition of two real source vectors. More... | |
| msp_status | msp_sub_q15 (const msp_sub_q15_params *params, const _q15 *srcA, const _q15 *srcB, _q15 *dst) |
| Subtraction of two real source vectors. More... | |
| msp_status | msp_sub_iq31 (const msp_sub_iq31_params *params, const _iq31 *srcA, const _iq31 *srcB, _iq31 *dst) |
| Subtraction of two real source vectors. More... | |
| msp_status | msp_mpy_q15 (const msp_mpy_q15_params *params, const _q15 *srcA, const _q15 *srcB, _q15 *dst) |
| Multiplication of two real source vectors. More... | |
| msp_status | msp_mpy_iq31 (const msp_mpy_iq31_params *params, const _iq31 *srcA, const _iq31 *srcB, _iq31 *dst) |
| Multiplication of two real source vectors. More... | |
| msp_status | msp_mac_q15 (const msp_mac_q15_params *params, const _q15 *srcA, const _q15 *srcB, _iq31 *result) |
| Multiply and accumulate of real source vectors. More... | |
| msp_status | msp_mac_iq31 (const msp_mac_iq31_params *params, const _iq31 *srcA, const _iq31 *srcB, _iq31 *result) |
| Multiply and accumulate of real source vectors. More... | |
| msp_status | msp_neg_q15 (const msp_neg_q15_params *params, const _q15 *src, _q15 *dst) |
| Negation of a source vector. More... | |
| msp_status | msp_neg_iq31 (const msp_neg_iq31_params *params, const _iq31 *src, _iq31 *dst) |
| Negation of a source vector. More... | |
| msp_status | msp_abs_q15 (const msp_abs_q15_params *params, const _q15 *src, _q15 *dst) |
| Absolute value of a real source vector. More... | |
| msp_status | msp_abs_iq31 (const msp_abs_iq31_params *params, const _iq31 *src, _iq31 *dst) |
| Absolute value of a real source vector. More... | |
| msp_status | msp_offset_q15 (const msp_offset_q15_params *params, const _q15 *src, _q15 *dst) |
| Constant offset of a real source vector. More... | |
| msp_status | msp_offset_iq31 (const msp_offset_iq31_params *params, const _iq31 *src, _iq31 *dst) |
| Constant offset of a real source vector. More... | |
| msp_status | msp_scale_q15 (const msp_scale_q15_params *params, const _q15 *src, _q15 *dst) |
| Scale a real source vector. More... | |
| msp_status | msp_scale_iq31 (const msp_scale_iq31_params *params, const _iq31 *src, _iq31 *dst) |
| Scale a real source vector. More... | |
| msp_status | msp_shift_q15 (const msp_shift_q15_params *params, const _q15 *src, _q15 *dst) |
| Bitwise shift of a real source vector. More... | |
| msp_status | msp_shift_iq31 (const msp_shift_iq31_params *params, const _iq31 *src, _iq31 *dst) |
| Bitwise shift of a real source vector. More... | |
| msp_status | msp_max_q15 (const msp_max_q15_params *params, const _q15 *src, _q15 *max, uint16_t *index) |
| Signed maximum of a source vector. More... | |
| msp_status | msp_max_iq31 (const msp_max_iq31_params *params, const _iq31 *src, _iq31 *max, uint16_t *index) |
| Signed maximum of a source vector. More... | |
| msp_status | msp_max_uq15 (const msp_max_uq15_params *params, const _uq15 *src, _uq15 *max, uint16_t *index) |
| Unsigned maximum of a source vector. More... | |
| msp_status | msp_max_uq31 (const msp_max_uq31_params *params, const _uq31 *src, _uq31 *max, uint16_t *index) |
| Unsigned maximum of a source vector. More... | |
| msp_status | msp_min_q15 (const msp_min_q15_params *params, const _q15 *src, _q15 *min, uint16_t *index) |
| Signed minimum of a source vector. More... | |
| msp_status | msp_min_iq31 (const msp_min_iq31_params *params, const _iq31 *src, _iq31 *min, uint16_t *index) |
| Signed minimum of a source vector. More... | |
| msp_status | msp_min_uq15 (const msp_min_uq15_params *params, const _uq15 *src, _uq15 *min, uint16_t *index) |
| Unsigned minimum of a source vector. More... | |
| msp_status | msp_min_uq31 (const msp_min_uq31_params *params, const _uq31 *src, _uq31 *min, uint16_t *index) |
| Unsigned minimum of a source vector. More... | |
Functions for performing vector operations on real data.
| msp_status msp_abs_iq31 | ( | const msp_abs_iq31_params * | params, |
| const _iq31 * | src, | ||
| _iq31 * | dst | ||
| ) |
Absolute value of a real source vector.
dst = |src|| params | Pointer to the vector absolute value parameter structure. |
| src | Pointer to the source data vector. |
| dst | Pointer to the destination data vector. |
| msp_status msp_abs_q15 | ( | const msp_abs_q15_params * | params, |
| const _q15 * | src, | ||
| _q15 * | dst | ||
| ) |
Absolute value of a real source vector.
dst = |src|| params | Pointer to the vector absolute value parameter structure. |
| src | Pointer to the source data vector. |
| dst | Pointer to the destination data vector. |
| msp_status msp_add_iq31 | ( | const msp_add_iq31_params * | params, |
| const _iq31 * | srcA, | ||
| const _iq31 * | srcB, | ||
| _iq31 * | dst | ||
| ) |
Addition of two real source vectors.
dst = srcA + srcB| params | Pointer to the vector add parameter structure. |
| srcA | Pointer to the first source data vector. |
| srcB | Pointer to the second source data vector. |
| dst | Pointer to the destination data vector. |
| msp_status msp_add_q15 | ( | const msp_add_q15_params * | params, |
| const _q15 * | srcA, | ||
| const _q15 * | srcB, | ||
| _q15 * | dst | ||
| ) |
Addition of two real source vectors.
dst = srcA + srcB| params | Pointer to the vector add parameter structure. |
| srcA | Pointer to the first source data vector. |
| srcB | Pointer to the second source data vector. |
| dst | Pointer to the destination data vector. |
| msp_status msp_mac_iq31 | ( | const msp_mac_iq31_params * | params, |
| const _iq31 * | srcA, | ||
| const _iq31 * | srcB, | ||
| _iq31 * | result | ||
| ) |
Multiply and accumulate of real source vectors.
result = sum(srcA .* srcB)| params | Pointer to the vector multiply and accumulate parameter structure. |
| srcA | Pointer to the first source data vector. |
| srcB | Pointer to the second source data vector. |
| result | Pointer to the 32-bit result data. |
| msp_status msp_mac_q15 | ( | const msp_mac_q15_params * | params, |
| const _q15 * | srcA, | ||
| const _q15 * | srcB, | ||
| _iq31 * | result | ||
| ) |
Multiply and accumulate of real source vectors.
result = sum(srcA .* srcB)| params | Pointer to the vector multiply and accumulate parameter structure. |
| srcA | Pointer to the first source data vector. |
| srcB | Pointer to the second source data vector. |
| result | Pointer to the 32-bit result data. |
| msp_status msp_max_iq31 | ( | const msp_max_iq31_params * | params, |
| const _iq31 * | src, | ||
| _iq31 * | max, | ||
| uint16_t * | index | ||
| ) |
Signed maximum of a source vector.
dst = MAX(src)| params | Pointer to the signed vector maximum parameter structure. |
| src | Pointer to the source data vector. |
| max | Pointer to the maximum result vector of size one. |
| index | Pointer to the index result vector of size one. |
| msp_status msp_max_q15 | ( | const msp_max_q15_params * | params, |
| const _q15 * | src, | ||
| _q15 * | max, | ||
| uint16_t * | index | ||
| ) |
Signed maximum of a source vector.
dst = MAX(src)| params | Pointer to the signed vector maximum parameter structure. |
| src | Pointer to the source data vector. |
| max | Pointer to the maximum result vector of size one. |
| index | Pointer to the index result vector of size one. |
| msp_status msp_max_uq15 | ( | const msp_max_uq15_params * | params, |
| const _uq15 * | src, | ||
| _uq15 * | max, | ||
| uint16_t * | index | ||
| ) |
Unsigned maximum of a source vector.
dst = MAX(src)| params | Pointer to the unsigned vector maximum parameter structure. |
| src | Pointer to the source data vector. |
| max | Pointer to the maximum result vector of size one. |
| index | Pointer to the index result vector of size one. |
| msp_status msp_max_uq31 | ( | const msp_max_uq31_params * | params, |
| const _uq31 * | src, | ||
| _uq31 * | max, | ||
| uint16_t * | index | ||
| ) |
Unsigned maximum of a source vector.
dst = MAX(src)| params | Pointer to the unsigned vector maximum parameter structure. |
| src | Pointer to the source data vector. |
| max | Pointer to the maximum result vector of size one. |
| index | Pointer to the index result vector of size one. |
| msp_status msp_min_iq31 | ( | const msp_min_iq31_params * | params, |
| const _iq31 * | src, | ||
| _iq31 * | min, | ||
| uint16_t * | index | ||
| ) |
Signed minimum of a source vector.
dst = MIN(src)| params | Pointer to the signed vector minimum parameter structure. |
| src | Pointer to the source data vector. |
| min | Pointer to the minimum result vector of size one. |
| index | Pointer to the index result vector of size one. |
| msp_status msp_min_q15 | ( | const msp_min_q15_params * | params, |
| const _q15 * | src, | ||
| _q15 * | min, | ||
| uint16_t * | index | ||
| ) |
Signed minimum of a source vector.
dst = MIN(src)| params | Pointer to the signed vector minimum parameter structure. |
| src | Pointer to the source data vector. |
| min | Pointer to the minimum result vector of size one. |
| index | Pointer to the index result vector of size one. |
| msp_status msp_min_uq15 | ( | const msp_min_uq15_params * | params, |
| const _uq15 * | src, | ||
| _uq15 * | min, | ||
| uint16_t * | index | ||
| ) |
Unsigned minimum of a source vector.
dst = MIN(src)| params | Pointer to the unsigned vector minimum parameter structure. |
| src | Pointer to the source data vector. |
| min | Pointer to the minimum result vector of size one. |
| index | Pointer to the index result vector of size one. |
| msp_status msp_min_uq31 | ( | const msp_min_uq31_params * | params, |
| const _uq31 * | src, | ||
| _uq31 * | min, | ||
| uint16_t * | index | ||
| ) |
Unsigned minimum of a source vector.
dst = MIN(src)| params | Pointer to the unsigned vector minimum parameter structure. |
| src | Pointer to the source data vector. |
| min | Pointer to the minimum result vector of size one. |
| index | Pointer to the index result vector of size one. |
| msp_status msp_mpy_iq31 | ( | const msp_mpy_iq31_params * | params, |
| const _iq31 * | srcA, | ||
| const _iq31 * | srcB, | ||
| _iq31 * | dst | ||
| ) |
Multiplication of two real source vectors.
dst = srcA .* srcB| params | Pointer to the vector multiply parameter structure. |
| srcA | Pointer to the first source data vector. |
| srcB | Pointer to the second source data vector. |
| dst | Pointer to the destination data vector. |
| msp_status msp_mpy_q15 | ( | const msp_mpy_q15_params * | params, |
| const _q15 * | srcA, | ||
| const _q15 * | srcB, | ||
| _q15 * | dst | ||
| ) |
Multiplication of two real source vectors.
dst = srcA .* srcB| params | Pointer to the vector multiply parameter structure. |
| srcA | Pointer to the first source data vector. |
| srcB | Pointer to the second source data vector. |
| dst | Pointer to the destination data vector. |
| msp_status msp_neg_iq31 | ( | const msp_neg_iq31_params * | params, |
| const _iq31 * | src, | ||
| _iq31 * | dst | ||
| ) |
Negation of a source vector.
dst = -1 * src| params | Pointer to the vector negate parameter structure. |
| src | Pointer to the source data vector. |
| dst | Pointer to the destination data vector. |
| msp_status msp_neg_q15 | ( | const msp_neg_q15_params * | params, |
| const _q15 * | src, | ||
| _q15 * | dst | ||
| ) |
Negation of a source vector.
dst = -1 * src| params | Pointer to the vector negate parameter structure. |
| src | Pointer to the source data vector. |
| dst | Pointer to the destination data vector. |
| msp_status msp_offset_iq31 | ( | const msp_offset_iq31_params * | params, |
| const _iq31 * | src, | ||
| _iq31 * | dst | ||
| ) |
Constant offset of a real source vector.
dst = src + offset| params | Pointer to the vector offset parameter structure. |
| src | Pointer to the source data vector. |
| dst | Pointer to the destination data vector. |
| msp_status msp_offset_q15 | ( | const msp_offset_q15_params * | params, |
| const _q15 * | src, | ||
| _q15 * | dst | ||
| ) |
Constant offset of a real source vector.
dst = src + offset| params | Pointer to the vector offset parameter structure. |
| src | Pointer to the source data vector. |
| dst | Pointer to the destination data vector. |
| msp_status msp_scale_iq31 | ( | const msp_scale_iq31_params * | params, |
| const _iq31 * | src, | ||
| _iq31 * | dst | ||
| ) |
Scale a real source vector.
dst = src * 2^SHIFT * SCALE| params | Pointer to the vector scale structure. The bitwise shift value must be >=0. |
| src | Pointer to the source data vector. |
| dst | Pointer to the destination data vector. |
| msp_status msp_scale_q15 | ( | const msp_scale_q15_params * | params, |
| const _q15 * | src, | ||
| _q15 * | dst | ||
| ) |
Scale a real source vector.
dst = src * 2^SHIFT * SCALE| params | Pointer to the vector scale structure. The bitwise shift value must be >=0. |
| src | Pointer to the source data vector. |
| dst | Pointer to the destination data vector. |
| msp_status msp_shift_iq31 | ( | const msp_shift_iq31_params * | params, |
| const _iq31 * | src, | ||
| _iq31 * | dst | ||
| ) |
Bitwise shift of a real source vector.
dst = src * 2^SHIFT| params | Pointer to the vector shift parameter structure. |
| src | Pointer to the source data vector. |
| dst | Pointer to the destination data vector. |
| msp_status msp_shift_q15 | ( | const msp_shift_q15_params * | params, |
| const _q15 * | src, | ||
| _q15 * | dst | ||
| ) |
Bitwise shift of a real source vector.
dst = src * 2^SHIFT| params | Pointer to the vector shift parameter structure. |
| src | Pointer to the source data vector. |
| dst | Pointer to the destination data vector. |
| msp_status msp_sub_iq31 | ( | const msp_sub_iq31_params * | params, |
| const _iq31 * | srcA, | ||
| const _iq31 * | srcB, | ||
| _iq31 * | dst | ||
| ) |
Subtraction of two real source vectors.
dst = srcA - srcB| params | Pointer to the vector add parameter structure. |
| srcA | Pointer to the first source data vector. |
| srcB | Pointer to the second source data vector. |
| dst | Pointer to the destination data vector. |
| msp_status msp_sub_q15 | ( | const msp_sub_q15_params * | params, |
| const _q15 * | srcA, | ||
| const _q15 * | srcB, | ||
| _q15 * | dst | ||
| ) |
Subtraction of two real source vectors.
dst = srcA - srcB| params | Pointer to the vector add parameter structure. |
| srcA | Pointer to the first source data vector. |
| srcB | Pointer to the second source data vector. |
| dst | Pointer to the destination data vector. |