TMPM4G9  V1.0.0.0
dac.h
Go to the documentation of this file.
1 
13 /*------------------------------------------------------------------------------*/
14 /* Define to prevent recursive inclusion */
15 /*------------------------------------------------------------------------------*/
16 #ifndef __DAC_H
17 #define __DAC_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_DAC_DAxCR_REN_DISABLE ((uint32_t)0x00000000)
87 #define REG_DAC_DAxCR_REN_ENABLE ((uint32_t)0x00000001) /* End of group DAxCR_EN */
92  /* End of group DAxCR */
96 
97 
109 #define DAxREG_DAC_MASK ((uint32_t)0x000000FF) /* End of group DAxREG_DAC */
113  /* End of group DAxREG */
116  /* End of group REG_Exported_define */
120 
121 
122 /*------------------------------------------------------------------------------*/
123 /* Enumerated Type Definition */
124 /*------------------------------------------------------------------------------*/
130 /* no define */
131  /* End of group REG_Exported_define */
135 
136 /*------------------------------------------------------------------------------*/
137 /* Structure Definition */
138 /*------------------------------------------------------------------------------*/ /* End of group REG_Exported_typedef */
148 
149 
150 /*------------------------------------------------------------------------------*/
151 /* Functions */
152 /*------------------------------------------------------------------------------*/
157 /* DAxCR */
160 /* DAxREG */
161 TXZ_Result REG_DAC_DAxREG_set(TSB_DA_TypeDef *p_reg, uint32_t val); /* End of group REG_Exported_functions */
165  /* End of group REG */
169  /* End of group Example */
173 
174 #ifdef __cplusplus
175 }
176 #endif /* __cplusplus */
177 #endif /* __DAC_H */
178 
179 
TXZ_Result REG_DAC_enable(TSB_DA_TypeDef *p_reg)
Set DAC Control Enable.
Definition: dac.c:199
TXZ_Result
Definition: txz_driver_def.h:43
TXZ_Result REG_DAC_DAxREG_set(TSB_DA_TypeDef *p_reg, uint32_t val)
Set Value DAxREG.
Definition: dac.c:162
TXZ_Result REG_DAC_disable(TSB_DA_TypeDef *p_reg)
Set DAC Control Disable.
Definition: dac.c:233
Digital analog converter (DAC)
Definition: TMPM4G6.h:1008