iLLD_TC27xC  1.0
IfxVadc_cfg.h
Go to the documentation of this file.
1 /**
2  * \file IfxVadc_cfg.h
3  * \brief Vadc on-chip implementation data
4  * \ingroup IfxLld_Vadc
5  *
6  * \version iLLD_0_1_0_10
7  * \copyright Copyright (c) 2013 Infineon Technologies AG. All rights reserved.
8  *
9  *
10  * IMPORTANT NOTICE
11  *
12  *
13  * Infineon Technologies AG (Infineon) is supplying this file for use
14  * exclusively with Infineon's microcontroller products. This file can be freely
15  * distributed within development tools that are supporting such microcontroller
16  * products.
17  *
18  * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
19  * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
20  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
21  * INFINEON SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL,
22  * OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
23  *
24  */
25 
26 #ifndef IFXVADC_CFG_H
27 #define IFXVADC_CFG_H 1
28 
29 /******************************************************************************/
30 /*----------------------------------Includes----------------------------------*/
31 /******************************************************************************/
32 
33 #include "_Reg/IfxVadc_bf.h"
35 #include "Src/Std/IfxSrc.h"
36 #include "Scu/Std/IfxScuCcu.h"
37 #include "Scu/Std/IfxScuWdt.h"
38 #include "Cpu/Std/IfxCpu.h"
39 
40 /******************************************************************************/
41 /*-----------------------------------Macros-----------------------------------*/
42 /******************************************************************************/
43 
44 /** \brief Number of ADC Groups
45  */
46 #define IFXVADC_NUM_ADC_GROUPS 8
47 
48 /** \brief Number of calibrated ADC Groups
49  */
50 #define IFXVADC_NUM_ADC_CAL_GROUPS 4
51 
52 /** \brief Maximum allowed analog frequency
53  */
54 #define IFXVADC_ANALOG_FREQUENCY_MAX 20000000
55 
56 /** \brief Minimum allowed analog frequency
57  */
58 #define IFXVADC_ANALOG_FREQUENCY_MIN 500000
59 
60 /** \brief Default analog frequency used in initModuleConfig function
61  */
62 #define IFXVADC_DEFAULT_ANALOG_FREQ 20000000
63 
64 /** \brief Number of Conversion request Slots
65  */
66 #define IFXVADC_NUMBER_OF_REQUESTSLOTS 3
67 
68 /** \brief Number of group specific Input Class
69  */
70 #define IFXVADC_NUMBER_OF_INPUTCLASS 2
71 
72 /** \brief Maximum number of configurable bitfields in ACCPROT0 register
73  */
74 #define IFXVADC_MAXIMUM_BITFIELDS_IN_ACCPROT0_REGISTER 32
75 
76 #define IFXVADC_QUEUE_REFILL (1 << IFX_VADC_G_QBUR0_RF_OFF)
77 
78 /** \brief Number of ADC group input classes.
79  */
80 #define IFXVADC_GLOBAL_INPUTCLASS_NUM 2
81 
82 
83 
84 /******************************************************************************/
85 /*-------------------------------Enumerations---------------------------------*/
86 /******************************************************************************/
87 
88 /** \brief VADC Groups
89  */
90 typedef enum
91 {
92  IfxVadc_GroupId_0 = 0, /**< \brief VADC group 0 */
93  IfxVadc_GroupId_1 = 1, /**< \brief VADC group 1 */
94  IfxVadc_GroupId_2 = 2, /**< \brief VADC group 2 */
95  IfxVadc_GroupId_3 = 3, /**< \brief VADC group 3 */
96  IfxVadc_GroupId_4 = 4, /**< \brief VADC group 4 */
97  IfxVadc_GroupId_5 = 5, /**< \brief VADC group 5 */
98  IfxVadc_GroupId_6 = 6, /**< \brief VADC group 6 */
99  IfxVadc_GroupId_7 = 7, /**< \brief VADC group 7 */
100  IfxVadc_GroupId_global0 = 8, /**< \brief VADC group global0 */
101  IfxVadc_GroupId_global1 = 9 /**< \brief VADC group global1 */
103 
104 
105 /******************************************************************************/
106 /*-------------------Global Exported Variables/Constants----------------------*/
107 /******************************************************************************/
108 
110 
111 
112 #endif /* IFXVADC_CFG_H */