огшор

Dependencies:   CMSIS_DSP_401 mbed

Fork of fir_f32 by Nikolay Sergeev

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers math_helper.h Source File

math_helper.h

00001 /* ----------------------------------------------------------------------
00002 * Copyright (C) 2010 ARM Limited. All rights reserved.  
00003 *  
00004 * $Date:        29. November 2010  
00005 * $Revision:    V1.0.3  
00006 *  
00007 * Project:      CMSIS DSP Library 
00008 *
00009 * Title:        math_helper.h
00010 * 
00011 *
00012 * Description:  Prototypes of all helper functions required.  
00013 *
00014 * Target Processor: Cortex-M4/Cortex-M3
00015 *  
00016 * Version 1.0.3 2010/11/29 
00017 *    Re-organized the CMSIS folders and updated documentation.  
00018 *   
00019 * Version 1.0.2 2010/11/11  
00020 *    Documentation updated.   
00021 *  
00022 * Version 1.0.1 2010/10/05   
00023 *    Production release and review comments incorporated.  
00024 *  
00025 * Version 1.0.0 2010/09/20   
00026 *    Production release and review comments incorporated.  
00027 *  
00028 * Version 0.0.7  2010/06/10   
00029 *    Misra-C changes done 
00030 * -------------------------------------------------------------------- */
00031  
00032  
00033 #include "arm_math.h"
00034  
00035 #ifndef MATH_HELPER_H
00036 #define MATH_HELPER_H
00037  
00038 float arm_snr_f32(float *pRef, float *pTest,  uint32_t buffSize);  
00039 void arm_float_to_q12_20(float *pIn, q31_t * pOut, uint32_t numSamples);
00040 void arm_provide_guard_bits_q15(q15_t *input_buf, uint32_t blockSize, uint32_t guard_bits);
00041 void arm_provide_guard_bits_q31(q31_t *input_buf, uint32_t blockSize, uint32_t guard_bits);
00042 void arm_float_to_q14(float *pIn, q15_t *pOut, uint32_t numSamples);
00043 void arm_float_to_q29(float *pIn, q31_t *pOut, uint32_t numSamples);
00044 void arm_float_to_q28(float *pIn, q31_t *pOut, uint32_t numSamples);
00045 void arm_float_to_q30(float *pIn, q31_t *pOut, uint32_t numSamples);
00046 void arm_clip_f32(float *pIn, uint32_t numSamples);
00047 uint32_t arm_calc_guard_bits(uint32_t num_adds);
00048 void arm_apply_guard_bits (float32_t * pIn, uint32_t numSamples, uint32_t guard_bits);
00049 uint32_t arm_compare_fixed_q15(q15_t *pIn, q15_t * pOut, uint32_t numSamples);
00050 uint32_t arm_compare_fixed_q31(q31_t *pIn, q31_t *pOut, uint32_t numSamples);
00051 uint32_t arm_calc_2pow(uint32_t guard_bits);
00052 #endif
00053