MCUXpresso SDK API Reference Manual  Rev. 0
NXP Semiconductors
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages

Overview

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.

Functions

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...
 

Function Documentation

void FSP_PowerF32 ( FSP_Type *  base,
float32_t p_src,
uint32_t  block_size,
float32_t p_result 
)
Parameters
baseFSP peripheral base address
*p_srcpoints to the input vector
block_sizelength of the input vector
*p_resultsum 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
baseFSP peripheral base address
*p_srcpoints to the input vector
block_sizelength of the input vector
Returns
none.
static void FSP_GetPowerIntResultF32 ( FSP_Type *  base,
float32_t p_result 
)
inlinestatic

Interrupt-mode interface

Parameters
baseFSP peripheral base address
*p_resultsum 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
baseFSP peripheral base address
*p_srcpoints to the input vector
block_sizelength of the input vector
*p_resultsum 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
baseFSP peripheral base address
*p_srcpoints to the input vector
block_sizelength of the input vector
Returns
none.
static void FSP_GetPowerIntResultQ31 ( FSP_Type *  base,
q31_t p_result 
)
inlinestatic

Interrupt-mode interface

Parameters
baseFSP peripheral base address
*p_resultsum 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
baseFSP peripheral base address
*p_src_xpoints to the first input sequence.
*p_src_ypoints to the second input sequence.
*p_dstpoints to the location where the output result is written.
Returns
none.