Infineon MOTIX™ MCU TLE985x Device Family SDK
adc2.h
Go to the documentation of this file.
1 /*
2  ***********************************************************************************************************************
3  *
4  * Copyright (c) 2018-2022, 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  **********************************************************************************************************************/
28 
40 /*******************************************************************************
41 ** Author(s) Identity **
42 ********************************************************************************
43 ** Initials Name **
44 ** ---------------------------------------------------------------------------**
45 ** TS T&S **
46 ** KC Kay Claussen **
47 ** BG Blandine Guillot **
48 ** JO Julia Ott **
49 *******************************************************************************/
50 
51 /*******************************************************************************
52 ** Revision Control History **
53 ********************************************************************************
54 ** V0.2.0: 2018-02-13, TS: Initial version of revision history **
55 ** V0.3.0: 2018-06-27, KC: ADC2_VS_OV_Int_Clr, ADC2_VS_UV_Int_Clr corrected **
56 ** Calculation of voltage for CH3 and CH4 corrected **
57 ** V0.3.1: 2018-10-17, TS: FILT_UPLO_CTRL initialization added **
58 ** V0.3.2: 2019-01-28, TS: __STATIC_INLINE changed to INLINE **
59 ** Doxygen update **
60 ** Revision history moved from adc2.c to adc2.h **
61 ** ADC2_GetChResult updated (adding a condition) **
62 ** V0.3.3: 2020-03-02, BG: Updated revision history format **
63 ** V0.3.4: 2020-07-28, JO: EP-435: Removed ARMCC v6 compiler warnings **
64 ** V0.3.5: 2022-01-21, JO: EP-934: Updated copyright and branding **
65 *******************************************************************************/
66 
67 #ifndef ADC2_H
68 #define ADC2_H
69 
70 /*******************************************************************************
71 ** Includes **
72 *******************************************************************************/
73 #include "tle985x.h"
74 #include "types.h"
75 #include "sfr_access.h"
76 
77 /*******************************************************************************
78 ** Global Constant Declarations **
79 *******************************************************************************/
81 #define ADC2_VREF (1.211F)
82 
84 #define ADC2_VS (0)
86 #define ADC2_VSD (1)
88 #define ADC2_VCP (2)
90 #define ADC2_VDDEXT (3)
92 #define ADC2_VDDP (4)
94 #define ADC2_VBG (5)
96 #define ADC2_VDDC (6)
98 #define ADC2_TEMP1 (7)
100 #define ADC2_TEMP2 (8)
101 
102 
103 /*******************************************************************************
104 ** Global Function Declarations **
105 *******************************************************************************/
110 void ADC2_Init(void);
111 
112 /*******************************************************************************
113 ** Inline Function Declarations **
114 *******************************************************************************/
134 
153 
171 
185 INLINE void ADC2_SOS_Set(void);
186 
202 INLINE void ADC2_SW_Channel_Sel(uint8 channel);
203 
219 
233 INLINE void ADC2_EIM_En(void);
234 
247 INLINE void ADC2_EIM_Dis(void);
248 
264 INLINE void ADC2_EIM_Channel_Set(uint8 channel);
265 
278 INLINE void ADC2_EIM_T3_GPT12_Sel(void);
279 
292 INLINE void ADC2_EIM_CP_Clk_Sel(void);
293 
311 INLINE void ADC2_VS_OV_Int_Clr(void);
312 
330 INLINE void ADC2_VS_UV_Int_Clr(void);
331 
349 INLINE void ADC2_VDDP_OV_Int_Clr(void);
350 
368 INLINE void ADC2_VDDP_UV_Int_Clr(void);
369 
387 INLINE void ADC2_VDDC_OV_Int_Clr(void);
388 
406 INLINE void ADC2_VDDC_UV_Int_Clr(void);
407 
425 INLINE void ADC2_VDDEXT_OV_Int_Clr(void);
426 
444 INLINE void ADC2_VDDEXT_UV_Int_Clr(void);
445 
463 INLINE void ADC2_VSD_OV_Int_Clr(void);
464 
482 INLINE void ADC2_VSD_UV_Int_Clr(void);
483 
501 INLINE void ADC2_VCP_OV_Int_Clr(void);
502 
520 INLINE void ADC2_VCP_UV_Int_Clr(void);
521 
539 INLINE void ADC2_VBG_OV_Int_Clr(void);
540 
558 INLINE void ADC2_VBG_UV_Int_Clr(void);
559 
577 INLINE void ADC2_TEMP_OT_Int_Clr(void);
578 
596 INLINE void ADC2_TEMP_WARN_Int_Clr(void);
597 
615 INLINE void BDRV_VCP_OTW_Int_Clr(void);
616 
634 INLINE void BDRV_VCP_OTSD_Int_Clr(void);
635 
653 INLINE void ADC2_VS_OV_Int_En(void);
654 
673 INLINE void ADC2_VS_OV_Int_Dis(void);
674 
692 INLINE void ADC2_VS_UV_Int_En(void);
693 
712 INLINE void ADC2_VS_UV_Int_Dis(void);
713 
731 INLINE void ADC2_VDDP_OV_Int_En(void);
732 
751 INLINE void ADC2_VDDP_OV_Int_Dis(void);
752 
770 INLINE void ADC2_VDDP_UV_Int_En(void);
771 
790 INLINE void ADC2_VDDP_UV_Int_Dis(void);
791 
809 INLINE void ADC2_VDDC_OV_Int_En(void);
810 
829 INLINE void ADC2_VDDC_OV_Int_Dis(void);
830 
848 INLINE void ADC2_VDDC_UV_Int_En(void);
849 
868 INLINE void ADC2_VDDC_UV_Int_Dis(void);
869 
887 INLINE void ADC2_VDDEXT_OV_Int_En(void);
888 
907 INLINE void ADC2_VDDEXT_OV_Int_Dis(void);
908 
926 INLINE void ADC2_VDDEXT_UV_Int_En(void);
927 
946 INLINE void ADC2_VDDEXT_UV_Int_Dis(void);
947 
965 INLINE void ADC2_VSD_OV_Int_En(void);
966 
985 INLINE void ADC2_VSD_OV_Int_Dis(void);
986 
1004 INLINE void ADC2_VSD_UV_Int_En(void);
1005 
1024 INLINE void ADC2_VSD_UV_Int_Dis(void);
1025 
1043 INLINE void ADC2_VCP_OV_Int_En(void);
1044 
1063 INLINE void ADC2_VCP_OV_Int_Dis(void);
1064 
1082 INLINE void ADC2_VCP_UV_Int_En(void);
1083 
1102 INLINE void ADC2_VCP_UV_Int_Dis(void);
1103 
1121 INLINE void ADC2_VBG_OV_Int_En(void);
1122 
1141 INLINE void ADC2_VBG_OV_Int_Dis(void);
1142 
1160 INLINE void ADC2_VBG_UV_Int_En(void);
1161 
1180 INLINE void ADC2_VBG_UV_Int_Dis(void);
1181 
1199 INLINE void ADC2_Temp_OT_Int_En(void);
1200 
1219 INLINE void ADC2_Temp_OT_Int_Dis(void);
1220 
1238 INLINE void ADC2_Temp_Warn_Int_En(void);
1239 
1258 INLINE void ADC2_Temp_Warn_Int_Dis(void);
1259 
1277 INLINE void ADC2_VCP_OTW_Int_En(void);
1278 
1297 INLINE void ADC2_VCP_OTW_Int_Dis(void);
1298 
1316 INLINE void ADC2_VCP_OTSD_Int_En(void);
1317 
1336 INLINE void ADC2_VCP_OTSD_Int_Dis(void);
1337 
1338 
1339 /*******************************************************************************
1340 ** Inline Function Definitions **
1341 *******************************************************************************/
1343 {
1344  uint16 Var;
1345  uint32 addr;
1346 
1347  if((uint8)ADC2_TEMP2 >= channel)
1348  {
1349  addr = (uint32)&ADC2->FILT_OUT0.reg;
1350  addr += (uint32)channel * 4u;
1352 
1353  }
1354  else
1355  {
1356  Var = 0;
1357  }
1358 
1359  return (Var);
1360 }
1361 
1363 {
1364  uint16 var;
1365  uint32 fs = 0u;
1366  uint16 res;
1367 
1368  var = ADC2_GetChResult(channel);
1369  if (channel < 2u)
1370  {
1371  /* 1.211 * 1000 / 0.039 / 1024 * 1024 */
1372  fs = 31051; /* ch0+1 in mV */
1373  }
1374  else if (channel < 3u)
1375  {
1376  /* 1.211 * 1000 / 0.023 */
1377  fs = 52652; /* ch2 in mV */
1378  }
1379  else if (channel < 5u)
1380  {
1381  /* 1.211 * 1000 / 0.195 */
1382  fs = 6210; /* ch3+4 in mV */
1383  }
1384  else if (channel < 7u)
1385  {
1386  /* 1.211 * 1000 / 0.75 */
1387  fs = 1615; /* ch5+6 in mV */
1388  }
1389  else
1390  {
1391  res = 0u; /* invalid channel */
1392  }
1393 
1394  /* Calculate mV = var * fs / 1024 */
1395  if (var > 0u)
1396  {
1397  res = (uint16)((uint32)((uint32)(var * fs) - (uint32)(fs / 2u)) / (uint16)1024u); /* calculate voltage in mV */
1398  }
1399  else
1400  {
1401  res = 0u; /* calculate voltage in mV */
1402  }
1403  return(res);
1404 }
1405 
1407 {
1408  uint16 var;
1409  sint16 res;
1410 
1411  var = ADC2_GetChResult(channel);
1412 
1413  if ((6u < channel) && (channel < 9u))
1414  {
1415  /* Calculate temperature in deg C = (var*131-69662) / 256 */
1416  res = (sint16)((((sint32)((sint32)(131) * (sint32)var)) - (sint32)69662) / (sint16)256);
1417  }
1418  else
1419  {
1420  res = 0; /* invalid channel */
1421  }
1422  return(res);
1423 }
1424 
1426 {
1428 }
1429 
1431 {
1433 }
1434 
1436 {
1438 }
1439 
1441 {
1443 }
1444 
1446 {
1448 }
1449 
1451 {
1453 }
1454 
1456 {
1458 }
1459 
1461 {
1463 }
1464 
1466 {
1468 }
1469 
1471 {
1473 }
1474 
1476 {
1478 }
1479 
1481 {
1483 }
1484 
1486 {
1488 }
1489 
1491 {
1493 }
1494 
1496 {
1498 }
1499 
1501 {
1503 }
1504 
1506 {
1508 }
1509 
1511 {
1513 }
1514 
1516 {
1518 }
1519 
1521 {
1523 }
1524 
1526 {
1528 }
1529 
1531 {
1533 }
1534 
1536 {
1538 }
1539 
1541 {
1543 }
1544 
1546 {
1548 }
1549 
1551 {
1553 }
1554 
1556 {
1558 }
1559 
1561 {
1563 }
1564 
1566 {
1568 }
1569 
1571 {
1573 }
1574 
1576 {
1578 }
1579 
1581 {
1583 }
1584 
1586 {
1588 }
1589 
1591 {
1593 }
1594 
1596 {
1598 }
1599 
1601 {
1603 }
1604 
1606 {
1608 }
1609 
1611 {
1613 }
1614 
1616 {
1618 }
1619 
1621 {
1623 }
1624 
1626 {
1628 }
1629 
1631 {
1633 }
1634 
1636 {
1638 }
1639 
1641 {
1643 }
1644 
1646 {
1648 }
1649 
1651 {
1653 }
1654 
1656 {
1658 }
1659 
1661 {
1663 }
1664 
1666 {
1668 }
1669 
1671 {
1673 }
1674 
1676 {
1678 }
1679 
1681 {
1683 }
1684 
1686 {
1688 }
1689 
1691 {
1693 }
1694 
1696 {
1698 }
1699 
1701 {
1703 }
1704 
1706 {
1708 }
1709 
1711 {
1713 }
1714 
1716 {
1718 }
1719 
1721 {
1723 }
1724 
1726 {
1728 }
1729 
1731 {
1733 }
1734 
1735 #endif
INLINE void ADC2_VDDP_OV_Int_Dis(void)
Disables VDDP Overvoltage interrupt.
Definition: adc2.h:1580
INLINE void ADC2_VDDP_UV_Int_En(void)
Enables VDDP Undervoltage interrupt.
Definition: adc2.h:1585
INLINE void ADC2_Temp_Warn_Int_Dis(void)
Disables System Overtemperature Prewarning interrupt.
Definition: adc2.h:1710
INLINE void ADC2_VSD_OV_Int_En(void)
Enables Driver Supply MU High interrupt.
Definition: adc2.h:1635
INLINE void ADC2_VDDEXT_UV_Int_Dis(void)
Disables VDDEXT Undervoltage interrupt.
Definition: adc2.h:1630
INLINE void ADC2_VDDP_UV_Int_Dis(void)
Disables VDDP Undervoltage interrupt.
Definition: adc2.h:1590
INLINE void ADC2_EIM_Dis(void)
Disables Exceptional interrupt measurement (EIM) Trigger Event.
Definition: adc2.h:1445
INLINE void ADC2_TEMP_WARN_Int_Clr(void)
Clears System Overtemperature Prewarning interrupt flag.
Definition: adc2.h:1540
INLINE void ADC2_VDDEXT_OV_Int_En(void)
Enables VDDEXT Overvoltage interrupt.
Definition: adc2.h:1615
INLINE void ADC2_EIM_En(void)
enables Exceptional interrupt measurement (EIM) Trigger Event.
Definition: adc2.h:1440
INLINE void ADC2_VDDC_OV_Int_En(void)
Enables VDDC Overvoltage interrupt.
Definition: adc2.h:1595
INLINE void BDRV_VCP_OTSD_Int_Clr(void)
Clears Charge Pump Over-temperature Shutdown interrupt flag.
Definition: adc2.h:1550
INLINE void ADC2_Temp_OT_Int_Dis(void)
Disables System Overtemperature Shutdown interrupt.
Definition: adc2.h:1700
INLINE sint16 ADC2_GetChResult_C(uint8 channel)
Returns the Result in degrees celsius of the selected ADC2 channels 7-8.
Definition: adc2.h:1406
INLINE void ADC2_VDDP_OV_Int_En(void)
Enables VDDP Overvoltage interrupt.
Definition: adc2.h:1575
INLINE void ADC2_EIM_CP_Clk_Sel(void)
Selects Exceptional interrupt measurement (EIM) CP_clk Trigger.
Definition: adc2.h:1460
INLINE uint16 ADC2_GetChResult(uint8 channel)
Returns the 10 bit wide result of the selected ADC2 channel.
Definition: adc2.h:1342
INLINE void ADC2_VCP_OTW_Int_En(void)
Enables Charge Pump Over-temperature Warning interrupt.
Definition: adc2.h:1715
INLINE void ADC2_VSD_UV_Int_En(void)
Enables Driver Supply MU Low interrupt.
Definition: adc2.h:1645
INLINE uint16 ADC2_GetChResult_mV(uint8 channel)
Returns the Result in mV of the selected ADC2 Channels 0-6.
Definition: adc2.h:1362
INLINE void ADC2_VDDC_UV_Int_Clr(void)
Clears VDDC Undervoltage interrupt flag.
Definition: adc2.h:1490
INLINE void ADC2_VCP_OV_Int_En(void)
Enables Charge Pump MU High interrupt.
Definition: adc2.h:1655
INLINE void ADC2_VDDEXT_UV_Int_Clr(void)
Clears VDDEXT Undervoltage interrupt flag.
Definition: adc2.h:1500
INLINE void ADC2_TEMP_OT_Int_Clr(void)
Clears System Overtemperature Shutdown interrupt flag.
Definition: adc2.h:1535
INLINE void ADC2_SOS_Set(void)
Starts an ADC2 Conversion, for Software mode only.
Definition: adc2.h:1425
INLINE void ADC2_VCP_OTSD_Int_Dis(void)
Disables Charge Pump Over-temperature Shutdown interrupt.
Definition: adc2.h:1730
INLINE void ADC2_VDDC_UV_Int_Dis(void)
Disables VDDC Undervoltage interrupt.
Definition: adc2.h:1610
INLINE void ADC2_VCP_OV_Int_Dis(void)
Disables Charge Pump MU High interrupt.
Definition: adc2.h:1660
INLINE void ADC2_VCP_UV_Int_Dis(void)
Disables Charge Pump MU Low interrupt.
Definition: adc2.h:1670
INLINE void ADC2_Temp_OT_Int_En(void)
Enables System Overtemperature Shutdown interrupt.
Definition: adc2.h:1695
INLINE void ADC2_VDDC_OV_Int_Clr(void)
Clears VDDC Overvoltage interrupt flag.
Definition: adc2.h:1485
INLINE void ADC2_VBG_OV_Int_Clr(void)
Clears 8 Bit ADC2 Reference Overvoltage interrupt flag.
Definition: adc2.h:1525
INLINE void ADC2_VS_UV_Int_Clr(void)
Clears VS Undervoltage interrupt flag.
Definition: adc2.h:1470
INLINE void ADC2_SW_Max_Time_Set(uint8 time)
Sets ADC2 maximum time in software mode.
Definition: adc2.h:1435
INLINE void ADC2_VSD_OV_Int_Clr(void)
Clears Driver Supply MU High interrupt flag.
Definition: adc2.h:1505
INLINE void ADC2_VDDP_OV_Int_Clr(void)
Clears VDDP Overvoltage interrupt flag.
Definition: adc2.h:1475
INLINE void ADC2_VBG_OV_Int_En(void)
Enables 8 Bit ADC2 Reference Overvoltage interrupt.
Definition: adc2.h:1675
INLINE void ADC2_Temp_Warn_Int_En(void)
Enables System Overtemperature Prewarning interrupt.
Definition: adc2.h:1705
INLINE void ADC2_VSD_UV_Int_Dis(void)
Disables Driver Supply MU Low interrupt.
Definition: adc2.h:1650
INLINE void ADC2_VDDEXT_UV_Int_En(void)
Enables VDDEXT Undervoltage interrupt.
Definition: adc2.h:1625
INLINE void ADC2_VCP_OTSD_Int_En(void)
Enables Charge Pump Over-temperature Shutdown interrupt.
Definition: adc2.h:1725
INLINE void ADC2_VBG_UV_Int_Clr(void)
Clears 8 Bit ADC2 Reference Overvoltage interrupt flag.
Definition: adc2.h:1530
INLINE void ADC2_VDDEXT_OV_Int_Dis(void)
Disables VDDEXT Overvoltage interrupt.
Definition: adc2.h:1620
INLINE void ADC2_VDDEXT_OV_Int_Clr(void)
Clears VDDEXT Overvoltage interrupt flag.
Definition: adc2.h:1495
INLINE void ADC2_VBG_UV_Int_En(void)
Enables 8 Bit ADC2 Reference Overvoltage interrupt.
Definition: adc2.h:1685
INLINE void ADC2_VS_UV_Int_Dis(void)
Disables VS Undervoltage interrupt flag.
Definition: adc2.h:1570
INLINE void ADC2_VS_OV_Int_Clr(void)
Clears VS Overvoltage interrupt flag.
Definition: adc2.h:1465
INLINE void ADC2_VBG_OV_Int_Dis(void)
Disables 8 Bit ADC2 Reference Overvoltage interrupt.
Definition: adc2.h:1680
INLINE void BDRV_VCP_OTW_Int_Clr(void)
Clears Charge Pump Over-temperature Warning interrupt flag.
Definition: adc2.h:1545
INLINE void ADC2_VS_OV_Int_Dis(void)
Disables VS Overvoltage interrupt.
Definition: adc2.h:1560
INLINE void ADC2_VCP_UV_Int_Clr(void)
Clears Charge Pump MU Low interrupt flag.
Definition: adc2.h:1520
INLINE void ADC2_SW_Channel_Sel(uint8 channel)
Selects ADC2 channel for the software conversion.
Definition: adc2.h:1430
INLINE void ADC2_EIM_T3_GPT12_Sel(void)
Selects Exceptional interrupt measurement (EIM) GPT12 Trigger.
Definition: adc2.h:1455
void ADC2_Init(void)
Initializes the ADC2 based on the Config Wizard configuration.
INLINE void ADC2_VSD_OV_Int_Dis(void)
Disables Driver Supply MU High interrupt.
Definition: adc2.h:1640
#define ADC2_TEMP2
ADC2 channel selection macro, channel 8 - TEMP2.
Definition: adc2.h:100
INLINE void ADC2_VDDC_UV_Int_En(void)
Enables VDDC Undervoltage interrupt.
Definition: adc2.h:1605
INLINE void ADC2_VCP_UV_Int_En(void)
Enables Charge Pump MU Low interrupt.
Definition: adc2.h:1665
INLINE void ADC2_VCP_OTW_Int_Dis(void)
Disables Charge Pump Over-temperature Warning interrupt.
Definition: adc2.h:1720
INLINE void ADC2_EIM_Channel_Set(uint8 channel)
Sets EIM channel for measurement.
Definition: adc2.h:1450
INLINE void ADC2_VCP_OV_Int_Clr(void)
Clears Charge Pump MU High interrupt flag.
Definition: adc2.h:1515
INLINE void ADC2_VS_OV_Int_En(void)
Enables VS Overvoltage interrupt.
Definition: adc2.h:1555
INLINE void ADC2_VSD_UV_Int_Clr(void)
Clears Driver Supply MU Low interrupt flag.
Definition: adc2.h:1510
INLINE void ADC2_VBG_UV_Int_Dis(void)
Disables 8 Bit ADC2 Reference Overvoltage interrupt.
Definition: adc2.h:1690
INLINE void ADC2_VS_UV_Int_En(void)
Enables VS Undervoltage interrupt flag.
Definition: adc2.h:1565
INLINE void ADC2_VDDP_UV_Int_Clr(void)
Clears VDDP Undervoltage interrupt flag.
Definition: adc2.h:1480
INLINE void ADC2_VDDC_OV_Int_Dis(void)
Disables VDDC Overvoltage interrupt.
Definition: adc2.h:1600
#define SCUPM
Definition: tle985x.h:6278
#define BDRV
Definition: tle985x.h:6267
#define ADC2
Definition: tle985x.h:6266
#define ADC2_CHx_EIM_CHx_SEL_Pos
Definition: tle985x.h:7202
#define ADC2_CTRL_STS_SOS_Pos
Definition: tle985x.h:7300
#define SCUPM_SYS_SUPPLY_IRQ_CTRL_VS_UV_IE_Pos
Definition: tle985x.h:10573
#define SCUPM_SYS_IRQ_CTRL_SYS_OTWARN_IE_Pos
Definition: tle985x.h:10467
#define BDRV_CP_IRQCLR_VCP_OTSD_ISC_Msk
Definition: tle985x.h:7625
#define SCUPM_SYS_SUPPLY_IRQ_CTRL_VDD5V_OV_IE_Msk
Definition: tle985x.h:10562
#define SCUPM_SYS_SUPPLY_IRQ_CTRL_VDD5V_UV_IE_Pos
Definition: tle985x.h:10569
#define SCUPM_SYS_SUPPLY_IRQ_CLR_VDD1V5_OV_ISC_Msk
Definition: tle985x.h:10543
#define ADC2_CHx_EIM_SEL_Pos
Definition: tle985x.h:7196
#define SCUPM_SYS_SUPPLY_IRQ_CTRL_VDD1V5_OV_IE_Pos
Definition: tle985x.h:10559
#define BDRV_CP_IRQCLR_VSD_UPTH_ISC_Msk
Definition: tle985x.h:7617
#define SCUPM_SYS_IRQ_CTRL_VREF1V2_UV_IE_Msk
Definition: tle985x.h:10464
#define ADC2_MAX_TIME_MAX_TIME_Pos
Definition: tle985x.h:7370
#define BDRV_CP_IRQEN_VSD_LOTH_IEN_Pos
Definition: tle985x.h:7631
#define SCUPM_SYS_SUPPLY_IRQ_CLR_VDDEXT_UV_ISC_Msk
Definition: tle985x.h:10555
#define SCUPM_SYS_SUPPLY_IRQ_CLR_VDD5V_OV_ISC_Msk
Definition: tle985x.h:10545
#define SCUPM_SYS_SUPPLY_IRQ_CLR_VDD5V_UV_ISC_Pos
Definition: tle985x.h:10552
#define SCUPM_SYS_SUPPLY_IRQ_CTRL_VDD5V_UV_IE_Msk
Definition: tle985x.h:10570
#define SCUPM_SYS_SUPPLY_IRQ_CTRL_VDD1V5_UV_IE_Pos
Definition: tle985x.h:10567
#define BDRV_CP_IRQCLR_VSD_LOTH_ISC_Pos
Definition: tle985x.h:7618
#define SCUPM_SYS_ISCLR_VREF1V2_UV_ISC_Msk
Definition: tle985x.h:10520
#define SCUPM_SYS_ISCLR_VREF1V2_UV_ISC_Pos
Definition: tle985x.h:10519
#define SCUPM_SYS_SUPPLY_IRQ_CTRL_VDD1V5_OV_IE_Msk
Definition: tle985x.h:10560
#define SCUPM_SYS_SUPPLY_IRQ_CLR_VDDEXT_OV_ISC_Msk
Definition: tle985x.h:10547
#define ADC2_CTRL_STS_IN_MUX_SEL_Msk
Definition: tle985x.h:7297
#define BDRV_CP_IRQCLR_VCP_LOTH1_ISC_Msk
Definition: tle985x.h:7623
#define BDRV_CP_IRQCLR_VSD_LOTH_ISC_Msk
Definition: tle985x.h:7619
#define SCUPM_SYS_IRQ_CTRL_SYS_OT_IE_Pos
Definition: tle985x.h:10465
#define SCUPM_SYS_SUPPLY_IRQ_CTRL_VDD5V_OV_IE_Pos
Definition: tle985x.h:10561
#define BDRV_CP_IRQEN_VCP_UPTH_IEN_Pos
Definition: tle985x.h:7633
#define SCUPM_SYS_ISCLR_SYS_OTWARN_ISC_Pos
Definition: tle985x.h:10523
#define SCUPM_SYS_IRQ_CTRL_SYS_OTWARN_IE_Msk
Definition: tle985x.h:10468
#define SCUPM_SYS_SUPPLY_IRQ_CLR_VDD5V_UV_ISC_Msk
Definition: tle985x.h:10553
#define SCUPM_SYS_SUPPLY_IRQ_CTRL_VDD1V5_UV_IE_Msk
Definition: tle985x.h:10568
#define SCUPM_SYS_SUPPLY_IRQ_CLR_VDD1V5_UV_ISC_Msk
Definition: tle985x.h:10551
#define ADC2_CHx_EIM_SEL_Msk
Definition: tle985x.h:7197
#define SCUPM_SYS_SUPPLY_IRQ_CLR_VDD1V5_OV_ISC_Pos
Definition: tle985x.h:10542
#define ADC2_CTRL_STS_SOS_Msk
Definition: tle985x.h:7301
#define ADC2_CHx_EIM_EN_Msk
Definition: tle985x.h:7199
#define BDRV_CP_IRQCLR_VCP_OTW_ISC_Pos
Definition: tle985x.h:7626
#define SCUPM_SYS_IRQ_CTRL_SYS_OT_IE_Msk
Definition: tle985x.h:10466
#define SCUPM_SYS_IRQ_CTRL_VREF1V2_UV_IE_Pos
Definition: tle985x.h:10463
#define SCUPM_SYS_SUPPLY_IRQ_CTRL_VDDEXT_OV_IE_Msk
Definition: tle985x.h:10564
#define BDRV_CP_IRQCLR_VCP_OTW_ISC_Msk
Definition: tle985x.h:7627
#define BDRV_CP_IRQEN_VCP_LOTH1_IEN_Msk
Definition: tle985x.h:7636
#define BDRV_CP_IRQCLR_VCP_LOTH1_ISC_Pos
Definition: tle985x.h:7622
#define BDRV_CP_IRQCLR_VSD_UPTH_ISC_Pos
Definition: tle985x.h:7616
#define ADC2_CTRL_STS_IN_MUX_SEL_Pos
Definition: tle985x.h:7296
#define SCUPM_SYS_ISCLR_VREF1V2_OV_ISC_Pos
Definition: tle985x.h:10517
#define BDRV_CP_IRQEN_VSD_LOTH_IEN_Msk
Definition: tle985x.h:7632
#define BDRV_CP_IRQEN_VCP_OTW_IEN_Pos
Definition: tle985x.h:7639
#define SCUPM_SYS_SUPPLY_IRQ_CLR_VDDEXT_UV_ISC_Pos
Definition: tle985x.h:10554
#define BDRV_CP_IRQEN_VCP_OTSD_IEN_Pos
Definition: tle985x.h:7637
#define BDRV_CP_IRQCLR_VCP_OTSD_ISC_Pos
Definition: tle985x.h:7624
#define SCUPM_SYS_SUPPLY_IRQ_CTRL_VS_OV_IE_Msk
Definition: tle985x.h:10566
#define BDRV_CP_IRQEN_VCP_UPTH_IEN_Msk
Definition: tle985x.h:7634
#define ADC2_FILT_OUT0_OUT_CH0_Msk
Definition: tle985x.h:7306
#define SCUPM_SYS_SUPPLY_IRQ_CLR_VDD1V5_UV_ISC_Pos
Definition: tle985x.h:10550
#define BDRV_CP_IRQEN_VCP_OTW_IEN_Msk
Definition: tle985x.h:7640
#define ADC2_CHx_EIM_CHx_SEL_Msk
Definition: tle985x.h:7203
#define ADC2_FILT_OUT0_OUT_CH0_Pos
Definition: tle985x.h:7305
#define SCUPM_SYS_ISCLR_SYS_OTWARN_ISC_Msk
Definition: tle985x.h:10524
#define SCUPM_SYS_SUPPLY_IRQ_CTRL_VDDEXT_OV_IE_Pos
Definition: tle985x.h:10563
#define SCUPM_SYS_ISCLR_VREF1V2_OV_ISC_Msk
Definition: tle985x.h:10518
#define SCUPM_SYS_SUPPLY_IRQ_CTRL_VDDEXT_UV_IE_Msk
Definition: tle985x.h:10572
#define SCUPM_SYS_SUPPLY_IRQ_CLR_VS_OV_ISC_Msk
Definition: tle985x.h:10549
#define BDRV_CP_IRQEN_VCP_OTSD_IEN_Msk
Definition: tle985x.h:7638
#define SCUPM_SYS_ISCLR_SYS_OT_ISC_Msk
Definition: tle985x.h:10522
#define SCUPM_SYS_SUPPLY_IRQ_CLR_VDD5V_OV_ISC_Pos
Definition: tle985x.h:10544
#define BDRV_CP_IRQCLR_VCP_UPTH_ISC_Msk
Definition: tle985x.h:7621
#define SCUPM_SYS_SUPPLY_IRQ_CLR_VS_UV_ISC_Pos
Definition: tle985x.h:10556
#define BDRV_CP_IRQEN_VSD_UPTH_IEN_Msk
Definition: tle985x.h:7630
#define SCUPM_SYS_SUPPLY_IRQ_CLR_VDDEXT_OV_ISC_Pos
Definition: tle985x.h:10546
#define BDRV_CP_IRQEN_VSD_UPTH_IEN_Pos
Definition: tle985x.h:7629
#define ADC2_CHx_EIM_EN_Pos
Definition: tle985x.h:7198
#define SCUPM_SYS_SUPPLY_IRQ_CLR_VS_UV_ISC_Msk
Definition: tle985x.h:10557
#define BDRV_CP_IRQCLR_VCP_UPTH_ISC_Pos
Definition: tle985x.h:7620
#define SCUPM_SYS_SUPPLY_IRQ_CTRL_VS_UV_IE_Msk
Definition: tle985x.h:10574
#define BDRV_CP_IRQEN_VCP_LOTH1_IEN_Pos
Definition: tle985x.h:7635
#define SCUPM_SYS_IRQ_CTRL_VREF1V2_OV_IE_Msk
Definition: tle985x.h:10462
#define SCUPM_SYS_IRQ_CTRL_VREF1V2_OV_IE_Pos
Definition: tle985x.h:10461
#define SCUPM_SYS_SUPPLY_IRQ_CLR_VS_OV_ISC_Pos
Definition: tle985x.h:10548
#define SCUPM_SYS_ISCLR_SYS_OT_ISC_Pos
Definition: tle985x.h:10521
#define ADC2_MAX_TIME_MAX_TIME_Msk
Definition: tle985x.h:7371
#define SCUPM_SYS_SUPPLY_IRQ_CTRL_VDDEXT_UV_IE_Pos
Definition: tle985x.h:10571
#define SCUPM_SYS_SUPPLY_IRQ_CTRL_VS_OV_IE_Pos
Definition: tle985x.h:10565
SFR low level access library.
INLINE uint16 u16_Field_Rd32(const volatile uint32 *reg, uint8 pos, uint32 msk)
This function reads a 16-bit field of a 32-bit register.
Definition: sfr_access.h:448
INLINE void Field_Wrt32(volatile uint32 *reg, uint8 pos, uint32 msk, uint32 val)
This function writes a bit field in a 32-bit register.
Definition: sfr_access.h:358
INLINE void Field_Mod32(volatile uint32 *reg, uint8 pos, uint32 msk, uint32 val)
This function writes a bit field in a 32-bit register.
Definition: sfr_access.h:378
CMSIS register HeaderFile.
General type declarations.
#define INLINE
Definition: types.h:145
uint8_t uint8
8 bit unsigned value
Definition: types.h:153
int32_t sint32
32 bit signed value
Definition: types.h:160
int16_t sint16
16 bit signed value
Definition: types.h:159
uint16_t uint16
16 bit unsigned value
Definition: types.h:154
uint32_t uint32
32 bit unsigned value
Definition: types.h:155