81 #define ADC2_VREF (1.211F)
90 #define ADC2_VDDEXT (3)
98 #define ADC2_TEMP1 (7)
100 #define ADC2_TEMP2 (8)
1350 addr += (
uint32)channel * 4u;
1374 else if (channel < 3u)
1379 else if (channel < 5u)
1384 else if (channel < 7u)
1413 if ((6u < channel) && (channel < 9u))
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