Calculates the sum of the input vector. Sum is defined as the sum of the elements in the vector. The underlying algorithm is used:
Result = (p_src[0] + p_src[1] + p_src[2] + ... + p_src[block_size-1]);
There are separate functions for floating-point, q31 data types.
|
void | FSP_SumF32 (FSP_Type *base, float32_t *p_src, uint32_t block_size, float32_t *p_result) |
| Sum value of a floating-point vector. More...
|
|
static void | FSP_SumIntF32 (FSP_Type *base, float32_t *p_src, uint32_t block_size) |
| Calculate Sum value of a floating-point vector. More...
|
|
static void | FSP_GetSumIntResultF32 (FSP_Type *base, float32_t *p_result) |
| Get the Sum value of a floating-point vector. More...
|
|
void | FSP_SumQ31 (FSP_Type *base, q31_t *p_src, uint32_t block_size, q31_t *p_result) |
| Sum value of a q31 vector. More...
|
|
static void | FSP_SumIntQ31 (FSP_Type *base, float32_t *p_src, uint32_t block_size) |
| Calculate Sum value of a q31 vector. More...
|
|
static void | FSP_GetSumIntResultQ31 (FSP_Type *base, float32_t *p_result) |
| Get the Sum value of a q31 vector. More...
|
|
void FSP_SumF32 |
( |
FSP_Type * |
base, |
|
|
float32_t * |
p_src, |
|
|
uint32_t |
block_size, |
|
|
float32_t * |
p_result |
|
) |
| |
- Parameters
-
base | FSP peripheral base address |
*p_src | points to the input vector |
block_size | length of the input vector |
*p_result | Sum value returned here |
- Returns
- none.
static void FSP_SumIntF32 |
( |
FSP_Type * |
base, |
|
|
float32_t * |
p_src, |
|
|
uint32_t |
block_size |
|
) |
| |
|
inlinestatic |
Interrupt-mode interface
- Parameters
-
base | FSP peripheral base address |
*p_src | points to the input vector |
block_size | length of the input vector |
- Returns
- none.
static void FSP_GetSumIntResultF32 |
( |
FSP_Type * |
base, |
|
|
float32_t * |
p_result |
|
) |
| |
|
inlinestatic |
Interrupt-mode interface
- Parameters
-
base | FSP peripheral base address |
*p_result | Sum value returned here |
- Returns
- none.
void FSP_SumQ31 |
( |
FSP_Type * |
base, |
|
|
q31_t * |
p_src, |
|
|
uint32_t |
block_size, |
|
|
q31_t * |
p_result |
|
) |
| |
- Parameters
-
base | FSP peripheral base address |
*p_src | points to the input vector |
block_size | length of the input vector |
*p_result | Sum value returned here |
- Returns
- none.
static void FSP_SumIntQ31 |
( |
FSP_Type * |
base, |
|
|
float32_t * |
p_src, |
|
|
uint32_t |
block_size |
|
) |
| |
|
inlinestatic |
Interrupt-mode interface
- Parameters
-
base | FSP peripheral base address |
*p_src | points to the input vector |
block_size | length of the input vector |
- Returns
- none.
static void FSP_GetSumIntResultQ31 |
( |
FSP_Type * |
base, |
|
|
float32_t * |
p_result |
|
) |
| |
|
inlinestatic |
Interrupt-mode interface
- Parameters
-
base | FSP peripheral base address |
*p_result | Sum value returned here |
- Returns
- none.