summaryrefslogtreecommitdiff
path: root/bsp/synwit/libraries/SWM341_CSL/SWM341_StdPeriph_Driver/SWM341_iofilt.h
blob: dd08b26b6808b1dd3e555f833c90dcbbe80ec6f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef __SWM341_IOFILT_H__
#define __SWM341_IOFILT_H__


/* 选择对哪个信号进行滤波 */
#define IOFILT0_PB5     0
#define IOFILT0_PB4     1
#define IOFILT0_PB3     2
#define IOFILT0_PB2     3

#define IOFILT1_PC2     0
#define IOFILT1_PC1     1
#define IOFILT1_PC0     2
#define IOFILT1_PA15    3


#define IOFILT_WIDTH_2      1
#define IOFILT_WIDTH_4      2
#define IOFILT_WIDTH_8      3
#define IOFILT_WIDTH_16     4
#define IOFILT_WIDTH_32     5
#define IOFILT_WIDTH_64     6
#define IOFILT_WIDTH_128    7
#define IOFILT_WIDTH_256    8
#define IOFILT_WIDTH_512    9
#define IOFILT_WIDTH_1024   10
#define IOFILT_WIDTH_2048   11
#define IOFILT_WIDTH_4096   12
#define IOFILT_WIDTH_8192   13
#define IOFILT_WIDTH_16384  14
#define IOFILT_WIDTH_32768  15



void IOFILT_Init(uint32_t IOFILTn, uint32_t signal, uint32_t width);
void IOFILT_Open(uint32_t IOFILTn);
void IOFILT_Close(uint32_t IOFILTn);


#endif // __SWM341_IOFILT_H__