1 #ifndef __SWM341_IOFILT_H__
2 #define __SWM341_IOFILT_H__
3 
4 
5 /* 选择对哪个信号进行滤波 */
6 #define IOFILT0_PB5     0
7 #define IOFILT0_PB4     1
8 #define IOFILT0_PB3     2
9 #define IOFILT0_PB2     3
10 
11 #define IOFILT1_PC2     0
12 #define IOFILT1_PC1     1
13 #define IOFILT1_PC0     2
14 #define IOFILT1_PA15    3
15 
16 
17 #define IOFILT_WIDTH_2      1
18 #define IOFILT_WIDTH_4      2
19 #define IOFILT_WIDTH_8      3
20 #define IOFILT_WIDTH_16     4
21 #define IOFILT_WIDTH_32     5
22 #define IOFILT_WIDTH_64     6
23 #define IOFILT_WIDTH_128    7
24 #define IOFILT_WIDTH_256    8
25 #define IOFILT_WIDTH_512    9
26 #define IOFILT_WIDTH_1024   10
27 #define IOFILT_WIDTH_2048   11
28 #define IOFILT_WIDTH_4096   12
29 #define IOFILT_WIDTH_8192   13
30 #define IOFILT_WIDTH_16384  14
31 #define IOFILT_WIDTH_32768  15
32 
33 
34 
35 void IOFILT_Init(uint32_t IOFILTn, uint32_t signal, uint32_t width);
36 void IOFILT_Open(uint32_t IOFILTn);
37 void IOFILT_Close(uint32_t IOFILTn);
38 
39 
40 #endif // __SWM341_IOFILT_H__
41