TM STM32F4xx Libraries  v1.0.0
Libraries for STM32F4xx devices from Tilen Majerle
tm_stm32f4_dac.h
1 
30 #ifndef TM_DAC_H
31 #define TM_DAC_H 110
32 
33 /* C++ detection */
34 #ifdef __cplusplus
35 extern C {
36 #endif
37 
83 #include "stm32f4xx.h"
84 #include "stm32f4xx_dac.h"
85 #include "defines.h"
86 #include "tm_stm32f4_gpio.h"
87 
97 typedef enum {
101 
117 void TM_DAC_Init(TM_DAC_Channel_t DACx);
118 
125 void TM_DAC_SetValue(TM_DAC_Channel_t DACx, uint16_t value);
126 
139 /* C++ detection */
140 #ifdef __cplusplus
141 }
142 #endif
143 
144 #endif
TM_DAC_Channel_t
Select which DAC channel.
Definition: tm_stm32f4_dac.h:97
Definition: tm_stm32f4_dac.h:98
void TM_DAC_SetValue(TM_DAC_Channel_t DACx, uint16_t value)
Sets analog value to ADCx.
void TM_DAC_Init(TM_DAC_Channel_t DACx)
Initializes DAC channel and it's pin.
Definition: tm_stm32f4_dac.h:99