TMPM4G9  V1.0.0.0
dnf.h
Go to the documentation of this file.
1 
13 /*------------------------------------------------------------------------------*/
14 /* Define to prevent recursive inclusion */
15 /*------------------------------------------------------------------------------*/
16 #ifndef __DNF_H
17 #define __DNF_H
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
23 /*------------------------------------------------------------------------------*/
24 /* Includes */
25 /*------------------------------------------------------------------------------*/
26 #include "txz_sample_def.h"
27 
37 /*------------------------------------------------------------------------------*/
38 /* Macro Function */
39 /*------------------------------------------------------------------------------*/
45 /* no define */
46  /* End of group REG_Exported_macro */
50 
51 
52 /*------------------------------------------------------------------------------*/
53 /* Configuration */
54 /*------------------------------------------------------------------------------*/
60 /* no define */
61  /* End of group REG_Exported_define */
65 
66 
67 /*------------------------------------------------------------------------------*/
68 /* Macro Definition */
69 /*------------------------------------------------------------------------------*/
86 #define REG_DNF_NFCKCR_NFCKS_STOP ((uint32_t)0x00000000)
87 #define REG_DNF_NFCKCR_NFCKS_CLOCK_2 ((uint32_t)0x00000001)
88 #define REG_DNF_NFCKCR_NFCKS_CLOCK_4 ((uint32_t)0x00000002)
89 #define REG_DNF_NFCKCR_NFCKS_CLOCK_8 ((uint32_t)0x00000003)
90 #define REG_DNF_NFCKCR_NFCKS_CLOCK_16 ((uint32_t)0x00000004)
91 #define REG_DNF_NFCKCR_NFCKS_CLOCK_32 ((uint32_t)0x00000005)
92 #define REG_DNF_NFCKCR_NFCKS_CLOCK_64 ((uint32_t)0x00000006)
93 #define REG_DNF_NFCKCR_NFCKS_CLOCK_128 ((uint32_t)0x00000007) /* End of group NFCKCR_NFCKS */
97  /* End of group NFCKCR */
101 
102 
114 #define REG_DNF_NFENCR_NFEN10_MASK ((uint32_t)0x00000400)
115 #define REG_DNF_NFENCR_NFEN10_DISABLE ((uint32_t)0x00000000)
116 #define REG_DNF_NFENCR_NFEN10_ENABLE ((uint32_t)0x00000400) /* End of group NFENCR_NFEN10 */
120 
126 #define REG_DNF_NFENCR_NFEN9_MASK ((uint32_t)0x00000200)
127 #define REG_DNF_NFENCR_NFEN9_DISABLE ((uint32_t)0x00000000)
128 #define REG_DNF_NFENCR_NFEN9_ENABLE ((uint32_t)0x00000200) /* End of group NFENCR_NFEN9 */
132 
138 #define REG_DNF_NFENCR_NFEN8_MASK ((uint32_t)0x00000100)
139 #define REG_DNF_NFENCR_NFEN8_DISABLE ((uint32_t)0x00000000)
140 #define REG_DNF_NFENCR_NFEN8_ENABLE ((uint32_t)0x00000100) /* End of group NFENCR_NFEN8 */
144 
150 #define REG_DNF_NFENCR_NFEN7_MASK ((uint32_t)0x00000080)
151 #define REG_DNF_NFENCR_NFEN7_DISABLE ((uint32_t)0x00000000)
152 #define REG_DNF_NFENCR_NFEN7_ENABLE ((uint32_t)0x00000080) /* End of group NFENCR_NFEN7 */
156 
162 #define REG_DNF_NFENCR_NFEN6_MASK ((uint32_t)0x00000040)
163 #define REG_DNF_NFENCR_NFEN6_DISABLE ((uint32_t)0x00000000)
164 #define REG_DNF_NFENCR_NFEN6_ENABLE ((uint32_t)0x00000040) /* End of group NFENCR_NFEN6 */
168 
174 #define REG_DNF_NFENCR_NFEN5_MASK ((uint32_t)0x00000020)
175 #define REG_DNF_NFENCR_NFEN5_DISABLE ((uint32_t)0x00000000)
176 #define REG_DNF_NFENCR_NFEN5_ENABLE ((uint32_t)0x00000020) /* End of group NFENCR_NFEN5 */
180 
186 #define REG_DNF_NFENCR_NFEN4_MASK ((uint32_t)0x00000010)
187 #define REG_DNF_NFENCR_NFEN4_DISABLE ((uint32_t)0x00000000)
188 #define REG_DNF_NFENCR_NFEN4_ENABLE ((uint32_t)0x00000010) /* End of group NFENCR_NFEN4 */
192 
198 #define REG_DNF_NFENCR_NFEN3_MASK ((uint32_t)0x00000008)
199 #define REG_DNF_NFENCR_NFEN3_DISABLE ((uint32_t)0x00000000)
200 #define REG_DNF_NFENCR_NFEN3_ENABLE ((uint32_t)0x00000008) /* End of group NFENCR_NFEN3 */
204 
210 #define REG_DNF_NFENCR_NFEN2_MASK ((uint32_t)0x00000004)
211 #define REG_DNF_NFENCR_NFEN2_DISABLE ((uint32_t)0x00000000)
212 #define REG_DNF_NFENCR_NFEN2_ENABLE ((uint32_t)0x00000004) /* End of group NFENCR_NFEN2 */
216 
222 #define REG_DNF_NFENCR_NFEN1_MASK ((uint32_t)0x00000002)
223 #define REG_DNF_NFENCR_NFEN1_DISABLE ((uint32_t)0x00000000)
224 #define REG_DNF_NFENCR_NFEN1_ENABLE ((uint32_t)0x00000002) /* End of group NFENCR_NFEN1 */
228 
234 #define REG_DNF_NFENCR_NFEN0_MASK ((uint32_t)0x00000001)
235 #define REG_DNF_NFENCR_NFEN0_DISABLE ((uint32_t)0x00000000)
236 #define REG_DNF_NFENCR_NFEN0_ENABLE ((uint32_t)0x00000001) /* End of group NFENCR_NFEN0 */
240  /* End of group NFENCR */
244  /* End of group REG_Exported_define */
248 
249 
250 /*------------------------------------------------------------------------------*/
251 /* Enumerated Type Definition */
252 /*------------------------------------------------------------------------------*/
258 /* no define */
259  /* End of group REG_Exported_define */
263 
264 /*------------------------------------------------------------------------------*/
265 /* Structure Definition */
266 /*------------------------------------------------------------------------------*/
271 /*----------------------------------*/
275 /*----------------------------------*/
276 typedef struct {
277  uint32_t nfcks;
279  uint32_t nfencr;
291 } REG_DNF_t;
292 
293  /* End of group REG_Exported_typedef */
297 
298 
299 /*------------------------------------------------------------------------------*/
300 /* Functions */
301 /*------------------------------------------------------------------------------*/
306 /* DNFCKCR */
307 void REG_DNFCKCR_set(TSB_DNF_TypeDef *p_reg, uint32_t clock);
308 uint32_t REG_DNFCKCR_get(TSB_DNF_TypeDef *p_reg);
309 /* DNFENCR */
310 void REG_DNFENCR_enable(TSB_DNF_TypeDef *p_reg, uint32_t bit);
311 void REG_DNFENCR_disable(TSB_DNF_TypeDef *p_reg, uint32_t bit);
312 uint32_t REG_DNFENCR_get(TSB_DNF_TypeDef *p_reg); /* End of group REG_Exported_functions */
316  /* End of group REG */
320  /* End of group Example */
324 
325 #ifdef __cplusplus
326 }
327 #endif /* __cplusplus */
328 #endif /* __DNF_H */
329 
330 
void REG_DNFENCR_disable(TSB_DNF_TypeDef *p_reg, uint32_t bit)
Set Interrupt Noise Filter Control.
Definition: dnf.c:388
void REG_DNFCKCR_set(TSB_DNF_TypeDef *p_reg, uint32_t clock)
Set Value Noise Filter Clock Select.
Definition: dnf.c:249
uint32_t REG_DNFENCR_get(TSB_DNF_TypeDef *p_reg)
Get the Interrupt Noise Filter Control.
Definition: dnf.c:434
DNF.
Definition: TMPM4G6.h:621
Input control structure definition.
Definition: dnf.h:276
uint32_t nfcks
Definition: dnf.h:277
void REG_DNFENCR_enable(TSB_DNF_TypeDef *p_reg, uint32_t bit)
Set Interrupt Noise Filter Control.
Definition: dnf.c:329
uint32_t REG_DNFCKCR_get(TSB_DNF_TypeDef *p_reg)
Get value Noise Filter Clock Select.
Definition: dnf.c:277
uint32_t nfencr
Definition: dnf.h:279