PlatformIO package of the Teensy core framework compatible with GCC 10 & C++20
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

64 lines
1.9KB

  1. /* ----------------------------------------------------------------------
  2. * Copyright (C) 2010 ARM Limited. All rights reserved.
  3. *
  4. * $Date: 29. November 2010
  5. * $Revision: V1.0.3
  6. *
  7. * Project: CMSIS DSP Library
  8. *
  9. * Title: math_helper.h
  10. *
  11. *
  12. * Description: Prototypes of all helper functions required.
  13. *
  14. * Target Processor: Cortex-M4/Cortex-M3
  15. *
  16. * Version 1.0.3 2010/11/29
  17. * Re-organized the CMSIS folders and updated documentation.
  18. *
  19. * Version 1.0.2 2010/11/11
  20. * Documentation updated.
  21. *
  22. * Version 1.0.1 2010/10/05
  23. * Production release and review comments incorporated.
  24. *
  25. * Version 1.0.0 2010/09/20
  26. * Production release and review comments incorporated.
  27. *
  28. * Version 0.0.7 2010/06/10
  29. * Misra-C changes done
  30. * -------------------------------------------------------------------- */
  31. #include "arm_math.h"
  32. #ifndef MATH_HELPER_H
  33. #define MATH_HELPER_H
  34. #ifdef __cplusplus
  35. extern "C"
  36. {
  37. #endif
  38. float arm_snr_f32(float *pRef, float *pTest, uint32_t buffSize);
  39. void arm_float_to_q12_20(float *pIn, q31_t * pOut, uint32_t numSamples);
  40. void arm_provide_guard_bits_q15(q15_t *input_buf, uint32_t blockSize, uint32_t guard_bits);
  41. void arm_provide_guard_bits_q31(q31_t *input_buf, uint32_t blockSize, uint32_t guard_bits);
  42. void arm_float_to_q14(float *pIn, q15_t *pOut, uint32_t numSamples);
  43. void arm_float_to_q29(float *pIn, q31_t *pOut, uint32_t numSamples);
  44. void arm_float_to_q28(float *pIn, q31_t *pOut, uint32_t numSamples);
  45. void arm_float_to_q30(float *pIn, q31_t *pOut, uint32_t numSamples);
  46. void arm_clip_f32(float *pIn, uint32_t numSamples);
  47. uint32_t arm_calc_guard_bits(uint32_t num_adds);
  48. void arm_apply_guard_bits (float32_t * pIn, uint32_t numSamples, uint32_t guard_bits);
  49. uint32_t arm_compare_fixed_q15(q15_t *pIn, q15_t * pOut, uint32_t numSamples);
  50. uint32_t arm_compare_fixed_q31(q31_t *pIn, q31_t *pOut, uint32_t numSamples);
  51. uint32_t arm_calc_2pow(uint32_t guard_bits);
  52. #ifdef __cplusplus
  53. }
  54. #endif
  55. #endif