iLLD_TC27xD  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_1_0_0_11_0
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  * \defgroup IfxLld_Vadc VADC
25  * \ingroup IfxLld
26  * \defgroup IfxLld_Vadc_Impl Implementation
27  * \ingroup IfxLld_Vadc
28  * \defgroup IfxLld_Vadc_Std Standard Driver
29  * \ingroup IfxLld_Vadc
30  */
31 
32 #ifndef IFXVADC_CFG_H
33 #define IFXVADC_CFG_H 1
34 
35 /******************************************************************************/
36 /*----------------------------------Includes----------------------------------*/
37 /******************************************************************************/
38 
39 #include "Src/Std/IfxSrc.h"
40 
41 /******************************************************************************/
42 /*-----------------------------------Macros-----------------------------------*/
43 /******************************************************************************/
44 
45 /** \brief Number of ADC Groups
46  */
47 #define IFXVADC_NUM_ADC_GROUPS (8)
48 
49 /** \brief Number of calibrated ADC Groups
50  */
51 #define IFXVADC_NUM_ADC_CAL_GROUPS (8)
52 
53 /** \brief Maximum allowed analog frequency
54  */
55 #define IFXVADC_ANALOG_FREQUENCY_MAX (20000000)
56 
57 /** \brief Minimum allowed analog frequency
58  */
59 #define IFXVADC_ANALOG_FREQUENCY_MIN (500000)
60 
61 /** \brief Default analog frequency used in initModuleConfig function
62  */
63 #define IFXVADC_DEFAULT_ANALOG_FREQ (20000000)
64 
65 /** \brief Number of Conversion request Slots
66  */
67 #define IFXVADC_NUM_REQUESTSLOTS (3)
68 
69 /** \brief Number of group specific Input Class
70  */
71 #define IFXVADC_NUM_INPUTCLASSES (2)
72 
73 /** \brief Maximum number of configurable bitfields in ACCPROT0 register
74  */
75 #define IFXVADC_MAXIMUM_BITFIELDS_IN_ACCPROT0_REGISTER (32)
76 
77 #define IFXVADC_QUEUE_REFILL (1 << IFX_VADC_G_QBUR0_RF_OFF)
78 
79 /** \brief Number of ADC group input classes.
80  */
81 #define IFXVADC_NUM_GLOBAL_INPUTCLASSES (2)
82 
83 #define IFXVADC_NUM_ADC_COMMON_GROUPS (2)
84 
85 #define IFXVADC_SAMPLETIME_MIN (2)
86 
87 /******************************************************************************/
88 /*-------------------------------Enumerations---------------------------------*/
89 /******************************************************************************/
90 
91 /** \brief VADC Groups
92  */
93 typedef enum
94 {
95  IfxVadc_GroupId_0, /**< \brief VADC group 0 */
96  IfxVadc_GroupId_1, /**< \brief VADC group 1 */
97  IfxVadc_GroupId_2, /**< \brief VADC group 2 */
98  IfxVadc_GroupId_3, /**< \brief VADC group 3 */
99  IfxVadc_GroupId_4, /**< \brief VADC group 4 */
100  IfxVadc_GroupId_5, /**< \brief VADC group 5 */
101  IfxVadc_GroupId_6, /**< \brief VADC group 6 */
102  IfxVadc_GroupId_7, /**< \brief VADC group 7 */
103  IfxVadc_GroupId_global0, /**< \brief VADC group global0 */
104  IfxVadc_GroupId_global1 /**< \brief VADC group global1 */
106 
107 /******************************************************************************/
108 /*-------------------Global Exported Variables/Constants----------------------*/
109 /******************************************************************************/
110 
112 
113 #endif /* IFXVADC_CFG_H */