Calculates the sum of the squares of the elements in the input vector. The underlying algorithm is used:
Result = p_src[0] * p_src[0] + p_src[1] * p_src[1] + p_src[2] * p_src[2] + ... + p_src[block_size-1] *
p_src[block_size-1];
There are separate functions for floating point, q31 data types.
|
void | FSP_PowerF32 (FSP_Type *base, float32_t *p_src, uint32_t block_size, float32_t *p_result) |
| Sum of the squares of the elements of a floating-point vector. More...
|
|
static void | FSP_PowerIntF32 (FSP_Type *base, float32_t *p_src, uint32_t block_size) |
| Calculate Sum of the squares of the elements of a floating-point vector. More...
|
|
static void | FSP_GetPowerIntResultF32 (FSP_Type *base, float32_t *p_result) |
| Get the Sum of the squares of the elements value of a floating-point vector. More...
|
|
void | FSP_PowerQ31 (FSP_Type *base, q31_t *p_src, uint32_t block_size, q31_t *p_result) |
| Sum of the squares of the elements of a q31 vector. More...
|
|
static void | FSP_PowerIntQ31 (FSP_Type *base, q31_t *p_src, uint32_t block_size) |
| Calculate Sum of the squares of the elements of a q31 vector. More...
|
|
static void | FSP_GetPowerIntResultQ31 (FSP_Type *base, q31_t *p_result) |
| Get the Sum of the squares of the elements value of a q31 vector. More...
|
|
static void | FSP_CorrelationStart (FSP_Type *base, uint32_t corr_cfg, uint8_t x_offset, uint8_t y_offset, const void *p_src_x, const void *p_src_y, const void *p_dst) |
| Correlation of real sequences. More...
|
|
void FSP_PowerF32 |
( |
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 of the squares value returned here |
- Returns
- none.
static void FSP_PowerIntF32 |
( |
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_GetPowerIntResultF32 |
( |
FSP_Type * |
base, |
|
|
float32_t * |
p_result |
|
) |
| |
|
inlinestatic |
Interrupt-mode interface
- Parameters
-
base | FSP peripheral base address |
*p_result | sum of the squares value returned here |
- Returns
- none.
void FSP_PowerQ31 |
( |
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 of the squares value returned here |
- Returns
- none.
static void FSP_PowerIntQ31 |
( |
FSP_Type * |
base, |
|
|
q31_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_GetPowerIntResultQ31 |
( |
FSP_Type * |
base, |
|
|
q31_t * |
p_result |
|
) |
| |
|
inlinestatic |
Interrupt-mode interface
- Parameters
-
base | FSP peripheral base address |
*p_result | sum of the squares value returned here |
- Returns
- none.
static void FSP_CorrelationStart |
( |
FSP_Type * |
base, |
|
|
uint32_t |
corr_cfg, |
|
|
uint8_t |
x_offset, |
|
|
uint8_t |
y_offset, |
|
|
const void * |
p_src_x, |
|
|
const void * |
p_src_y, |
|
|
const void * |
p_dst |
|
) |
| |
|
inlinestatic |
- Parameters
-
base | FSP peripheral base address |
*p_src_x | points to the first input sequence. |
*p_src_y | points to the second input sequence. |
*p_dst | points to the location where the output result is written. |
- Returns
- none.