Line | |
---|
1 | /* USER CODE BEGIN Header */ |
---|
2 | /** |
---|
3 | ****************************************************************************** |
---|
4 | * @file dac.h |
---|
5 | * @brief This file contains all the function prototypes for |
---|
6 | * the dac.c file |
---|
7 | ****************************************************************************** |
---|
8 | * @attention |
---|
9 | * |
---|
10 | * Copyright (c) 2025 STMicroelectronics. |
---|
11 | * All rights reserved. |
---|
12 | * |
---|
13 | * This software is licensed under terms that can be found in the LICENSE file |
---|
14 | * in the root directory of this software component. |
---|
15 | * If no LICENSE file comes with this software, it is provided AS-IS. |
---|
16 | * |
---|
17 | ****************************************************************************** |
---|
18 | */ |
---|
19 | /* USER CODE END Header */ |
---|
20 | /* Define to prevent recursive inclusion -------------------------------------*/ |
---|
21 | #ifndef __DAC_H__ |
---|
22 | #define __DAC_H__ |
---|
23 | |
---|
24 | #ifdef __cplusplus |
---|
25 | extern "C" { |
---|
26 | #endif |
---|
27 | |
---|
28 | /* Includes ------------------------------------------------------------------*/ |
---|
29 | #include "main.h" |
---|
30 | |
---|
31 | /* USER CODE BEGIN Includes */ |
---|
32 | |
---|
33 | /* USER CODE END Includes */ |
---|
34 | |
---|
35 | extern DAC_HandleTypeDef hdac1; |
---|
36 | |
---|
37 | /* USER CODE BEGIN Private defines */ |
---|
38 | |
---|
39 | #define DAC_RESOLUTION_BIT (12U) |
---|
40 | |
---|
41 | #define DAC_LOAD_I_LIMIT_CHANNEL DAC_CHANNEL_1 |
---|
42 | #define DAC_U_LIMIT_CHANNEL DAC_CHANNEL_2 |
---|
43 | |
---|
44 | /* USER CODE END Private defines */ |
---|
45 | |
---|
46 | void MX_DAC1_Init(void); |
---|
47 | |
---|
48 | /* USER CODE BEGIN Prototypes */ |
---|
49 | |
---|
50 | /* USER CODE END Prototypes */ |
---|
51 | |
---|
52 | #ifdef __cplusplus |
---|
53 | } |
---|
54 | #endif |
---|
55 | |
---|
56 | #endif /* __DAC_H__ */ |
---|
57 | |
---|
Note: See
TracBrowser
for help on using the repository browser.