diff options
| author | Xian Wu <[email protected]> | 2023-12-27 18:41:52 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-12-27 18:41:52 +0800 |
| commit | 6360253c129afcb91d34770cb253eea8d837e66a (patch) | |
| tree | 065167006028882ff4d57208252d1e0ce9f3b4e4 /bsp/synwit/libraries/SWM341_CSL/SWM341_StdPeriph_Driver/SWM341_iofilt.h | |
| parent | 7b4592c2d15bf90c1958bdbc840ea4df3d97cd96 (diff) | |
Synwit MCU 采用新的 BSP 框架,将 BSP 与 libraries 分离 (#8432)
Diffstat (limited to 'bsp/synwit/libraries/SWM341_CSL/SWM341_StdPeriph_Driver/SWM341_iofilt.h')
| -rw-r--r-- | bsp/synwit/libraries/SWM341_CSL/SWM341_StdPeriph_Driver/SWM341_iofilt.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/bsp/synwit/libraries/SWM341_CSL/SWM341_StdPeriph_Driver/SWM341_iofilt.h b/bsp/synwit/libraries/SWM341_CSL/SWM341_StdPeriph_Driver/SWM341_iofilt.h new file mode 100644 index 0000000000..dd08b26b68 --- /dev/null +++ b/bsp/synwit/libraries/SWM341_CSL/SWM341_StdPeriph_Driver/SWM341_iofilt.h @@ -0,0 +1,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__ |
