coef.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /* ----------------------------------------------------------------------
  2. * Project: CMSIS DSP Library
  3. * Title: coef.h
  4. * Description: Parameters for the ML model and filter
  5. *
  6. * $Date: 16 March 2022
  7. *
  8. * Target Processor: Cortex-M and Cortex-A cores
  9. * -------------------------------------------------------------------- */
  10. /*
  11. * Copyright (C) 2010-2022 ARM Limited or its affiliates. All rights reserved.
  12. *
  13. * SPDX-License-Identifier: Apache-2.0
  14. *
  15. * Licensed under the Apache License, Version 2.0 (the License); you may
  16. * not use this file except in compliance with the License.
  17. * You may obtain a copy of the License at
  18. *
  19. * www.apache.org/licenses/LICENSE-2.0
  20. *
  21. * Unless required by applicable law or agreed to in writing, software
  22. * distributed under the License is distributed on an AS IS BASIS, WITHOUT
  23. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  24. * See the License for the specific language governing permissions and
  25. * limitations under the License.
  26. */
  27. #ifndef COEF_H
  28. #define COEF_H
  29. #define NUMTAPS 10
  30. #define AUDIOBUFFER_LENGTH 512
  31. extern const q15_t fir_coefs[NUMTAPS];
  32. extern const q15_t coef_q15[98];
  33. extern const q15_t intercept_q15 ;
  34. extern const int coef_shift;
  35. extern const int intercept_shift;
  36. extern const q15_t window[400];
  37. #endif