XCORE SDK
XCORE Software Development Kit
filters_default.h
1 // Copyright 2022 XMOS LIMITED.
2 // This Software is subject to the terms of the XMOS Public Licence: Version 1.
3 
4 #pragma once
5 
6 #include "mic_array/api.h"
7 #include "xs3_math.h"
8 
9 #include <stdint.h>
10 
15 C_API_START
16 
49 #define STAGE1_DEC_FACTOR 32
50 
61 #define STAGE1_TAP_COUNT 256
62 
84 #define STAGE1_WORDS (STAGE1_TAP_COUNT)/2
85 
93 extern const uint32_t stage1_coef[STAGE1_WORDS];
94 
95 
96 
97 
98 
99 
142 #define STAGE2_DEC_FACTOR 6
143 
152 #define STAGE2_TAP_COUNT 65
153 
161 extern const int32_t stage2_coef[STAGE2_TAP_COUNT];
162 
171 extern const right_shift_t stage2_shr;
172 
173 C_API_END
#define STAGE2_TAP_COUNT
Definition: filters_default.h:152
const int32_t stage2_coef[STAGE2_TAP_COUNT]
const uint32_t stage1_coef[STAGE1_WORDS]
#define STAGE1_WORDS
Definition: filters_default.h:84
const right_shift_t stage2_shr
int right_shift_t
A rightwards arithmetic bit-shift.
Definition: xs3_math_types.h:98