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

Functions

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

Function Documentation

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

Interrupt-mode interface

Parameters
baseFSP peripheral base address
*p_resultSum value returned here
Returns
none.
void FSP_SumQ31 ( 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 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
baseFSP peripheral base address
*p_srcpoints to the input vector
block_sizelength of the input vector
Returns
none.
static void FSP_GetSumIntResultQ31 ( FSP_Type *  base,
float32_t p_result 
)
inlinestatic

Interrupt-mode interface

Parameters
baseFSP peripheral base address
*p_resultSum value returned here
Returns
none.