TLE986x Device Family SDK
adc2.h
Go to the documentation of this file.
1 /*
2  ***********************************************************************************************************************
3  *
4  * Copyright (c) 2015, Infineon Technologies AG
5  * All rights reserved.
6  *
7  * Redistribution and use in source and binary forms, with or without modification,are permitted provided that the
8  * following conditions are met:
9  *
10  * Redistributions of source code must retain the above copyright notice, this list of conditions and the following
11  * disclaimer.
12  *
13  * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
14  * following disclaimer in the documentation and/or other materials provided with the distribution.
15  *
16  * Neither the name of the copyright holders nor the names of its contributors may be used to endorse or promote
17  * products derived from this software without specific prior written permission.
18  *
19  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
20  * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21  * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
23  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24  * WHETHER IN CONTRACT, STRICT LIABILITY,OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
25  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26  *
27  **********************************************************************************************************************/
39 /*******************************************************************************
40 ** Author(s) Identity **
41 ********************************************************************************
42 ** Initials Name **
43 ** ---------------------------------------------------------------------------**
44 ** DM Daniel Mysliwitz **
45 ** JO Julia Ott **
46 ** DCM Dragos C. Molocea **
47 ** BG Blandine Guillot **
48 *******************************************************************************/
49 
50 /*******************************************************************************
51 ** Revision Control History **
52 ********************************************************************************
53 ** V0.1.0: 2014-05-13, DM: Initial version **
54 ** V0.1.1: 2014-09-11, DM: ADC2->TH6_9_LOWER added to Init function **
55 ** V0.1.2: 2015-02-10, DM: Individual header file added **
56 ** V0.1.3: 2015-02-24, DM: Comment for TH6_9_UPPER added **
57 ** V0.1.4: 2015-07-16, DM: GetChResult/GetSwModeResult result register **
58 ** address calc. corrected **
59 ** V0.1.5: 2017-01-23, DM: MMODE and Hysteresis added **
60 ** V0.1.6: 2017-07-13, DM: ADC2_VCCP_Result_mV renamed ADC2_VDDC_Result_mV **
61 ** Double declaration of ADC2_Temp_Result_C removed **
62 ** V0.1.7: 2017-09-26, DM: ADC2_TEMP_WARN_Int_En/Dis macros renamed **
63 ** ADC2_Temp_Warn_Int_En/Dis **
64 ** MISRA 2012 compliance, the following PC-Lint **
65 ** rules are globally deactivated: **
66 ** - Info 793: ANSI/ISO limit of 6 'significant **
67 ** characters in an external identifier **
68 ** - Info 835: A zero has been given as right **
69 ** argument to operator **
70 ** - Info 845: The left argument to operator '&' **
71 ** is certain to be 0 **
72 ** Replaced macros by INLINE functions **
73 ** Replaced register accesses within functions by **
74 ** function calls **
75 ** Replaced __STATIC_INLINE by INLINE **
76 ** V0.1.8: 2018-07-03, DCM: Conversion formula from digital value to mv **
77 ** changed based on the software unit test findings **
78 ** and simplified according to new specifications **
79 ** V0.1.9: 2018-11-27, JO: Moved revision history from adc2.c to adc2.h **
80 ** Included tle_variants.h instead of tle_device.h **
81 ** Added #include sfr_access.h which was included **
82 ** by tle_device.h indirectly **
83 ** V0.2.0: 2019-05-29, JO: Added initialization of ADC2->FILT_LO_CTRL and **
84 ** ADC2->FILT_UP_CTRL to ADC2_Init() **
85 ** V0.2.1: 2020-02-28, BG: Updated revision history format **
86 ** V0.2.2: 2020-10-12, JO: EP-506: remove ARMCC v6 Compiler warnings **
87 ** - Added typecasts to remove 'implicit typecast' **
88 ** warning **
89 *******************************************************************************/
90 
91 #ifndef ADC2_H
92 #define ADC2_H
93 
94 /*******************************************************************************
95 ** Includes **
96 *******************************************************************************/
97 #include "tle986x.h"
98 #include "types.h"
99 #include "adc2_defines.h"
100 #include "tle_variants.h"
101 #include "sfr_access.h"
102 
103 /*******************************************************************************
104 ** Global Constant Declarations **
105 *******************************************************************************/
107 #define ADC2_VREF (1.211F)
108 
109 #define ADC2_VREF_mV (1211)
110 
111 #define ADC2_FILTOUT_MAX (1023u)
112 
115 #define VS_ATTEN_CONV_NOMIN_MAX28V (1000u)
116 #define VS_ATTEN_CONV_DENOM_MAX28V (39u)
117 
120 #define VS_ATTEN_CONV_NOMIN_MAX22V (200u)
121 #define VS_ATTEN_CONV_DENOM_MAX22V (11u)
122 
125 #define VSD_ATTEN_CONV_NOMIN (1000u)
126 #define VSD_ATTEN_CONV_DENOM (39u)
127 
130 #define VCP_ATTEN_CONV_NOMIN (1000u)
131 #define VCP_ATTEN_CONV_DENOM (23u)
132 
135 #define MON_ATTEN_CONV_NOMIN (1000u)
136 #define MON_ATTEN_CONV_DENOM (39u)
137 
140 #define VDDP_ATTEN_CONV_NOMIN (250u)
141 #define VDDP_ATTEN_CONV_DENOM (41u)
142 
145 #define VAREF_ATTEN_CONV_NOMIN (1000u)
146 #define VAREF_ATTEN_CONV_DENOM (219u)
147 
150 #define VBG_ATTEN_CONV_NOMIN (4u)
151 #define VBG_ATTEN_CONV_DENOM (3u)
152 
155 #define VDDC_ATTEN_CONV_NOMIN (4u)
156 #define VDDC_ATTEN_CONV_DENOM (3u)
157 
159 #define V_TEMP_REF_OFFSET_mV (666u)
160 
162 #define V_TEMP_SCALE_FACT (100u)
163 
166 #define CONV_COEFF_mV_TO_degC (231u)
167 
169 #define ADC2_VBAT (0)
170 
171 #define ADC2_VS (1)
172 
173 #define ADC2_VSD (2)
174 
175 #define ADC2_VCP (3)
176 
177 #define ADC2_MON (4)
178 
179 #define ADC2_VDDP (5)
180 
181 #define ADC2_VAREF (6)
182 
183 #define ADC2_VBG (7)
184 
185 #define ADC2_VDDC (8)
186 
187 #define ADC2_TEMP (9)
188 
189 /*******************************************************************************
190 ** Global Macro Declarations **
191 *******************************************************************************/
192 
193 #if (UC_SERIES == TLE986)
194 #define ADC2_VBat_Attenuator_Range_3_28V (1u)
195 #define ADC2_VBat_Attenuator_Range_3_22V (0u)
196 
209 INLINE void ADC2_VBat_Attenuator_Range_3_28V_Set(void)
210 {
212 }
213 
226 INLINE void ADC2_VBat_Attenuator_Range_3_22V_Set(void)
227 {
229 }
230 
248 INLINE uint8 ADC2_VBat_Attenuator_Range_Get(void)
249 {
251 }
252 #endif
253 
254 #define ADC2_VS_Attenuator_Range_3_28V (1u)
255 #define ADC2_VS_Attenuator_Range_3_22V (0u)
256 
270 {
272 }
273 
287 {
289 }
290 
309 {
311 }
312 
313 /* ADC2 Interrupt Clear Macros */
331 INLINE void ADC2_VS_OV_Int_Clr(void)
332 {
334 }
335 
353 INLINE void ADC2_VS_UV_Int_Clr(void)
354 {
356 }
357 
375 INLINE void ADC2_VDDP_OV_Int_Clr(void)
376 {
378 }
379 
397 INLINE void ADC2_VDDP_UV_Int_Clr(void)
398 {
400 }
401 
419 INLINE void ADC2_VDDC_OV_Int_Clr(void)
420 {
422 }
423 
441 INLINE void ADC2_VDDC_UV_Int_Clr(void)
442 {
444 }
445 
463 INLINE void ADC2_VSD_OV_Int_Clr(void)
464 {
466 }
467 
485 INLINE void ADC2_VSD_UV_Int_Clr(void)
486 {
488 }
489 
507 INLINE void ADC2_VCP_OV_Int_Clr(void)
508 {
510 }
511 
529 INLINE void ADC2_VCP_UV_Int_Clr(void)
530 {
532 }
533 
534 #if (UC_SERIES == TLE986)
535 
552 INLINE void ADC2_VBAT_OV_Int_Clr(void)
553 {
555 }
556 
574 INLINE void ADC2_VBAT_UV_Int_Clr(void)
575 {
577 }
578 #endif
579 
580 #if (UC_SERIES == TLE987)
581 
598 INLINE void ADC2_MON_OV_Int_Clr(void)
599 {
600  Field_Wrt32(&SCUPM->SYS_SUPPLY_IRQ_CLR.reg, SCUPM_SYS_SUPPLY_IRQ_CLR_MON_OV_ICLR_Pos, SCUPM_SYS_SUPPLY_IRQ_CLR_MON_OV_ICLR_Msk, 1u);
601 }
602 
620 INLINE void ADC2_MON_UV_Int_Clr(void)
621 {
622  Field_Wrt32(&SCUPM->SYS_SUPPLY_IRQ_CLR.reg, SCUPM_SYS_SUPPLY_IRQ_CLR_MON_UV_ICLR_Pos, SCUPM_SYS_SUPPLY_IRQ_CLR_MON_UV_ICLR_Msk, 1u);
623 }
624 #endif
625 
643 INLINE void ADC2_VBG_OV_Int_Clr(void)
644 {
646 }
647 
665 INLINE void ADC2_VBG_UV_Int_Clr(void)
666 {
668 }
669 
670 #if ((ADC2_CTRL2 & (1u << 2u)) == 0u)
671 /* System Temperature Sensor */
689 INLINE void ADC2_TEMP_OT_Int_Clr(void)
690 {
692 }
693 
712 {
714 }
715 #else
716 /* PMU Temperature Sensor */
734 INLINE void ADC2_TEMP_OT_Int_Clr(void)
735 {
737 }
738 
757 {
759 }
760 #endif
761 
762 /* ADC2 Interrupt Enable/Disable Macros */
780 INLINE void ADC2_VS_OV_Int_En(void)
781 {
783 }
784 
803 INLINE void ADC2_VS_OV_Int_Dis(void)
804 {
806 }
807 
825 INLINE void ADC2_VS_UV_Int_En(void)
826 {
828 }
829 
848 INLINE void ADC2_VS_UV_Int_Dis(void)
849 {
851 }
852 
870 INLINE void ADC2_VDDP_OV_Int_En(void)
871 {
873 }
874 
893 INLINE void ADC2_VDDP_OV_Int_Dis(void)
894 {
896 }
897 
915 INLINE void ADC2_VDDP_UV_Int_En(void)
916 {
918 }
919 
938 INLINE void ADC2_VDDP_UV_Int_Dis(void)
939 {
941 }
942 
960 INLINE void ADC2_VDDC_OV_Int_En(void)
961 {
963 }
964 
983 INLINE void ADC2_VDDC_OV_Int_Dis(void)
984 {
986 }
987 
1005 INLINE void ADC2_VDDC_UV_Int_En(void)
1006 {
1008 }
1009 
1028 INLINE void ADC2_VDDC_UV_Int_Dis(void)
1029 {
1031 }
1032 
1050 INLINE void ADC2_VSD_OV_Int_En(void)
1051 {
1053 }
1054 
1073 INLINE void ADC2_VSD_OV_Int_Dis(void)
1074 {
1076 }
1077 
1095 INLINE void ADC2_VSD_UV_Int_En(void)
1096 {
1098 }
1099 
1118 INLINE void ADC2_VSD_UV_Int_Dis(void)
1119 {
1121 }
1122 
1140 INLINE void ADC2_VCP_OV_Int_En(void)
1141 {
1143 }
1144 
1163 INLINE void ADC2_VCP_OV_Int_Dis(void)
1164 {
1166 }
1167 
1185 INLINE void ADC2_VCP_UV_Int_En(void)
1186 {
1188 }
1189 
1208 INLINE void ADC2_VCP_UV_Int_Dis(void)
1209 {
1211 }
1212 
1213 #if (UC_SERIES == TLE986)
1214 
1231 INLINE void ADC2_VBAT_OV_Int_En(void)
1232 {
1234 }
1235 
1254 INLINE void ADC2_VBAT_OV_Int_Dis(void)
1255 {
1257 }
1258 
1276 INLINE void ADC2_VBAT_UV_Int_En(void)
1277 {
1279 }
1280 
1299 INLINE void ADC2_VBAT_UV_Int_Dis(void)
1300 {
1302 }
1303 #endif
1304 
1305 #if (UC_SERIES == TLE987)
1306 
1323 INLINE void ADC2_MON_OV_Int_En(void)
1324 {
1325  Field_Mod32(&SCUPM->SYS_SUPPLY_IRQ_CTRL.reg, SCUPM_SYS_SUPPLY_IRQ_CTRL_MON_OV_IE_Pos, SCUPM_SYS_SUPPLY_IRQ_CTRL_MON_OV_IE_Msk, 1u);
1326 }
1327 
1346 INLINE void ADC2_MON_OV_Int_Dis(void)
1347 {
1348  Field_Mod32(&SCUPM->SYS_SUPPLY_IRQ_CTRL.reg, SCUPM_SYS_SUPPLY_IRQ_CTRL_MON_OV_IE_Pos, SCUPM_SYS_SUPPLY_IRQ_CTRL_MON_OV_IE_Msk, 0u);
1349 }
1350 
1368 INLINE void ADC2_MON_UV_Int_En(void)
1369 {
1370  Field_Mod32(&SCUPM->SYS_SUPPLY_IRQ_CTRL.reg, SCUPM_SYS_SUPPLY_IRQ_CTRL_MON_UV_IE_Pos, SCUPM_SYS_SUPPLY_IRQ_CTRL_MON_UV_IE_Msk, 1u);
1371 }
1372 
1391 INLINE void ADC2_MON_UV_Int_Dis(void)
1392 {
1393  Field_Mod32(&SCUPM->SYS_SUPPLY_IRQ_CTRL.reg, SCUPM_SYS_SUPPLY_IRQ_CTRL_MON_UV_IE_Pos, SCUPM_SYS_SUPPLY_IRQ_CTRL_MON_UV_IE_Msk, 0u);
1394 }
1395 #endif
1396 
1414 INLINE void ADC2_VBG_OV_Int_En(void)
1415 {
1417 }
1418 
1437 INLINE void ADC2_VBG_OV_Int_Dis(void)
1438 {
1440 }
1441 
1459 INLINE void ADC2_VBG_UV_Int_En(void)
1460 {
1462 }
1463 
1482 INLINE void ADC2_VBG_UV_Int_Dis(void)
1483 {
1485 }
1486 
1487 #if ((ADC2_CTRL2 & (1u << 2u)) == 0u)
1488 /* System Temperature Sensor */
1506 INLINE void ADC2_Temp_OT_Int_En(void)
1507 {
1509 }
1510 
1529 INLINE void ADC2_Temp_OT_Int_Dis(void)
1530 {
1532 }
1533 
1551 INLINE void ADC2_Temp_Warn_Int_En(void)
1552 {
1554 }
1555 
1574 INLINE void ADC2_Temp_Warn_Int_Dis(void)
1575 {
1577 }
1578 #else
1579 /* PMU Temperature Sensor */
1597 INLINE void ADC2_Temp_OT_Int_En(void)
1598 {
1600 }
1601 
1620 INLINE void ADC2_Temp_OT_Int_Dis(void)
1621 {
1623 }
1624 
1642 INLINE void ADC2_Temp_Warn_Int_En(void)
1643 {
1645 }
1646 
1665 INLINE void ADC2_Temp_Warn_Int_Dis(void)
1666 {
1668 }
1669 #endif
1670 
1671 /*******************************************************************************
1672 ** Global Function Declarations **
1673 *******************************************************************************/
1678 void ADC2_Init(void);
1680 #if (UC_SERIES == TLE986)
1681  INLINE uint16 ADC2_VBat_Result_mV(void);
1682 #endif
1692 
1693 /*******************************************************************************
1694 ** Global Inline Function Definitions **
1695 *******************************************************************************/
1715 {
1716  const volatile uint32 *pBaseAddr;
1717  uint16 Var;
1718  uint32 addr;
1719  uint16 idx;
1720 
1721  if ((uint8)ADC2_TEMP >= channel)
1722  {
1723  /* violation: intended cast from pointer to unsigned int [MISRA Rule 45]*/
1724  addr = (uint32)&ADC2->FILT_OUT0.reg;
1725  /* calculate address offset corresponding to the input channel number */
1726  idx = (uint16)((uint16)channel << 2);
1727  addr += idx;
1728  /* violation: intended cast from unsigned int to pointer [MISRA Rule 45]*/
1729  pBaseAddr = (volatile uint32 *) addr;
1730  /* read the 10 LSbit of the ADC FILT_OUTx register */
1731  Var = (uint16)((*pBaseAddr) & (uint32)0x000003FF);
1732  }
1733  else
1734  {
1735  Var = 0;
1736  }
1737 
1738  return (Var);
1739 } /* End of ADC2_GetChResult */
1740 #if (UC_SERIES == TLE986)
1741 
1762 INLINE uint16 ADC2_VBat_Result_mV(void)
1763 {
1764  uint16 value;
1765  value = ADC2_GetChResult(ADC2_VBAT);
1766 
1767  if (ADC2_VBat_Attenuator_Range_Get() == ADC2_VS_Attenuator_Range_3_28V)
1768  {
1769  /* Conversion for VBat attenuator range up to 28 V same as for VS */
1771  }
1772  else
1773  {
1774  /* Conversion for VBat attenuator range up to 22 V same as for VS */
1776  }
1777 
1778  return (value);
1779 }
1780 #endif
1781 
1803 {
1804  uint16 value;
1805  value = ADC2_GetChResult(ADC2_VS);
1806 
1808  {
1809  /* Conversion for VS attenuator range up to 28 V */
1811  }
1812  else
1813  {
1814  /* Conversion for VS attenuator range up to 22 V */
1816  }
1817 
1818  return (value);
1819 }
1839 {
1840  uint16 value;
1841  value = ADC2_GetChResult(ADC2_VSD);
1842  /* Conversion for VSD attenuator (attenuator 0.039 = 39/1000) */
1844  return (value);
1845 }
1865 {
1866  uint16 value;
1867  value = ADC2_GetChResult((uint8)ADC2_VCP);
1868  /* Conversion for VCP attenuator (attenuator 0.023 = 23/1000) */
1870  return (value);
1871 }
1872 
1892 {
1893  uint16 value;
1894  value = ADC2_GetChResult((uint8)ADC2_MON);
1895  /* Conversion for MON attenuator (attenuator 0.039 = 39/1000) */
1897  return (value);
1898 }
1899 
1919 {
1920  uint16 value;
1921  value = ADC2_GetChResult((uint8)ADC2_VDDP);
1922  /* Conversion for VDDP attenuator (attenuator 0.164 = 41/250) */
1924  return (value);
1925 }
1926 
1946 {
1947  uint16 value;
1948  value = ADC2_GetChResult((uint8)ADC2_VAREF);
1949  /* Conversion for VAREF attenuator (attenuator 0.219 = 219/1000) */
1951  return (value);
1952 }
1953 
1973 {
1974  uint16 value;
1975  value = ADC2_GetChResult((uint8)ADC2_VBG);
1976  /* Conversion for VBG attenuator (attenuator 0.75 = 3/4) */
1978  return (value);
1979 }
1980 
2000 {
2001  uint16 value;
2002  value = ADC2_GetChResult((uint8)ADC2_VDDC);
2003  /* Conversion for VDDC attenuator (attenuator 0.75 = 3/4) */
2005  return (value);
2006 }
2007 
2028 {
2029  uint16 value;
2030  uint16 V_Temp_mV;
2031  sint16 Temperature;
2032  value = ADC2_GetChResult((uint8)ADC2_TEMP);
2033  /* Conversion for Temperature in °C:
2034  Step 1: Calculate V_Temp(T)(mV): */
2035  V_Temp_mV = (uint16)(((uint32)value * (uint32)ADC2_VREF_mV) / (uint16)1023);
2036  /* Step 2: Conversion from V_Temp(T)(mV) to Temperature in °C */
2038  /* return the calculated Temperature in °C */
2039  return (Temperature);
2040 }
2041 
2042 #endif
VDDP_ATTEN_CONV_DENOM
#define VDDP_ATTEN_CONV_DENOM
Definition: adc2.h:137
ADC2_Temp_Result_C
INLINE sint16 ADC2_Temp_Result_C(void)
Returns the Temperature read by the ADC2 Channel 9 in degrees Celsius (°C).
Definition: adc2.h:2020
ADC2_VCP_OV_Int_Clr
INLINE void ADC2_VCP_OV_Int_Clr(void)
clears Charge Pump MU High Interrupt Status.
Definition: adc2.h:502
ADC2_VBG_OV_Int_Dis
INLINE void ADC2_VBG_OV_Int_Dis(void)
disables 8 Bit ADC2 Reference Overvoltage interrupt.
Definition: adc2.h:1432
ADC2_VAREF
#define ADC2_VAREF
ADC2 channel selection macro, channel 6 - VAREF.
Definition: adc2.h:177
V_TEMP_SCALE_FACT
#define V_TEMP_SCALE_FACT
Scaling factor for V_Temp (mV)
Definition: adc2.h:158
ADC2_VDDC_OV_Int_Dis
INLINE void ADC2_VDDC_OV_Int_Dis(void)
disables VDDC Overvoltage interrupt.
Definition: adc2.h:978
ADC2_TEMP_OT_Int_Clr
INLINE void ADC2_TEMP_OT_Int_Clr(void)
clears System Overtemperature Shutdown Interrupt Status.
Definition: adc2.h:684
VDDC_ATTEN_CONV_NOMIN
#define VDDC_ATTEN_CONV_NOMIN
Nominator and Denominator of Attenuator Conversion formula for VDDC: attenuator for VDDC is 0....
Definition: adc2.h:151
ADC2_VDDC_UV_Int_Dis
INLINE void ADC2_VDDC_UV_Int_Dis(void)
disables VDDC Undervoltage interrupt.
Definition: adc2.h:1023
ADC2_VS_UV_Int_En
INLINE void ADC2_VS_UV_Int_En(void)
enables VS Undervoltage interrupt.
Definition: adc2.h:820
SCUPM_SYS_SUPPLY_IRQ_CLR_VDD5V_UV_ICLR_Msk
#define SCUPM_SYS_SUPPLY_IRQ_CLR_VDD5V_UV_ICLR_Msk
Definition: tle986x.h:9533
ADC2_VDDP
#define ADC2_VDDP
ADC2 channel selection macro, channel 5 - VDDP.
Definition: adc2.h:175
VAREF_ATTEN_CONV_DENOM
#define VAREF_ATTEN_CONV_DENOM
Definition: adc2.h:142
SCUPM_SYS_IRQ_CTRL_PMU_OTWARN_IE_Pos
#define SCUPM_SYS_IRQ_CTRL_PMU_OTWARN_IE_Pos
Definition: tle986x.h:9435
ADC2_VSD_OV_Int_Clr
INLINE void ADC2_VSD_OV_Int_Clr(void)
clears Driver Supply MU High Interrupt Status.
Definition: adc2.h:458
SCUPM_SYS_SUPPLY_IRQ_CLR_VS_OV_ICLR_Msk
#define SCUPM_SYS_SUPPLY_IRQ_CLR_VS_OV_ICLR_Msk
Definition: tle986x.h:9527
types.h
General type declarations.
VS_ATTEN_CONV_NOMIN_MAX28V
#define VS_ATTEN_CONV_NOMIN_MAX28V
Nominator and Denominator of Attenuator Conversion formula for VS: attenuator for VS Range 0....
Definition: adc2.h:111
ADC2_VDDC_OV_Int_En
INLINE void ADC2_VDDC_OV_Int_En(void)
enables VDDC Overvoltage interrupt.
Definition: adc2.h:955
VS_ATTEN_CONV_DENOM_MAX22V
#define VS_ATTEN_CONV_DENOM_MAX22V
Definition: adc2.h:117
ADC2_Temp_Warn_Int_Dis
INLINE void ADC2_Temp_Warn_Int_Dis(void)
disables System Overtemperature Prewarning interrupt.
Definition: adc2.h:1569
SCUPM_BDRV_IRQ_CTRL_VSD_UPTH_IE_Msk
#define SCUPM_BDRV_IRQ_CTRL_VSD_UPTH_IE_Msk
Definition: tle986x.h:9279
SCUPM_SYS_SUPPLY_IRQ_CTRL_VBAT_UV_IE_Pos
#define SCUPM_SYS_SUPPLY_IRQ_CTRL_VBAT_UV_IE_Pos
Definition: tle986x.h:9553
ADC2_VSD_OV_Int_Dis
INLINE void ADC2_VSD_OV_Int_Dis(void)
disables Driver Supply MU High interrupt.
Definition: adc2.h:1068
SCUPM_SYS_IRQ_CTRL_PMU_OTWARN_IE_Msk
#define SCUPM_SYS_IRQ_CTRL_PMU_OTWARN_IE_Msk
Definition: tle986x.h:9436
ADC2
#define ADC2
Definition: tle986x.h:5991
SCUPM_SYS_ISCLR_REFBG_UPTHWARN_ICLR_Pos
#define SCUPM_SYS_ISCLR_REFBG_UPTHWARN_ICLR_Pos
Definition: tle986x.h:9487
SCUPM_SYS_IRQ_CTRL_REFBG_LOTHWARN_IE_Msk
#define SCUPM_SYS_IRQ_CTRL_REFBG_LOTHWARN_IE_Msk
Definition: tle986x.h:9428
ADC2_VSD_UV_Int_En
INLINE void ADC2_VSD_UV_Int_En(void)
enables Driver Supply MU Low interrupt.
Definition: adc2.h:1090
SCUPM_SYS_SUPPLY_IRQ_CTRL_VDD5V_UV_IE_Pos
#define SCUPM_SYS_SUPPLY_IRQ_CTRL_VDD5V_UV_IE_Pos
Definition: tle986x.h:9549
SCUPM_BDRV_ISCLR_VSD_UPTH_ICLR_Pos
#define SCUPM_BDRV_ISCLR_VSD_UPTH_ICLR_Pos
Definition: tle986x.h:9352
ADC2_VAREF_Result_mV
INLINE uint16 ADC2_VAREF_Result_mV(void)
returns the Voltage of the VAREF line (ADC2 Channel 6) in millivolt (mV)
Definition: adc2.h:1938
ADC2_VDDP_UV_Int_Clr
INLINE void ADC2_VDDP_UV_Int_Clr(void)
clears VDDP Undervoltage Interrupt Status.
Definition: adc2.h:392
ADC2_VCP_Result_mV
INLINE uint16 ADC2_VCP_Result_mV(void)
returns the Voltage of the VCP line (ADC2 Channel 3) in millivolt (mV)
Definition: adc2.h:1857
SCUPM_SYS_IRQ_CTRL_SYS_OTWARN_IE_Msk
#define SCUPM_SYS_IRQ_CTRL_SYS_OTWARN_IE_Msk
Definition: tle986x.h:9432
ADC2_VSD_Result_mV
INLINE uint16 ADC2_VSD_Result_mV(void)
returns the Voltage of the VSD line (ADC2 Channel 2) in millivolt
Definition: adc2.h:1831
MON_ATTEN_CONV_DENOM
#define MON_ATTEN_CONV_DENOM
Definition: adc2.h:132
SCUPM_SYS_SUPPLY_IRQ_CLR_VDD5V_UV_ICLR_Pos
#define SCUPM_SYS_SUPPLY_IRQ_CLR_VDD5V_UV_ICLR_Pos
Definition: tle986x.h:9532
SCUPM_SYS_SUPPLY_IRQ_CTRL_VBAT_OV_IE_Pos
#define SCUPM_SYS_SUPPLY_IRQ_CTRL_VBAT_OV_IE_Pos
Definition: tle986x.h:9545
SCUPM_SYS_SUPPLY_IRQ_CTRL_VBAT_UV_IE_Msk
#define SCUPM_SYS_SUPPLY_IRQ_CTRL_VBAT_UV_IE_Msk
Definition: tle986x.h:9554
ADC2_VDDP_UV_Int_Dis
INLINE void ADC2_VDDP_UV_Int_Dis(void)
disables VDDP Undervoltage interrupt.
Definition: adc2.h:933
SCUPM_BDRV_ISCLR_VCP_UPTH_ICLR_Msk
#define SCUPM_BDRV_ISCLR_VCP_UPTH_ICLR_Msk
Definition: tle986x.h:9357
SCUPM_SYS_SUPPLY_IRQ_CLR_VBAT_OV_ICLR_Msk
#define SCUPM_SYS_SUPPLY_IRQ_CLR_VBAT_OV_ICLR_Msk
Definition: tle986x.h:9529
ADC2_VDDC_OV_Int_Clr
INLINE void ADC2_VDDC_OV_Int_Clr(void)
clears VDDC Overvoltage Interrupt Status.
Definition: adc2.h:414
SCUPM_SYS_ISCLR_PMU_OTWARN_ICLR_Pos
#define SCUPM_SYS_ISCLR_PMU_OTWARN_ICLR_Pos
Definition: tle986x.h:9497
SCUPM_SYS_SUPPLY_IRQ_CLR_VS_UV_ICLR_Msk
#define SCUPM_SYS_SUPPLY_IRQ_CLR_VS_UV_ICLR_Msk
Definition: tle986x.h:9535
sint16
signed short sint16
16 bit signed value
Definition: types.h:145
ADC2_VS_UV_Int_Dis
INLINE void ADC2_VS_UV_Int_Dis(void)
disables VS Undervoltage interrupt.
Definition: adc2.h:843
SCUPM_SYS_SUPPLY_IRQ_CLR_VS_OV_ICLR_Pos
#define SCUPM_SYS_SUPPLY_IRQ_CLR_VS_OV_ICLR_Pos
Definition: tle986x.h:9526
SCUPM_BDRV_IRQ_CTRL_VCP_LOWTH1_IE_Pos
#define SCUPM_BDRV_IRQ_CTRL_VCP_LOWTH1_IE_Pos
Definition: tle986x.h:9284
SCUPM_BDRV_IRQ_CTRL_VSD_UPTH_IE_Pos
#define SCUPM_BDRV_IRQ_CTRL_VSD_UPTH_IE_Pos
Definition: tle986x.h:9278
SCUPM_BDRV_ISCLR_VSD_UPTH_ICLR_Msk
#define SCUPM_BDRV_ISCLR_VSD_UPTH_ICLR_Msk
Definition: tle986x.h:9353
VCP_ATTEN_CONV_NOMIN
#define VCP_ATTEN_CONV_NOMIN
Nominator and Denominator of Attenuator Conversion formula for VCP: attenuator for VCP is 0....
Definition: adc2.h:126
SCUPM_SYS_SUPPLY_IRQ_CTRL_VDD5V_OV_IE_Pos
#define SCUPM_SYS_SUPPLY_IRQ_CTRL_VDD5V_OV_IE_Pos
Definition: tle986x.h:9541
sfr_access.h
SFR low level access library.
SCUPM_SYS_IRQ_CTRL_PMU_OT_IE_Pos
#define SCUPM_SYS_IRQ_CTRL_PMU_OT_IE_Pos
Definition: tle986x.h:9433
VBG_ATTEN_CONV_DENOM
#define VBG_ATTEN_CONV_DENOM
Definition: adc2.h:147
ADC2_VSD_UV_Int_Clr
INLINE void ADC2_VSD_UV_Int_Clr(void)
clears Driver Supply MU Low interrupt flag.
Definition: adc2.h:480
ADC2_VS_OV_Int_Clr
INLINE void ADC2_VS_OV_Int_Clr(void)
clears VS Overvoltage Interrupt Status.
Definition: adc2.h:326
SCUPM
#define SCUPM
Definition: tle986x.h:6005
INLINE
#define INLINE
Definition: types.h:134
ADC2_CTRL_STS_VS_RANGE_Msk
#define ADC2_CTRL_STS_VS_RANGE_Msk
Definition: tle986x.h:6482
ADC2_GetChResult
INLINE uint16 ADC2_GetChResult(uint8 channel)
Returns the 10 bit wide result of the selected ADC2 channel.
Definition: adc2.h:1707
VDDC_ATTEN_CONV_DENOM
#define VDDC_ATTEN_CONV_DENOM
Definition: adc2.h:152
SCUPM_SYS_SUPPLY_IRQ_CTRL_VBAT_OV_IE_Msk
#define SCUPM_SYS_SUPPLY_IRQ_CTRL_VBAT_OV_IE_Msk
Definition: tle986x.h:9546
SCUPM_SYS_IRQ_CTRL_REFBG_LOTHWARN_IE_Pos
#define SCUPM_SYS_IRQ_CTRL_REFBG_LOTHWARN_IE_Pos
Definition: tle986x.h:9427
MON_ATTEN_CONV_NOMIN
#define MON_ATTEN_CONV_NOMIN
Nominator and Denominator of Attenuator Conversion formula for MON: attenuator for MON is 0....
Definition: adc2.h:131
Field_Mod32
INLINE void Field_Mod32(volatile uint32 *reg, uint32 pos, uint32 msk, uint32 val)
This function writes a bit field in a 32-bit register.
Definition: sfr_access.h:356
ADC2_VCP
#define ADC2_VCP
ADC2 channel selection macro, channel 3 - VCP.
Definition: adc2.h:171
SCUPM_SYS_SUPPLY_IRQ_CLR_VDD1V5_OV_ICLR_Msk
#define SCUPM_SYS_SUPPLY_IRQ_CLR_VDD1V5_OV_ICLR_Msk
Definition: tle986x.h:9523
ADC2_VREF_mV
#define ADC2_VREF_mV
ADC2 (1.211 V) in millivolts.
Definition: adc2.h:105
ADC2_CTRL_STS_VS_RANGE_Pos
#define ADC2_CTRL_STS_VS_RANGE_Pos
Definition: tle986x.h:6481
ADC2_MON_Result_mV
INLINE uint16 ADC2_MON_Result_mV(void)
returns the Voltage of the MON line (ADC2 Channel 4) in millivolt (mV)
Definition: adc2.h:1884
ADC2_VBG_OV_Int_En
INLINE void ADC2_VBG_OV_Int_En(void)
enables 8 Bit ADC2 Reference Overvoltage interrupt.
Definition: adc2.h:1409
uint16
unsigned short uint16
16 bit unsigned value
Definition: types.h:140
ADC2_MON
#define ADC2_MON
ADC2 channel selection macro, channel 4 - MON.
Definition: adc2.h:173
ADC2_VDDP_OV_Int_En
INLINE void ADC2_VDDP_OV_Int_En(void)
enables VDDP Overvoltage interrupt.
Definition: adc2.h:865
SCUPM_BDRV_IRQ_CTRL_VCP_LOWTH1_IE_Msk
#define SCUPM_BDRV_IRQ_CTRL_VCP_LOWTH1_IE_Msk
Definition: tle986x.h:9285
SCUPM_SYS_SUPPLY_IRQ_CTRL_VDD5V_OV_IE_Msk
#define SCUPM_SYS_SUPPLY_IRQ_CTRL_VDD5V_OV_IE_Msk
Definition: tle986x.h:9542
SCUPM_SYS_SUPPLY_IRQ_CTRL_VDD1V5_UV_IE_Msk
#define SCUPM_SYS_SUPPLY_IRQ_CTRL_VDD1V5_UV_IE_Msk
Definition: tle986x.h:9548
ADC2_Temp_Warn_Int_En
INLINE void ADC2_Temp_Warn_Int_En(void)
enables System Overtemperature Prewarning interrupt.
Definition: adc2.h:1546
ADC2_VCP_OV_Int_Dis
INLINE void ADC2_VCP_OV_Int_Dis(void)
disables Charge Pump MU High interrupt.
Definition: adc2.h:1158
SCUPM_SYS_IRQ_CTRL_SYS_OT_IE_Msk
#define SCUPM_SYS_IRQ_CTRL_SYS_OT_IE_Msk
Definition: tle986x.h:9430
SCUPM_SYS_SUPPLY_IRQ_CLR_VS_UV_ICLR_Pos
#define SCUPM_SYS_SUPPLY_IRQ_CLR_VS_UV_ICLR_Pos
Definition: tle986x.h:9534
tle_variants.h
Device specific memory layout defines.
ADC2_VSD_OV_Int_En
INLINE void ADC2_VSD_OV_Int_En(void)
enables Driver Supply MU High interrupt.
Definition: adc2.h:1045
SCUPM_SYS_SUPPLY_IRQ_CLR_VBAT_UV_ICLR_Msk
#define SCUPM_SYS_SUPPLY_IRQ_CLR_VBAT_UV_ICLR_Msk
Definition: tle986x.h:9537
ADC2_VCP_OV_Int_En
INLINE void ADC2_VCP_OV_Int_En(void)
enables Charge Pump MU High interrupt.
Definition: adc2.h:1135
SCUPM_SYS_ISCLR_SYS_OT_ICLR_Pos
#define SCUPM_SYS_ISCLR_SYS_OT_ICLR_Pos
Definition: tle986x.h:9491
SCUPM_BDRV_ISCLR_VCP_LOWTH1_ICLR_Pos
#define SCUPM_BDRV_ISCLR_VCP_LOWTH1_ICLR_Pos
Definition: tle986x.h:9358
uint8
unsigned char uint8
8 bit unsigned value
Definition: types.h:139
ADC2_VDDC_UV_Int_En
INLINE void ADC2_VDDC_UV_Int_En(void)
enables VDDC Undervoltage interrupt.
Definition: adc2.h:1000
Field_Wrt32
INLINE void Field_Wrt32(volatile uint32 *reg, uint32 pos, uint32 msk, uint32 val)
This function writes a bit field in a 32-bit register.
Definition: sfr_access.h:341
SCUPM_SYS_ISCLR_PMU_OT_ICLR_Pos
#define SCUPM_SYS_ISCLR_PMU_OT_ICLR_Pos
Definition: tle986x.h:9495
u8_Field_Rd32
INLINE uint8 u8_Field_Rd32(const volatile uint32 *reg, uint32 pos, uint32 msk)
This function reads a 8-bit field of a 32-bit register.
Definition: sfr_access.h:416
SCUPM_BDRV_ISCLR_VSD_LOWTH_ICLR_Msk
#define SCUPM_BDRV_ISCLR_VSD_LOWTH_ICLR_Msk
Definition: tle986x.h:9355
SCUPM_SYS_ISCLR_SYS_OTWARN_ICLR_Msk
#define SCUPM_SYS_ISCLR_SYS_OTWARN_ICLR_Msk
Definition: tle986x.h:9494
ADC2_VBAT
#define ADC2_VBAT
ADC2 channel selection macro, channel 0 - VBAT.
Definition: adc2.h:165
ADC2_TEMP
#define ADC2_TEMP
ADC2 channel selection macro, channel 9 - TEMP.
Definition: adc2.h:183
ADC2_VS
#define ADC2_VS
ADC2 channel selection macro, channel 1 - VS.
Definition: adc2.h:167
SCUPM_SYS_ISCLR_PMU_OT_ICLR_Msk
#define SCUPM_SYS_ISCLR_PMU_OT_ICLR_Msk
Definition: tle986x.h:9496
SCUPM_BDRV_ISCLR_VCP_LOWTH1_ICLR_Msk
#define SCUPM_BDRV_ISCLR_VCP_LOWTH1_ICLR_Msk
Definition: tle986x.h:9359
ADC2_VBG_Result_mV
INLINE uint16 ADC2_VBG_Result_mV(void)
returns the Voltage of the VBG line (ADC2 Channel 7) in millivolt (mV)
Definition: adc2.h:1965
SCUPM_SYS_SUPPLY_IRQ_CTRL_VDD1V5_OV_IE_Pos
#define SCUPM_SYS_SUPPLY_IRQ_CTRL_VDD1V5_OV_IE_Pos
Definition: tle986x.h:9539
SCUPM_SYS_SUPPLY_IRQ_CLR_VBAT_UV_ICLR_Pos
#define SCUPM_SYS_SUPPLY_IRQ_CLR_VBAT_UV_ICLR_Pos
Definition: tle986x.h:9536
uint32
unsigned int uint32
32 bit unsigned value
Definition: types.h:141
CONV_COEFF_mV_TO_degC
#define CONV_COEFF_mV_TO_degC
Conversion coefficient from V_Temp (mV) to Temperature (°C) multiplied by V_TEMP_SCALE_FACT.
Definition: adc2.h:162
ADC2_VBG_UV_Int_Dis
INLINE void ADC2_VBG_UV_Int_Dis(void)
disables 8 Bit ADC2 Reference Undervoltage interrupt.
Definition: adc2.h:1477
ADC2_CTRL_STS_VBAT_RANGE_Msk
#define ADC2_CTRL_STS_VBAT_RANGE_Msk
Definition: tle986x.h:6484
ADC2_VCP_UV_Int_Dis
INLINE void ADC2_VCP_UV_Int_Dis(void)
disables Charge Pump MU Low interrupt.
Definition: adc2.h:1203
ADC2_VDDC_Result_mV
INLINE uint16 ADC2_VDDC_Result_mV(void)
returns the Voltage of the VDDC line (ADC2 Channel 8) in millivolt (mV)
Definition: adc2.h:1992
ADC2_VDDC_UV_Int_Clr
INLINE void ADC2_VDDC_UV_Int_Clr(void)
clears VDDC Undervoltage Interrupt Status.
Definition: adc2.h:436
SCUPM_SYS_SUPPLY_IRQ_CLR_VDD1V5_UV_ICLR_Msk
#define SCUPM_SYS_SUPPLY_IRQ_CLR_VDD1V5_UV_ICLR_Msk
Definition: tle986x.h:9531
VSD_ATTEN_CONV_NOMIN
#define VSD_ATTEN_CONV_NOMIN
Nominator and Denominator of Attenuator Conversion formula for VSD: attenuator for VSD is 0....
Definition: adc2.h:121
ADC2_VDDP_OV_Int_Dis
INLINE void ADC2_VDDP_OV_Int_Dis(void)
disables VDDP Overvoltage interrupt.
Definition: adc2.h:888
ADC2_VDDC
#define ADC2_VDDC
ADC2 channel selection macro, channel 8 - VDDC.
Definition: adc2.h:181
SCUPM_SYS_SUPPLY_IRQ_CLR_VBAT_OV_ICLR_Pos
#define SCUPM_SYS_SUPPLY_IRQ_CLR_VBAT_OV_ICLR_Pos
Definition: tle986x.h:9528
ADC2_VDDP_Result_mV
INLINE uint16 ADC2_VDDP_Result_mV(void)
returns the Voltage of the VDDP line (ADC2 Channel 5) in millivolt (mV)
Definition: adc2.h:1911
SCUPM_SYS_SUPPLY_IRQ_CTRL_VS_OV_IE_Msk
#define SCUPM_SYS_SUPPLY_IRQ_CTRL_VS_OV_IE_Msk
Definition: tle986x.h:9544
SCUPM_SYS_ISCLR_SYS_OT_ICLR_Msk
#define SCUPM_SYS_ISCLR_SYS_OT_ICLR_Msk
Definition: tle986x.h:9492
ADC2_VDDP_UV_Int_En
INLINE void ADC2_VDDP_UV_Int_En(void)
enables VDDP Undervoltage interrupt.
Definition: adc2.h:910
SCUPM_SYS_SUPPLY_IRQ_CTRL_VDD5V_UV_IE_Msk
#define SCUPM_SYS_SUPPLY_IRQ_CTRL_VDD5V_UV_IE_Msk
Definition: tle986x.h:9550
ADC2_VCP_UV_Int_Clr
INLINE void ADC2_VCP_UV_Int_Clr(void)
clears Charge Pump MU Low Interrupt Status.
Definition: adc2.h:524
SCUPM_SYS_SUPPLY_IRQ_CTRL_VS_OV_IE_Pos
#define SCUPM_SYS_SUPPLY_IRQ_CTRL_VS_OV_IE_Pos
Definition: tle986x.h:9543
SCUPM_SYS_IRQ_CTRL_PMU_OT_IE_Msk
#define SCUPM_SYS_IRQ_CTRL_PMU_OT_IE_Msk
Definition: tle986x.h:9434
SCUPM_SYS_IRQ_CTRL_REFBG_UPTHWARN_IE_Msk
#define SCUPM_SYS_IRQ_CTRL_REFBG_UPTHWARN_IE_Msk
Definition: tle986x.h:9426
VS_ATTEN_CONV_NOMIN_MAX22V
#define VS_ATTEN_CONV_NOMIN_MAX22V
Nominator and Denominator of Attenuator Conversion formula for VS: attenuator for VS Range 0....
Definition: adc2.h:116
SCUPM_SYS_ISCLR_REFBG_LOTHWARN_ICLR_Msk
#define SCUPM_SYS_ISCLR_REFBG_LOTHWARN_ICLR_Msk
Definition: tle986x.h:9490
ADC2_VS_Result_mV
INLINE uint16 ADC2_VS_Result_mV(void)
returns the Voltage of the VS line (ADC2 Channel 1) in millivolt (mV)
Definition: adc2.h:1795
SCUPM_SYS_SUPPLY_IRQ_CTRL_VDD1V5_OV_IE_Msk
#define SCUPM_SYS_SUPPLY_IRQ_CTRL_VDD1V5_OV_IE_Msk
Definition: tle986x.h:9540
ADC2_VS_UV_Int_Clr
INLINE void ADC2_VS_UV_Int_Clr(void)
clears VS Undervoltage Interrupt Status.
Definition: adc2.h:348
tle986x.h
CMSIS register HeaderFile.
ADC2_VBG_OV_Int_Clr
INLINE void ADC2_VBG_OV_Int_Clr(void)
clears 8 Bit ADC2 Reference Overvoltage Interrupt Status.
Definition: adc2.h:638
SCUPM_SYS_ISCLR_PMU_OTWARN_ICLR_Msk
#define SCUPM_SYS_ISCLR_PMU_OTWARN_ICLR_Msk
Definition: tle986x.h:9498
VAREF_ATTEN_CONV_NOMIN
#define VAREF_ATTEN_CONV_NOMIN
Nominator and Denominator of Attenuator Conversion formula for VAREF: attenuator for VAREF is 0....
Definition: adc2.h:141
ADC2_Init
void ADC2_Init(void)
Initializes the ADC2 based on the IFXConfigWizard configuration.
ADC2_VS_Attenuator_Range_3_28V
#define ADC2_VS_Attenuator_Range_3_28V
Definition: adc2.h:249
SCUPM_SYS_SUPPLY_IRQ_CTRL_VS_UV_IE_Pos
#define SCUPM_SYS_SUPPLY_IRQ_CTRL_VS_UV_IE_Pos
Definition: tle986x.h:9551
VDDP_ATTEN_CONV_NOMIN
#define VDDP_ATTEN_CONV_NOMIN
Nominator and Denominator of Attenuator Conversion formula for VDDP: attenuator for VDDP is 0....
Definition: adc2.h:136
SCUPM_SYS_SUPPLY_IRQ_CLR_VDD5V_OV_ICLR_Msk
#define SCUPM_SYS_SUPPLY_IRQ_CLR_VDD5V_OV_ICLR_Msk
Definition: tle986x.h:9525
SCUPM_BDRV_ISCLR_VSD_LOWTH_ICLR_Pos
#define SCUPM_BDRV_ISCLR_VSD_LOWTH_ICLR_Pos
Definition: tle986x.h:9354
ADC2_VBG_UV_Int_Clr
INLINE void ADC2_VBG_UV_Int_Clr(void)
clears 8 Bit ADC2 Reference Undervoltage Interrupt Status.
Definition: adc2.h:660
VSD_ATTEN_CONV_DENOM
#define VSD_ATTEN_CONV_DENOM
Definition: adc2.h:122
ADC2_VS_Attenuator_Range_3_22V_Set
INLINE void ADC2_VS_Attenuator_Range_3_22V_Set(void)
sets ADC2 Channel 1 (VS) Attenuator Range to Range 1 (from 3 to 22 V).
Definition: adc2.h:281
VCP_ATTEN_CONV_DENOM
#define VCP_ATTEN_CONV_DENOM
Definition: adc2.h:127
SCUPM_BDRV_ISCLR_VCP_UPTH_ICLR_Pos
#define SCUPM_BDRV_ISCLR_VCP_UPTH_ICLR_Pos
Definition: tle986x.h:9356
ADC2_Temp_OT_Int_Dis
INLINE void ADC2_Temp_OT_Int_Dis(void)
disables System Overtemperature Shutdown interrupt.
Definition: adc2.h:1524
ADC2_VBG_UV_Int_En
INLINE void ADC2_VBG_UV_Int_En(void)
enables 8 Bit ADC2 Reference Undervoltage interrupt.
Definition: adc2.h:1454
ADC2_Temp_OT_Int_En
INLINE void ADC2_Temp_OT_Int_En(void)
enables System Overtemperature Shutdown interrupt.
Definition: adc2.h:1501
SCUPM_SYS_ISCLR_REFBG_UPTHWARN_ICLR_Msk
#define SCUPM_SYS_ISCLR_REFBG_UPTHWARN_ICLR_Msk
Definition: tle986x.h:9488
ADC2_VS_Attenuator_Range_Get
INLINE uint8 ADC2_VS_Attenuator_Range_Get(void)
gets ADC2 Channel 1 (VS) Attenuator Range.
Definition: adc2.h:303
SCUPM_SYS_SUPPLY_IRQ_CTRL_VS_UV_IE_Msk
#define SCUPM_SYS_SUPPLY_IRQ_CTRL_VS_UV_IE_Msk
Definition: tle986x.h:9552
SCUPM_SYS_IRQ_CTRL_SYS_OT_IE_Pos
#define SCUPM_SYS_IRQ_CTRL_SYS_OT_IE_Pos
Definition: tle986x.h:9429
SCUPM_SYS_IRQ_CTRL_SYS_OTWARN_IE_Pos
#define SCUPM_SYS_IRQ_CTRL_SYS_OTWARN_IE_Pos
Definition: tle986x.h:9431
SCUPM_SYS_ISCLR_SYS_OTWARN_ICLR_Pos
#define SCUPM_SYS_ISCLR_SYS_OTWARN_ICLR_Pos
Definition: tle986x.h:9493
ADC2_VS_OV_Int_Dis
INLINE void ADC2_VS_OV_Int_Dis(void)
disables VS Overvoltage interrupt.
Definition: adc2.h:798
ADC2_CTRL_STS_VBAT_RANGE_Pos
#define ADC2_CTRL_STS_VBAT_RANGE_Pos
Definition: tle986x.h:6483
SCUPM_BDRV_IRQ_CTRL_VCP_UPTH_IE_Msk
#define SCUPM_BDRV_IRQ_CTRL_VCP_UPTH_IE_Msk
Definition: tle986x.h:9283
ADC2_TEMP_WARN_Int_Clr
INLINE void ADC2_TEMP_WARN_Int_Clr(void)
clears System Overtemperature Prewarning Interrupt Status.
Definition: adc2.h:706
SCUPM_BDRV_IRQ_CTRL_VSD_LOWTH_IE_Pos
#define SCUPM_BDRV_IRQ_CTRL_VSD_LOWTH_IE_Pos
Definition: tle986x.h:9280
ADC2_VSD_UV_Int_Dis
INLINE void ADC2_VSD_UV_Int_Dis(void)
disables Driver Supply MU Low interrupt.
Definition: adc2.h:1113
SCUPM_SYS_SUPPLY_IRQ_CLR_VDD1V5_OV_ICLR_Pos
#define SCUPM_SYS_SUPPLY_IRQ_CLR_VDD1V5_OV_ICLR_Pos
Definition: tle986x.h:9522
ADC2_FILTOUT_MAX
#define ADC2_FILTOUT_MAX
ADC2 Filtered output register maximum value.
Definition: adc2.h:107
SCUPM_BDRV_IRQ_CTRL_VCP_UPTH_IE_Pos
#define SCUPM_BDRV_IRQ_CTRL_VCP_UPTH_IE_Pos
Definition: tle986x.h:9282
ADC2_VCP_UV_Int_En
INLINE void ADC2_VCP_UV_Int_En(void)
enables Charge Pump MU Low interrupt.
Definition: adc2.h:1180
SCUPM_BDRV_IRQ_CTRL_VSD_LOWTH_IE_Msk
#define SCUPM_BDRV_IRQ_CTRL_VSD_LOWTH_IE_Msk
Definition: tle986x.h:9281
VS_ATTEN_CONV_DENOM_MAX28V
#define VS_ATTEN_CONV_DENOM_MAX28V
Definition: adc2.h:112
V_TEMP_REF_OFFSET_mV
#define V_TEMP_REF_OFFSET_mV
Offset of V_Temp (mV) corresponding to 0 °C reference.
Definition: adc2.h:155
ADC2_VBG
#define ADC2_VBG
ADC2 channel selection macro, channel 7 - VBG.
Definition: adc2.h:179
VBG_ATTEN_CONV_NOMIN
#define VBG_ATTEN_CONV_NOMIN
Nominator and Denominator of Attenuator Conversion formula for VBG: attenuator for VBG is 0....
Definition: adc2.h:146
ADC2_VDDP_OV_Int_Clr
INLINE void ADC2_VDDP_OV_Int_Clr(void)
clears VDDP Overvoltage Interrupt Status.
Definition: adc2.h:370
SCUPM_SYS_SUPPLY_IRQ_CLR_VDD1V5_UV_ICLR_Pos
#define SCUPM_SYS_SUPPLY_IRQ_CLR_VDD1V5_UV_ICLR_Pos
Definition: tle986x.h:9530
SCUPM_SYS_SUPPLY_IRQ_CTRL_VDD1V5_UV_IE_Pos
#define SCUPM_SYS_SUPPLY_IRQ_CTRL_VDD1V5_UV_IE_Pos
Definition: tle986x.h:9547
ADC2_VS_OV_Int_En
INLINE void ADC2_VS_OV_Int_En(void)
enables VS Overvoltage interrupt.
Definition: adc2.h:775
ADC2_VS_Attenuator_Range_3_28V_Set
INLINE void ADC2_VS_Attenuator_Range_3_28V_Set(void)
sets ADC2 Channel 1 (VS) Attenuator Range to Range 2 (from 3 to 28 V).
Definition: adc2.h:264
ADC2_VSD
#define ADC2_VSD
ADC2 channel selection macro, channel 2 - VSD.
Definition: adc2.h:169
SCUPM_SYS_SUPPLY_IRQ_CLR_VDD5V_OV_ICLR_Pos
#define SCUPM_SYS_SUPPLY_IRQ_CLR_VDD5V_OV_ICLR_Pos
Definition: tle986x.h:9524
SCUPM_SYS_ISCLR_REFBG_LOTHWARN_ICLR_Pos
#define SCUPM_SYS_ISCLR_REFBG_LOTHWARN_ICLR_Pos
Definition: tle986x.h:9489
SCUPM_SYS_IRQ_CTRL_REFBG_UPTHWARN_IE_Pos
#define SCUPM_SYS_IRQ_CTRL_REFBG_UPTHWARN_IE_Pos
Definition: tle986x.h:9425