Infineon MOTIX™ MCU TLE987x Device Family SDK
Macros | Functions
adc2.h File Reference

Go to the source code of this file.

Detailed Description

ADC2 low level access library.

Version
V0.2.6
Date
28. Feb 2022
Note
This file violates [MISRA Rule 45]

Include Graph

Include dependency graph for adc2.h:

Macros

#define ADC2_VREF   (1.211F)
 ADC2 \( V_{BG}\) in Volts. More...
 
#define ADC2_VREF_mV   (1211)
 ADC2 \( V_{BG}\) (1.211 V) in millivolts. More...
 
#define ADC2_FILTOUT_MAX   (1023u)
 ADC2 Filtered output register maximum value. More...
 
#define VS_ATTEN_CONV_NOMIN_MAX28V   (1000u)
 Nominator and Denominator of Attenuator Conversion formula for VS: attenuator for VS Range 0..28V is 0.039 => Inverse fraction (1000/39) More...
 
#define VS_ATTEN_CONV_DENOM_MAX28V   (39u)
 
#define VS_ATTEN_CONV_NOMIN_MAX22V   (200u)
 Nominator and Denominator of Attenuator Conversion formula for VS: attenuator for VS Range 0..22V is 0.055 => Inverse fraction (200/11) More...
 
#define VS_ATTEN_CONV_DENOM_MAX22V   (11u)
 
#define VSD_ATTEN_CONV_NOMIN   (1000u)
 Nominator and Denominator of Attenuator Conversion formula for VSD: attenuator for VSD is 0.039 => Inverse fraction (1000/39) More...
 
#define VSD_ATTEN_CONV_DENOM   (39u)
 
#define VCP_ATTEN_CONV_NOMIN   (1000u)
 Nominator and Denominator of Attenuator Conversion formula for VCP: attenuator for VCP is 0.023 => Inverse fraction (1000/23) More...
 
#define VCP_ATTEN_CONV_DENOM   (23u)
 
#define MON_ATTEN_CONV_NOMIN   (1000u)
 Nominator and Denominator of Attenuator Conversion formula for MON: attenuator for MON is 0.039 => Inverse fraction (1000/39) More...
 
#define MON_ATTEN_CONV_DENOM   (39u)
 
#define VDDP_ATTEN_CONV_NOMIN   (250u)
 Nominator and Denominator of Attenuator Conversion formula for VDDP: attenuator for VDDP is 0.164 => Inverse fraction (250/41) More...
 
#define VDDP_ATTEN_CONV_DENOM   (41u)
 
#define VAREF_ATTEN_CONV_NOMIN   (1000u)
 Nominator and Denominator of Attenuator Conversion formula for VAREF: attenuator for VAREF is 0.219 => Inverse fraction (1000/219) More...
 
#define VAREF_ATTEN_CONV_DENOM   (219u)
 
#define VBG_ATTEN_CONV_NOMIN   (4u)
 Nominator and Denominator of Attenuator Conversion formula for VBG: attenuator for VBG is 0.75 => Inverse fraction (4/3) More...
 
#define VBG_ATTEN_CONV_DENOM   (3u)
 
#define VDDC_ATTEN_CONV_NOMIN   (4u)
 Nominator and Denominator of Attenuator Conversion formula for VDDC: attenuator for VDDC is 0.75 => Inverse fraction (4/3) More...
 
#define VDDC_ATTEN_CONV_DENOM   (3u)
 
#define V_TEMP_REF_OFFSET_mV   (666u)
 Offset of V_Temp (mV) corresponding to 0 °C reference. More...
 
#define V_TEMP_SCALE_FACT   (100u)
 Scaling factor for V_Temp (mV) More...
 
#define CONV_COEFF_mV_TO_degC   (231u)
 Conversion coefficient from V_Temp (mV) to Temperature (°C) multiplied by V_TEMP_SCALE_FACT. More...
 
#define ADC2_VBAT   (0)
 ADC2 channel selection macro, channel 0 - VBAT. More...
 
#define ADC2_VS   (1)
 ADC2 channel selection macro, channel 1 - VS. More...
 
#define ADC2_VSD   (2)
 ADC2 channel selection macro, channel 2 - VSD. More...
 
#define ADC2_VCP   (3)
 ADC2 channel selection macro, channel 3 - VCP. More...
 
#define ADC2_MON   (4)
 ADC2 channel selection macro, channel 4 - MON. More...
 
#define ADC2_VDDP   (5)
 ADC2 channel selection macro, channel 5 - VDDP. More...
 
#define ADC2_VAREF   (6)
 ADC2 channel selection macro, channel 6 - VAREF. More...
 
#define ADC2_VBG   (7)
 ADC2 channel selection macro, channel 7 - VBG. More...
 
#define ADC2_VDDC   (8)
 ADC2 channel selection macro, channel 8 - VDDC. More...
 
#define ADC2_TEMP   (9)
 ADC2 channel selection macro, channel 9 - TEMP. More...
 
#define ADC2_VBat_Attenuator_Range_3_28V   (1u)
 
#define ADC2_VBat_Attenuator_Range_3_22V   (0u)
 
#define ADC2_VS_Attenuator_Range_3_28V   (1u)
 
#define ADC2_VS_Attenuator_Range_3_22V   (0u)
 

Functions

INLINE void ADC2_VBat_Attenuator_Range_3_28V_Set (void)
 sets ADC2 Channel 0 (VBat) Attenuator Range to Range 2 (from 3 to 28 V). More...
 
INLINE void ADC2_VBat_Attenuator_Range_3_22V_Set (void)
 sets ADC2 Channel 0 (VBat) Attenuator Range to Range 1 (from 3 to 22 V). More...
 
INLINE uint8 ADC2_VBat_Attenuator_Range_Get (void)
 gets ADC2 Channel 0 (VBat) Attenuator Range. More...
 
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). More...
 
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). More...
 
INLINE uint8 ADC2_VS_Attenuator_Range_Get (void)
 gets ADC2 Channel 1 (VS) Attenuator Range. More...
 
INLINE void ADC2_VS_OV_Int_Clr (void)
 clears VS Overvoltage Interrupt Status. More...
 
INLINE void ADC2_VS_UV_Int_Clr (void)
 clears VS Undervoltage Interrupt Status. More...
 
INLINE void ADC2_VDDP_OV_Int_Clr (void)
 clears VDDP Overvoltage Interrupt Status. More...
 
INLINE void ADC2_VDDP_UV_Int_Clr (void)
 clears VDDP Undervoltage Interrupt Status. More...
 
INLINE void ADC2_VDDC_OV_Int_Clr (void)
 clears VDDC Overvoltage Interrupt Status. More...
 
INLINE void ADC2_VDDC_UV_Int_Clr (void)
 clears VDDC Undervoltage Interrupt Status. More...
 
INLINE void ADC2_VSD_OV_Int_Clr (void)
 clears Driver Supply MU High Interrupt Status. More...
 
INLINE void ADC2_VSD_UV_Int_Clr (void)
 clears Driver Supply MU Low interrupt flag. More...
 
INLINE void ADC2_VCP_OV_Int_Clr (void)
 clears Charge Pump MU High Interrupt Status. More...
 
INLINE void ADC2_VCP_UV_Int_Clr (void)
 clears Charge Pump MU Low Interrupt Status. More...
 
INLINE void ADC2_VBAT_OV_Int_Clr (void)
 clears VBAT Overvoltage Interrupt Status. More...
 
INLINE void ADC2_VBAT_UV_Int_Clr (void)
 clears VBAT Undervoltage Interrupt Status. More...
 
INLINE void ADC2_MON_OV_Int_Clr (void)
 clears MON Overvoltage Interrupt Status. More...
 
INLINE void ADC2_MON_UV_Int_Clr (void)
 clears MON Undervoltage Interrupt Status. More...
 
INLINE void ADC2_VBG_OV_Int_Clr (void)
 clears 8 Bit ADC2 Reference Overvoltage Interrupt Status. More...
 
INLINE void ADC2_VBG_UV_Int_Clr (void)
 clears 8 Bit ADC2 Reference Undervoltage Interrupt Status. More...
 
INLINE void ADC2_TEMP_OT_Int_Clr (void)
 clears System Overtemperature Shutdown Interrupt Status. More...
 
INLINE void ADC2_TEMP_WARN_Int_Clr (void)
 clears System Overtemperature Prewarning Interrupt Status. More...
 
INLINE void ADC2_VS_OV_Int_En (void)
 enables VS Overvoltage interrupt. More...
 
INLINE void ADC2_VS_OV_Int_Dis (void)
 disables VS Overvoltage interrupt. More...
 
INLINE void ADC2_VS_UV_Int_En (void)
 enables VS Undervoltage interrupt. More...
 
INLINE void ADC2_VS_UV_Int_Dis (void)
 disables VS Undervoltage interrupt. More...
 
INLINE void ADC2_VDDP_OV_Int_En (void)
 enables VDDP Overvoltage interrupt. More...
 
INLINE void ADC2_VDDP_OV_Int_Dis (void)
 disables VDDP Overvoltage interrupt. More...
 
INLINE void ADC2_VDDP_UV_Int_En (void)
 enables VDDP Undervoltage interrupt. More...
 
INLINE void ADC2_VDDP_UV_Int_Dis (void)
 disables VDDP Undervoltage interrupt. More...
 
INLINE void ADC2_VDDC_OV_Int_En (void)
 enables VDDC Overvoltage interrupt. More...
 
INLINE void ADC2_VDDC_OV_Int_Dis (void)
 disables VDDC Overvoltage interrupt. More...
 
INLINE void ADC2_VDDC_UV_Int_En (void)
 enables VDDC Undervoltage interrupt. More...
 
INLINE void ADC2_VDDC_UV_Int_Dis (void)
 disables VDDC Undervoltage interrupt. More...
 
INLINE void ADC2_VSD_OV_Int_En (void)
 enables Driver Supply MU High interrupt. More...
 
INLINE void ADC2_VSD_OV_Int_Dis (void)
 disables Driver Supply MU High interrupt. More...
 
INLINE void ADC2_VSD_UV_Int_En (void)
 enables Driver Supply MU Low interrupt. More...
 
INLINE void ADC2_VSD_UV_Int_Dis (void)
 disables Driver Supply MU Low interrupt. More...
 
INLINE void ADC2_VCP_OV_Int_En (void)
 enables Charge Pump MU High interrupt. More...
 
INLINE void ADC2_VCP_OV_Int_Dis (void)
 disables Charge Pump MU High interrupt. More...
 
INLINE void ADC2_VCP_UV_Int_En (void)
 enables Charge Pump MU Low interrupt. More...
 
INLINE void ADC2_VCP_UV_Int_Dis (void)
 disables Charge Pump MU Low interrupt. More...
 
INLINE void ADC2_VBAT_OV_Int_En (void)
 enables VBAT Overvoltage Interrupt. More...
 
INLINE void ADC2_VBAT_OV_Int_Dis (void)
 disables VBAT Overvoltage Interrupt. More...
 
INLINE void ADC2_VBAT_UV_Int_En (void)
 enables VBAT Undervoltage Interrupt. More...
 
INLINE void ADC2_VBAT_UV_Int_Dis (void)
 disables VBAT Undervoltage Interrupt. More...
 
INLINE void ADC2_MON_OV_Int_En (void)
 enables MON Overvoltage Interrupt. More...
 
INLINE void ADC2_MON_OV_Int_Dis (void)
 disables MON Overvoltage Interrupt. More...
 
INLINE void ADC2_MON_UV_Int_En (void)
 enables MON Undervoltage Interrupt. More...
 
INLINE void ADC2_MON_UV_Int_Dis (void)
 disables MON Undervoltage Interrupt. More...
 
INLINE void ADC2_VBG_OV_Int_En (void)
 enables 8 Bit ADC2 Reference Overvoltage interrupt. More...
 
INLINE void ADC2_VBG_OV_Int_Dis (void)
 disables 8 Bit ADC2 Reference Overvoltage interrupt. More...
 
INLINE void ADC2_VBG_UV_Int_En (void)
 enables 8 Bit ADC2 Reference Undervoltage interrupt. More...
 
INLINE void ADC2_VBG_UV_Int_Dis (void)
 disables 8 Bit ADC2 Reference Undervoltage interrupt. More...
 
INLINE void ADC2_Temp_OT_Int_En (void)
 enables System Overtemperature Shutdown interrupt. More...
 
INLINE void ADC2_Temp_OT_Int_Dis (void)
 disables System Overtemperature Shutdown interrupt. More...
 
INLINE void ADC2_Temp_Warn_Int_En (void)
 enables System Overtemperature Prewarning interrupt. More...
 
INLINE void ADC2_Temp_Warn_Int_Dis (void)
 disables System Overtemperature Prewarning interrupt. More...
 
void ADC2_Init (void)
 Initializes the ADC2 module based on the Config Wizard for MOTIX MCU configuration. More...
 
INLINE uint16 ADC2_GetChResult (uint8 channel)
 Returns the 10 bit wide result of the selected ADC2 channel. More...
 
INLINE uint16 ADC2_VBat_Result_mV (void)
 returns the Voltage of the VBAT line (ADC2 Channel 0 in TLE986x) in millivolt (mV) More...
 
INLINE uint16 ADC2_VS_Result_mV (void)
 returns the Voltage of the VS line (ADC2 Channel 1) in millivolt (mV) More...
 
INLINE uint16 ADC2_VSD_Result_mV (void)
 returns the Voltage of the VSD line (ADC2 Channel 2) in millivolt More...
 
INLINE uint16 ADC2_VCP_Result_mV (void)
 returns the Voltage of the VCP line (ADC2 Channel 3) in millivolt (mV) More...
 
INLINE uint16 ADC2_MON_Result_mV (void)
 returns the Voltage of the MON line (ADC2 Channel 4) in millivolt (mV) More...
 
INLINE uint16 ADC2_VAREF_Result_mV (void)
 returns the Voltage of the VAREF line (ADC2 Channel 6) in millivolt (mV) More...
 
INLINE uint16 ADC2_VDDP_Result_mV (void)
 returns the Voltage of the VDDP line (ADC2 Channel 5) in millivolt (mV) More...
 
INLINE uint16 ADC2_VBG_Result_mV (void)
 returns the Voltage of the VBG line (ADC2 Channel 7) in millivolt (mV) More...
 
INLINE uint16 ADC2_VDDC_Result_mV (void)
 returns the Voltage of the VDDC line (ADC2 Channel 8) in millivolt (mV) More...
 
INLINE sint16 ADC2_Temp_Result_C (void)
 Returns the Temperature read by the ADC2 Channel 9 in degrees Celsius (°C). More...
 

Macro Definition Documentation

◆ ADC2_FILTOUT_MAX

#define ADC2_FILTOUT_MAX   (1023u)

ADC2 Filtered output register maximum value.

◆ ADC2_MON

#define ADC2_MON   (4)

ADC2 channel selection macro, channel 4 - MON.

◆ ADC2_TEMP

#define ADC2_TEMP   (9)

ADC2 channel selection macro, channel 9 - TEMP.

◆ ADC2_VAREF

#define ADC2_VAREF   (6)

ADC2 channel selection macro, channel 6 - VAREF.

◆ ADC2_VBAT

#define ADC2_VBAT   (0)

ADC2 channel selection macro, channel 0 - VBAT.

◆ ADC2_VBat_Attenuator_Range_3_22V

#define ADC2_VBat_Attenuator_Range_3_22V   (0u)

◆ ADC2_VBat_Attenuator_Range_3_28V

#define ADC2_VBat_Attenuator_Range_3_28V   (1u)

◆ ADC2_VBG

#define ADC2_VBG   (7)

ADC2 channel selection macro, channel 7 - VBG.

◆ ADC2_VCP

#define ADC2_VCP   (3)

ADC2 channel selection macro, channel 3 - VCP.

◆ ADC2_VDDC

#define ADC2_VDDC   (8)

ADC2 channel selection macro, channel 8 - VDDC.

◆ ADC2_VDDP

#define ADC2_VDDP   (5)

ADC2 channel selection macro, channel 5 - VDDP.

◆ ADC2_VREF

#define ADC2_VREF   (1.211F)

ADC2 \( V_{BG}\) in Volts.

◆ ADC2_VREF_mV

#define ADC2_VREF_mV   (1211)

ADC2 \( V_{BG}\) (1.211 V) in millivolts.

◆ ADC2_VS

#define ADC2_VS   (1)

ADC2 channel selection macro, channel 1 - VS.

◆ ADC2_VS_Attenuator_Range_3_22V

#define ADC2_VS_Attenuator_Range_3_22V   (0u)

◆ ADC2_VS_Attenuator_Range_3_28V

#define ADC2_VS_Attenuator_Range_3_28V   (1u)

◆ ADC2_VSD

#define ADC2_VSD   (2)

ADC2 channel selection macro, channel 2 - VSD.

◆ CONV_COEFF_mV_TO_degC

#define CONV_COEFF_mV_TO_degC   (231u)

Conversion coefficient from V_Temp (mV) to Temperature (°C) multiplied by V_TEMP_SCALE_FACT.

◆ MON_ATTEN_CONV_DENOM

#define MON_ATTEN_CONV_DENOM   (39u)

◆ MON_ATTEN_CONV_NOMIN

#define MON_ATTEN_CONV_NOMIN   (1000u)

Nominator and Denominator of Attenuator Conversion formula for MON: attenuator for MON is 0.039 => Inverse fraction (1000/39)

◆ V_TEMP_REF_OFFSET_mV

#define V_TEMP_REF_OFFSET_mV   (666u)

Offset of V_Temp (mV) corresponding to 0 °C reference.

◆ V_TEMP_SCALE_FACT

#define V_TEMP_SCALE_FACT   (100u)

Scaling factor for V_Temp (mV)

◆ VAREF_ATTEN_CONV_DENOM

#define VAREF_ATTEN_CONV_DENOM   (219u)

◆ VAREF_ATTEN_CONV_NOMIN

#define VAREF_ATTEN_CONV_NOMIN   (1000u)

Nominator and Denominator of Attenuator Conversion formula for VAREF: attenuator for VAREF is 0.219 => Inverse fraction (1000/219)

◆ VBG_ATTEN_CONV_DENOM

#define VBG_ATTEN_CONV_DENOM   (3u)

◆ VBG_ATTEN_CONV_NOMIN

#define VBG_ATTEN_CONV_NOMIN   (4u)

Nominator and Denominator of Attenuator Conversion formula for VBG: attenuator for VBG is 0.75 => Inverse fraction (4/3)

◆ VCP_ATTEN_CONV_DENOM

#define VCP_ATTEN_CONV_DENOM   (23u)

◆ VCP_ATTEN_CONV_NOMIN

#define VCP_ATTEN_CONV_NOMIN   (1000u)

Nominator and Denominator of Attenuator Conversion formula for VCP: attenuator for VCP is 0.023 => Inverse fraction (1000/23)

◆ VDDC_ATTEN_CONV_DENOM

#define VDDC_ATTEN_CONV_DENOM   (3u)

◆ VDDC_ATTEN_CONV_NOMIN

#define VDDC_ATTEN_CONV_NOMIN   (4u)

Nominator and Denominator of Attenuator Conversion formula for VDDC: attenuator for VDDC is 0.75 => Inverse fraction (4/3)

◆ VDDP_ATTEN_CONV_DENOM

#define VDDP_ATTEN_CONV_DENOM   (41u)

◆ VDDP_ATTEN_CONV_NOMIN

#define VDDP_ATTEN_CONV_NOMIN   (250u)

Nominator and Denominator of Attenuator Conversion formula for VDDP: attenuator for VDDP is 0.164 => Inverse fraction (250/41)

◆ VS_ATTEN_CONV_DENOM_MAX22V

#define VS_ATTEN_CONV_DENOM_MAX22V   (11u)

◆ VS_ATTEN_CONV_DENOM_MAX28V

#define VS_ATTEN_CONV_DENOM_MAX28V   (39u)

◆ VS_ATTEN_CONV_NOMIN_MAX22V

#define VS_ATTEN_CONV_NOMIN_MAX22V   (200u)

Nominator and Denominator of Attenuator Conversion formula for VS: attenuator for VS Range 0..22V is 0.055 => Inverse fraction (200/11)

◆ VS_ATTEN_CONV_NOMIN_MAX28V

#define VS_ATTEN_CONV_NOMIN_MAX28V   (1000u)

Nominator and Denominator of Attenuator Conversion formula for VS: attenuator for VS Range 0..28V is 0.039 => Inverse fraction (1000/39)

◆ VSD_ATTEN_CONV_DENOM

#define VSD_ATTEN_CONV_DENOM   (39u)

◆ VSD_ATTEN_CONV_NOMIN

#define VSD_ATTEN_CONV_NOMIN   (1000u)

Nominator and Denominator of Attenuator Conversion formula for VSD: attenuator for VSD is 0.039 => Inverse fraction (1000/39)

Function Documentation

◆ ADC2_GetChResult()

INLINE uint16 ADC2_GetChResult ( uint8  channel)

Returns the 10 bit wide result of the selected ADC2 channel.

Returns 0 if the selected channel number is greater than 9

Parameters
channelselected ADC2 channel number (0 to 9)
Returns
10 bit wide result of the selected channel (FILT_OUT0 to FILT_OUT9)

Example

This example returns the ADC2 Channel 4 result value.

void Example_Function(void)
{
uint16 data;
data = ADC2_GetChResult(0x4);
}
INLINE uint16 ADC2_GetChResult(uint8 channel)
Returns the 10 bit wide result of the selected ADC2 channel.
Definition: adc2.h:1719
uint16_t uint16
16 bit unsigned value
Definition: types.h:154

◆ ADC2_Init()

void ADC2_Init ( void  )

Initializes the ADC2 module based on the Config Wizard for MOTIX MCU configuration.

◆ ADC2_MON_OV_Int_Clr()

INLINE void ADC2_MON_OV_Int_Clr ( void  )

clears MON Overvoltage Interrupt Status.

Example

This example treats the MON Overvoltage interrupt.

void Example_Function(void)
{
if (SCUPM->SYS_SUPPLY_IRQ_STS.bit.MON_OV_IS == 1u)
{
ADC2_MON_UP_CALLBACK();
}
}
INLINE void ADC2_MON_OV_Int_En(void)
enables MON Overvoltage Interrupt.
Definition: adc2.h:1328
INLINE void ADC2_MON_OV_Int_Clr(void)
clears MON Overvoltage Interrupt Status.
Definition: adc2.h:603
#define SCUPM
Definition: tle987x.h:6098

◆ ADC2_MON_OV_Int_Dis()

INLINE void ADC2_MON_OV_Int_Dis ( void  )

disables MON Overvoltage Interrupt.

Example

This example treats the MON Overvoltage interrupt.

void Example_Function(void)
{
if (SCUPM->SYS_SUPPLY_IRQ_STS.bit.MON_OV_IS == 1u)
{
ADC2_MON_UP_CALLBACK();
}
}
INLINE void ADC2_MON_OV_Int_Dis(void)
disables MON Overvoltage Interrupt.
Definition: adc2.h:1351

◆ ADC2_MON_OV_Int_En()

INLINE void ADC2_MON_OV_Int_En ( void  )

enables MON Overvoltage Interrupt.

Example

This example treats the MON Overvoltage interrupt.

void Example_Function(void)
{
if (SCUPM->SYS_SUPPLY_IRQ_STS.bit.MON_OV_IS == 1u)
{
ADC2_MON_UP_CALLBACK();
}
}

◆ ADC2_MON_Result_mV()

INLINE uint16 ADC2_MON_Result_mV ( void  )

returns the Voltage of the MON line (ADC2 Channel 4) in millivolt (mV)

calculated based on attenuator conversion factor as follows:



\( Voltage(mV) = \frac{ADC2.Digital.Result(bit)*(V_{BG}*1000)(mV)}{ADC2.Max.Digital.Value(bit)}*\frac{1000}{39}\)

Returns
Voltage of the MON line (ADC2 Channel 4) in millivolt (mV)

Example

This example returns the specified value./

void Example_Function(void)
{
uint16 data;
}
INLINE uint16 ADC2_MON_Result_mV(void)
returns the Voltage of the MON line (ADC2 Channel 4) in millivolt (mV)
Definition: adc2.h:1896

◆ ADC2_MON_UV_Int_Clr()

INLINE void ADC2_MON_UV_Int_Clr ( void  )

clears MON Undervoltage Interrupt Status.

Example

This example treats the MON Undervoltage interrupt.

void Example_Function(void)
{
if (SCUPM->SYS_SUPPLY_IRQ_STS.bit.MON_UV_IS == 1u)
{
ADC2_MON_LO_CALLBACK();
}
}
INLINE void ADC2_MON_UV_Int_Clr(void)
clears MON Undervoltage Interrupt Status.
Definition: adc2.h:625
INLINE void ADC2_MON_UV_Int_En(void)
enables MON Undervoltage Interrupt.
Definition: adc2.h:1373

◆ ADC2_MON_UV_Int_Dis()

INLINE void ADC2_MON_UV_Int_Dis ( void  )

disables MON Undervoltage Interrupt.

Example

This example treats the MON Undervoltage interrupt.

void Example_Function(void)
{
if (SCUPM->SYS_SUPPLY_IRQ_STS.bit.MON_UV_IS == 1u)
{
ADC2_MON_OL_CALLBACK();
}
}
INLINE void ADC2_MON_UV_Int_Dis(void)
disables MON Undervoltage Interrupt.
Definition: adc2.h:1396

◆ ADC2_MON_UV_Int_En()

INLINE void ADC2_MON_UV_Int_En ( void  )

enables MON Undervoltage Interrupt.

Example

This example treats the MON Undervoltage interrupt.

void Example_Function(void)
{
if (SCUPM->SYS_SUPPLY_IRQ_STS.bit.MON_UV_IS == 1u)
{
ADC2_MON_OL_CALLBACK();
}
}

◆ ADC2_TEMP_OT_Int_Clr()

INLINE void ADC2_TEMP_OT_Int_Clr ( void  )

clears System Overtemperature Shutdown Interrupt Status.

Example

This example treats the System Overtemperature Shutdown interrupt.

void Example_Function(void)
{
ADC2_TEMP_OT_Int_En();
if (SCUPM->SYS_IS.bit.SYS_OT_IS == 1u)
{
ADC2_SYS_TEMP_UP_CALLBACK();
}
}
INLINE void ADC2_TEMP_OT_Int_Clr(void)
clears System Overtemperature Shutdown Interrupt Status.
Definition: adc2.h:694

◆ ADC2_Temp_OT_Int_Dis()

INLINE void ADC2_Temp_OT_Int_Dis ( void  )

disables System Overtemperature Shutdown interrupt.

Example

This example treats the System Overtemperature Shutdown interrupt.

void Example_Function(void)
{
ADC2_TEMP_OT_Int_En();
if (SCUPM->SYS_IS.bit.SYS_OT_IS == 1u)
{
ADC2_SYS_TEMP_UP_CALLBACK();
}
ADC2_TEMP_OT_Int_Dis();
}

◆ ADC2_Temp_OT_Int_En()

INLINE void ADC2_Temp_OT_Int_En ( void  )

enables System Overtemperature Shutdown interrupt.

Example

This example treats the System Overtemperature Shutdown interrupt.

void Example_Function(void)
{
ADC2_TEMP_OT_Int_En();
if (SCUPM->SYS_IS.bit.SYS_OT_IS == 1u)
{
ADC2_SYS_TEMP_UP_CALLBACK();
}
}

◆ ADC2_Temp_Result_C()

INLINE sint16 ADC2_Temp_Result_C ( void  )

Returns the Temperature read by the ADC2 Channel 9 in degrees Celsius (°C).

\( Temp(°C) = \frac{V_{Temp}(mV)-666(mV)}{2.31\frac{(mV)}{(°C)}}\)


where


\( V_{Temp}(mV) = \frac{ADC2.Digital.Result(bit)*(V_{BG}*1000)(mV)}{ADC2.Max.Digital.Value(bit)}\)

Returns
Temperature read by the ADC2 Channel 9 in degrees Celsius (°C).

Example

This example returns the specified value./

void Example_Function(void)
{
sint16 data;
}
INLINE sint16 ADC2_Temp_Result_C(void)
Returns the Temperature read by the ADC2 Channel 9 in degrees Celsius (°C).
Definition: adc2.h:2032
int16_t sint16
16 bit signed value
Definition: types.h:159

◆ ADC2_TEMP_WARN_Int_Clr()

INLINE void ADC2_TEMP_WARN_Int_Clr ( void  )

clears System Overtemperature Prewarning Interrupt Status.

Example

This example treats the System Overtemperature Prewarning interrupt.

void Example_Function(void)
{
ADC2_TEMP_WARN_Int_En();
if (SCUPM->SYS_IS.bit.SYS_OTWARN_IS == 1u)
{
ADC2_SYS_TEMP_LO_CALLBACK();
}
}
INLINE void ADC2_TEMP_WARN_Int_Clr(void)
clears System Overtemperature Prewarning Interrupt Status.
Definition: adc2.h:716

◆ ADC2_Temp_Warn_Int_Dis()

INLINE void ADC2_Temp_Warn_Int_Dis ( void  )

disables System Overtemperature Prewarning interrupt.

Example

This example treats the System Overtemperature Prewarning interrupt.

void Example_Function(void)
{
ADC2_TEMP_WARN_Int_En();
if (SCUPM->SYS_IS.bit.SYS_OTWARN_IS == 1u)
{
ADC2_SYS_TEMP_LO_CALLBACK();
}
ADC2_TEMP_WARN_Int_Dis();
}

◆ ADC2_Temp_Warn_Int_En()

INLINE void ADC2_Temp_Warn_Int_En ( void  )

enables System Overtemperature Prewarning interrupt.

Example

This example treats the System Overtemperature Prewarning interrupt.

void Example_Function(void)
{
ADC2_TEMP_WARN_Int_En();
if (SCUPM->SYS_IS.bit.SYS_OTWARN_IS == 1u)
{
ADC2_SYS_TEMP_LO_CALLBACK();
}
}

◆ ADC2_VAREF_Result_mV()

INLINE uint16 ADC2_VAREF_Result_mV ( void  )

returns the Voltage of the VAREF line (ADC2 Channel 6) in millivolt (mV)

calculated based on attenuator conversion factor as follows:



\( Voltage(mV) = \frac{ADC2.Digital.Result(bit)*(V_{BG}*1000)(mV)}{ADC2.Max.Digital.Value(bit)}*\frac{1000}{219}\)

Returns
Voltage of the VAREF line (ADC2 Channel 6) in millivolt (mV)

Example

This example returns the specified value./

void Example_Function(void)
{
uint16 data;
}
INLINE uint16 ADC2_VAREF_Result_mV(void)
returns the Voltage of the VAREF line (ADC2 Channel 6) in millivolt (mV)
Definition: adc2.h:1950

◆ ADC2_VBat_Attenuator_Range_3_22V_Set()

INLINE void ADC2_VBat_Attenuator_Range_3_22V_Set ( void  )

sets ADC2 Channel 0 (VBat) Attenuator Range to Range 1 (from 3 to 22 V).

Example

This example sets ADC2 Channel 0 (VBat) Attenuator Range to Range 1 (from 3 to 22 V).

void Example_Function(void)
{
}
INLINE void ADC2_VBat_Attenuator_Range_3_22V_Set(void)
sets ADC2 Channel 0 (VBat) Attenuator Range to Range 1 (from 3 to 22 V).
Definition: adc2.h:231

◆ ADC2_VBat_Attenuator_Range_3_28V_Set()

INLINE void ADC2_VBat_Attenuator_Range_3_28V_Set ( void  )

sets ADC2 Channel 0 (VBat) Attenuator Range to Range 2 (from 3 to 28 V).

Example

This example sets ADC2 Channel 0 (VBat) Attenuator Range to Range 2 (from 3 to 28 V).

void Example_Function(void)
{
}
INLINE void ADC2_VBat_Attenuator_Range_3_28V_Set(void)
sets ADC2 Channel 0 (VBat) Attenuator Range to Range 2 (from 3 to 28 V).
Definition: adc2.h:214

◆ ADC2_VBat_Attenuator_Range_Get()

INLINE uint8 ADC2_VBat_Attenuator_Range_Get ( void  )

gets ADC2 Channel 0 (VBat) Attenuator Range.

Return values
1if Range 2 (from 3 to 22V) is selected.
0if Range 1 (from 3 to 28V) is selected.

Example

This example reads ADC2 Channel 0 (VBat) Attenuator Range.

void Example_Function(void)
{
uint8 data;
}
INLINE uint8 ADC2_VBat_Attenuator_Range_Get(void)
gets ADC2 Channel 0 (VBat) Attenuator Range.
Definition: adc2.h:253
uint8_t uint8
8 bit unsigned value
Definition: types.h:153

◆ ADC2_VBAT_OV_Int_Clr()

INLINE void ADC2_VBAT_OV_Int_Clr ( void  )

clears VBAT Overvoltage Interrupt Status.

Example

This example treats the VBAT Overvoltage interrupt.

void Example_Function(void)
{
if (SCUPM->SYS_SUPPLY_IRQ_STS.bit.VBAT_OV_IS == 1u)
{
ADC2_VBAT_UP_CALLBACK();
}
}
INLINE void ADC2_VBAT_OV_Int_En(void)
enables VBAT Overvoltage Interrupt.
Definition: adc2.h:1236
INLINE void ADC2_VBAT_OV_Int_Clr(void)
clears VBAT Overvoltage Interrupt Status.
Definition: adc2.h:557

◆ ADC2_VBAT_OV_Int_Dis()

INLINE void ADC2_VBAT_OV_Int_Dis ( void  )

disables VBAT Overvoltage Interrupt.

Example

This example treats the VBAT Overvoltage interrupt.

void Example_Function(void)
{
if (SCUPM->SYS_SUPPLY_IRQ_STS.bit.VBAT_OV_IS == (uint8)1u)
{
ADC2_VBAT_UP_CALLBACK();
}
}
INLINE void ADC2_VBAT_OV_Int_Dis(void)
disables VBAT Overvoltage Interrupt.
Definition: adc2.h:1259

◆ ADC2_VBAT_OV_Int_En()

INLINE void ADC2_VBAT_OV_Int_En ( void  )

enables VBAT Overvoltage Interrupt.

Example

This example treats the VBAT Overvoltage interrupt.

void Example_Function(void)
{
if (SCUPM->SYS_SUPPLY_IRQ_STS.bit.VBAT_OV_IS == 1u)
{
ADC2_VBAT_UP_CALLBACK();
}
}

◆ ADC2_VBat_Result_mV()

INLINE uint16 ADC2_VBat_Result_mV ( void  )

returns the Voltage of the VBAT line (ADC2 Channel 0 in TLE986x) in millivolt (mV)

calculated based on attenuator conversion factor as follows:



If the VS range is up to 28 V, then

\( Voltage(mV) = \frac{ADC2.Digital.Result(bit)*(V_{BG}*1000)(mV)}{ADC2.Max.Digital.Value(bit)}*\frac{1000}{39}\)



If the VS range is up to 22 V, then

\( Voltage(mV) = \frac{ADC2.Digital.Result(bit)*(V_{BG}*1000)(mV)}{ADC2.Max.Digital.Value(bit)}*\frac{200}{11}\)

Returns
Voltage of the VBAT line (ADC2 Channel 0) in millivolt

Example

This example returns the specified value.

void Example_Function(void)
{
uint16 data;
}
INLINE uint16 ADC2_VBat_Result_mV(void)
returns the Voltage of the VBAT line (ADC2 Channel 0 in TLE986x) in millivolt (mV)
Definition: adc2.h:1767

◆ ADC2_VBAT_UV_Int_Clr()

INLINE void ADC2_VBAT_UV_Int_Clr ( void  )

clears VBAT Undervoltage Interrupt Status.

Example

This example treats the VBAT Undervoltage interrupt.

void Example_Function(void)
{
if (SCUPM->SYS_SUPPLY_IRQ_STS.bit.VBAT_UV_IS == 1u)
{
ADC2_VBAT_LO_CALLBACK();
}
}
INLINE void ADC2_VBAT_UV_Int_En(void)
enables VBAT Undervoltage Interrupt.
Definition: adc2.h:1281
INLINE void ADC2_VBAT_UV_Int_Clr(void)
clears VBAT Undervoltage Interrupt Status.
Definition: adc2.h:579

◆ ADC2_VBAT_UV_Int_Dis()

INLINE void ADC2_VBAT_UV_Int_Dis ( void  )

disables VBAT Undervoltage Interrupt.

Example

This example treats the VBAT Undervoltage interrupt.

void Example_Function(void)
{
if (SCUPM->SYS_SUPPLY_IRQ_STS.bit.VBAT_UV_IS == (uint8)1u)
{
ADC2_VBAT_LO_CALLBACK();
}
}
INLINE void ADC2_VBAT_UV_Int_Dis(void)
disables VBAT Undervoltage Interrupt.
Definition: adc2.h:1304

◆ ADC2_VBAT_UV_Int_En()

INLINE void ADC2_VBAT_UV_Int_En ( void  )

enables VBAT Undervoltage Interrupt.

Example

This example treats the VBAT Undervoltage interrupt.

void Example_Function(void)
{
if (SCUPM->SYS_SUPPLY_IRQ_STS.bit.VBAT_UV_IS == 1u)
{
ADC2_VBAT_LO_CALLBACK();
}
}

◆ ADC2_VBG_OV_Int_Clr()

INLINE void ADC2_VBG_OV_Int_Clr ( void  )

clears 8 Bit ADC2 Reference Overvoltage Interrupt Status.

Example

This example treats the 8 Bit ADC2 Reference Overvoltage interrupt.

void Example_Function(void)
{
if (MF->REF1_STS.bit.REFBG_UPTHWARN_STS == 1u)
{
ADC2_VBG_UP_CALLBACK();
}
}
INLINE void ADC2_VBG_OV_Int_Clr(void)
clears 8 Bit ADC2 Reference Overvoltage Interrupt Status.
Definition: adc2.h:648
INLINE void ADC2_VBG_OV_Int_En(void)
enables 8 Bit ADC2 Reference Overvoltage interrupt.
Definition: adc2.h:1419
#define MF
Definition: tle987x.h:6093

◆ ADC2_VBG_OV_Int_Dis()

INLINE void ADC2_VBG_OV_Int_Dis ( void  )

disables 8 Bit ADC2 Reference Overvoltage interrupt.

Example

This example treats the 8 Bit ADC2 Reference Overvoltage interrupt.

void Example_Function(void)
{
if (MF->REF1_STS.bit.REFBG_UPTHWARN_STS == 1u)
{
ADC2_VBG_UP_CALLBACK();
}
}
INLINE void ADC2_VBG_OV_Int_Dis(void)
disables 8 Bit ADC2 Reference Overvoltage interrupt.
Definition: adc2.h:1442

◆ ADC2_VBG_OV_Int_En()

INLINE void ADC2_VBG_OV_Int_En ( void  )

enables 8 Bit ADC2 Reference Overvoltage interrupt.

Example

This example treats the 8 Bit ADC2 Reference Overvoltage interrupt.

void Example_Function(void)
{
if (MF->REF1_STS.bit.REFBG_UPTHWARN_STS == 1u)
{
ADC2_VBG_UP_CALLBACK();
}
}

◆ ADC2_VBG_Result_mV()

INLINE uint16 ADC2_VBG_Result_mV ( void  )

returns the Voltage of the VBG line (ADC2 Channel 7) in millivolt (mV)

calculated based on attenuator conversion factor as follows:



\( Voltage(mV) = \frac{ADC2.Digital.Result(bit)*(V_{BG}*1000)(mV)}{ADC2.Max.Digital.Value(bit)}*\frac{4}{3}\)

Returns
Voltage of the VBG line (ADC2 Channel 7) in millivolt (mV)

Example

This example returns the specified value./

void Example_Function(void)
{
uint16 data;
}
INLINE uint16 ADC2_VBG_Result_mV(void)
returns the Voltage of the VBG line (ADC2 Channel 7) in millivolt (mV)
Definition: adc2.h:1977

◆ ADC2_VBG_UV_Int_Clr()

INLINE void ADC2_VBG_UV_Int_Clr ( void  )

clears 8 Bit ADC2 Reference Undervoltage Interrupt Status.

Example

This example treats the 8 Bit ADC2 Reference Undervoltage interrupt.

void Example_Function(void)
{
if (MF->REF1_STS.bit.REFBG_LOTHWARN_STS == 1u)
{
ADC2_VBG_LO_CALLBACK();
}
}
INLINE void ADC2_VBG_UV_Int_Clr(void)
clears 8 Bit ADC2 Reference Undervoltage Interrupt Status.
Definition: adc2.h:670
INLINE void ADC2_VBG_UV_Int_En(void)
enables 8 Bit ADC2 Reference Undervoltage interrupt.
Definition: adc2.h:1464

◆ ADC2_VBG_UV_Int_Dis()

INLINE void ADC2_VBG_UV_Int_Dis ( void  )

disables 8 Bit ADC2 Reference Undervoltage interrupt.

Example

This example treats the 8 Bit ADC2 Reference Undervoltage interrupt.

void Example_Function(void)
{
if (MF->REF1_STS.bit.REFBG_LOTHWARN_STS == 1u)
{
ADC2_VBG_LO_CALLBACK();
}
}
INLINE void ADC2_VBG_UV_Int_Dis(void)
disables 8 Bit ADC2 Reference Undervoltage interrupt.
Definition: adc2.h:1487

◆ ADC2_VBG_UV_Int_En()

INLINE void ADC2_VBG_UV_Int_En ( void  )

enables 8 Bit ADC2 Reference Undervoltage interrupt.

Example

This example treats the 8 Bit ADC2 Reference Undervoltage interrupt.

void Example_Function(void)
{
if (MF->REF1_STS.bit.REFBG_LOTHWARN_STS == 1u)
{
ADC2_VBG_LO_CALLBACK();
}
}

◆ ADC2_VCP_OV_Int_Clr()

INLINE void ADC2_VCP_OV_Int_Clr ( void  )

clears Charge Pump MU High Interrupt Status.

Example

This example treats the Charge Pump MU High interrupt.

void Example_Function(void)
{
if (SCUPM->BDRV_IS.bit.VCP_UPTH_IS == 1u)
{
ADC2_VCP_UP_CALLBACK();
}
}
INLINE void ADC2_VCP_OV_Int_En(void)
enables Charge Pump MU High interrupt.
Definition: adc2.h:1145
INLINE void ADC2_VCP_OV_Int_Clr(void)
clears Charge Pump MU High Interrupt Status.
Definition: adc2.h:512

◆ ADC2_VCP_OV_Int_Dis()

INLINE void ADC2_VCP_OV_Int_Dis ( void  )

disables Charge Pump MU High interrupt.

Example

This example treats the Charge Pump MU High interrupt.

void Example_Function(void)
{
if (SCUPM->BDRV_IS.bit.VCP_UPTH_IS == 1u)
{
ADC2_VCP_UP_CALLBACK();
}
}
INLINE void ADC2_VCP_OV_Int_Dis(void)
disables Charge Pump MU High interrupt.
Definition: adc2.h:1168

◆ ADC2_VCP_OV_Int_En()

INLINE void ADC2_VCP_OV_Int_En ( void  )

enables Charge Pump MU High interrupt.

Example

This example treats the Charge Pump MU High interrupt.

void Example_Function(void)
{
if (SCUPM->BDRV_IS.bit.VCP_UPTH_IS == 1u)
{
ADC2_VCP_UP_CALLBACK();
}
}

◆ ADC2_VCP_Result_mV()

INLINE uint16 ADC2_VCP_Result_mV ( void  )

returns the Voltage of the VCP line (ADC2 Channel 3) in millivolt (mV)

calculated based on attenuator conversion factor as follows:



\( Voltage(mV) = \frac{ADC2.Digital.Result(bit)*(V_{BG}*1000)(mV)}{ADC2.Max.Digital.Value(bit)}*\frac{1000}{23}\)

Returns
Voltage of the VCP line (ADC2 Channel 3) in millivolt (mV)

Example

This example returns the specified value./

void Example_Function(void)
{
uint16 data;
}
INLINE uint16 ADC2_VCP_Result_mV(void)
returns the Voltage of the VCP line (ADC2 Channel 3) in millivolt (mV)
Definition: adc2.h:1869

◆ ADC2_VCP_UV_Int_Clr()

INLINE void ADC2_VCP_UV_Int_Clr ( void  )

clears Charge Pump MU Low Interrupt Status.

Example

This example treats the Charge Pump MU Low interrupt.

void Example_Function(void)
{
if (SCUPM->BDRV_IS.bit.VCP_LOWTH1_IS == 1u)
{
ADC2_VCP_LO_CALLBACK();
}
}
INLINE void ADC2_VCP_UV_Int_Clr(void)
clears Charge Pump MU Low Interrupt Status.
Definition: adc2.h:534
INLINE void ADC2_VCP_UV_Int_En(void)
enables Charge Pump MU Low interrupt.
Definition: adc2.h:1190

◆ ADC2_VCP_UV_Int_Dis()

INLINE void ADC2_VCP_UV_Int_Dis ( void  )

disables Charge Pump MU Low interrupt.

Example

This example treats the Charge Pump MU Low interrupt.

void Example_Function(void)
{
if (SCUPM->BDRV_IS.bit.VCP_LOWTH1_IS == 1u)
{
ADC2_VCP_LO_CALLBACK();
}
}
INLINE void ADC2_VCP_UV_Int_Dis(void)
disables Charge Pump MU Low interrupt.
Definition: adc2.h:1213

◆ ADC2_VCP_UV_Int_En()

INLINE void ADC2_VCP_UV_Int_En ( void  )

enables Charge Pump MU Low interrupt.

Example

This example treats the Charge Pump MU Low interrupt.

void Example_Function(void)
{
if (SCUPM->BDRV_IS.bit.VCP_LOWTH1_IS == 1u)
{
ADC2_VCP_LO_CALLBACK();
}
}

◆ ADC2_VDDC_OV_Int_Clr()

INLINE void ADC2_VDDC_OV_Int_Clr ( void  )

clears VDDC Overvoltage Interrupt Status.

Example

This example treats the VDDC Overvoltage interrupt.

void Example_Function(void)
{
if (SCUPM->SYS_SUPPLY_IRQ_STS.bit.VDD1V5_OV_IS == 1u)
{
ADC2_VDDC_UP_CALLBACK();
}
}
INLINE void ADC2_VDDC_OV_Int_En(void)
enables VDDC Overvoltage interrupt.
Definition: adc2.h:965
INLINE void ADC2_VDDC_OV_Int_Clr(void)
clears VDDC Overvoltage Interrupt Status.
Definition: adc2.h:424

◆ ADC2_VDDC_OV_Int_Dis()

INLINE void ADC2_VDDC_OV_Int_Dis ( void  )

disables VDDC Overvoltage interrupt.

Example

This example treats the VDDC Overvoltage interrupt.

void Example_Function(void)
{
if (SCUPM->SYS_SUPPLY_IRQ_STS.bit.VDD1V5_OV_IS == 1u)
{
ADC2_VDDC_UP_CALLBACK();
}
}
INLINE void ADC2_VDDC_OV_Int_Dis(void)
disables VDDC Overvoltage interrupt.
Definition: adc2.h:988

◆ ADC2_VDDC_OV_Int_En()

INLINE void ADC2_VDDC_OV_Int_En ( void  )

enables VDDC Overvoltage interrupt.

Example

This example treats the VDDC Overvoltage interrupt.

void Example_Function(void)
{
if (SCUPM->SYS_SUPPLY_IRQ_STS.bit.VDD1V5_OV_IS == 1u)
{
ADC2_VDDC_UP_CALLBACK();
}
}

◆ ADC2_VDDC_Result_mV()

INLINE uint16 ADC2_VDDC_Result_mV ( void  )

returns the Voltage of the VDDC line (ADC2 Channel 8) in millivolt (mV)

calculated based on attenuator conversion factor as follows:



\( Voltage(mV) = \frac{ADC2.Digital.Result(bit)*(V_{BG}*1000)(mV)}{ADC2.Max.Digital.Value(bit)}*\frac{4}{3}\)

Returns
Voltage of the VDDC line (ADC2 Channel 8) in millivolt (mV)

Example

This example returns the specified value./

void Example_Function(void)
{
uint16 data;
}
INLINE uint16 ADC2_VDDC_Result_mV(void)
returns the Voltage of the VDDC line (ADC2 Channel 8) in millivolt (mV)
Definition: adc2.h:2004

◆ ADC2_VDDC_UV_Int_Clr()

INLINE void ADC2_VDDC_UV_Int_Clr ( void  )

clears VDDC Undervoltage Interrupt Status.

Example

This example treats the VDDC Undervoltage interrupt.

void Example_Function(void)
{
if (SCUPM->SYS_SUPPLY_IRQ_STS.bit.VDD1V5_UV_IS == 1u)
{
ADC2_VDDC_LO_CALLBACK();
}
}
INLINE void ADC2_VDDC_UV_Int_Clr(void)
clears VDDC Undervoltage Interrupt Status.
Definition: adc2.h:446
INLINE void ADC2_VDDC_UV_Int_En(void)
enables VDDC Undervoltage interrupt.
Definition: adc2.h:1010

◆ ADC2_VDDC_UV_Int_Dis()

INLINE void ADC2_VDDC_UV_Int_Dis ( void  )

disables VDDC Undervoltage interrupt.

Example

This example treats the VDDC Undervoltage interrupt.

void Example_Function(void)
{
if (SCUPM->SYS_SUPPLY_IRQ_STS.bit.VDD1V5_UV_IS == 1u)
{
ADC2_VDDC_LO_CALLBACK();
}
}
INLINE void ADC2_VDDC_UV_Int_Dis(void)
disables VDDC Undervoltage interrupt.
Definition: adc2.h:1033

◆ ADC2_VDDC_UV_Int_En()

INLINE void ADC2_VDDC_UV_Int_En ( void  )

enables VDDC Undervoltage interrupt.

Example

This example treats the VDDC Undervoltage interrupt.

void Example_Function(void)
{
if (SCUPM->SYS_SUPPLY_IRQ_STS.bit.VDD1V5_UV_IS == 1u)
{
ADC2_VDDC_LO_CALLBACK();
}
}

◆ ADC2_VDDP_OV_Int_Clr()

INLINE void ADC2_VDDP_OV_Int_Clr ( void  )

clears VDDP Overvoltage Interrupt Status.

Example

This example treats the VDDP Overvoltage interrupt.

void Example_Function(void)
{
if (SCUPM->SYS_SUPPLY_IRQ_STS.bit.VDD5V_OV_IS == 1u)
{
ADC2_VDDP_UP_CALLBACK();
}
}
INLINE void ADC2_VDDP_OV_Int_En(void)
enables VDDP Overvoltage interrupt.
Definition: adc2.h:875
INLINE void ADC2_VDDP_OV_Int_Clr(void)
clears VDDP Overvoltage Interrupt Status.
Definition: adc2.h:380

◆ ADC2_VDDP_OV_Int_Dis()

INLINE void ADC2_VDDP_OV_Int_Dis ( void  )

disables VDDP Overvoltage interrupt.

Example

This example treats the VDDP Overvoltage interrupt.

void Example_Function(void)
{
if (SCUPM->SYS_SUPPLY_IRQ_STS.bit.VDD5V_OV_IS == 1u)
{
ADC2_VDDP_UP_CALLBACK();
}
}
INLINE void ADC2_VDDP_OV_Int_Dis(void)
disables VDDP Overvoltage interrupt.
Definition: adc2.h:898

◆ ADC2_VDDP_OV_Int_En()

INLINE void ADC2_VDDP_OV_Int_En ( void  )

enables VDDP Overvoltage interrupt.

Example

This example treats the VDDP Overvoltage interrupt.

void Example_Function(void)
{
if (SCUPM->SYS_SUPPLY_IRQ_STS.bit.VDD5V_OV_IS == 1u)
{
ADC2_VDDP_UP_CALLBACK();
}
}

◆ ADC2_VDDP_Result_mV()

INLINE uint16 ADC2_VDDP_Result_mV ( void  )

returns the Voltage of the VDDP line (ADC2 Channel 5) in millivolt (mV)

calculated based on attenuator conversion factor as follows:



\( Voltage(mV) = \frac{ADC2.Digital.Result(bit)*(V_{BG}*1000)(mV)}{ADC2.Max.Digital.Value(bit)}*\frac{250}{41}\)

Returns
Voltage of the VDDP line (ADC2 Channel 5) in millivolt (mV)

Example

This example returns the specified value./

void Example_Function(void)
{
uint16 data;
}
INLINE uint16 ADC2_VDDP_Result_mV(void)
returns the Voltage of the VDDP line (ADC2 Channel 5) in millivolt (mV)
Definition: adc2.h:1923

◆ ADC2_VDDP_UV_Int_Clr()

INLINE void ADC2_VDDP_UV_Int_Clr ( void  )

clears VDDP Undervoltage Interrupt Status.

Example

This example treats the VDDP Undervoltage interrupt.

void Example_Function(void)
{
if (SCUPM->SYS_SUPPLY_IRQ_STS.bit.VDD5V_UV_IS == 1u)
{
ADC2_VDDP_LO_CALLBACK();
}
}
INLINE void ADC2_VDDP_UV_Int_En(void)
enables VDDP Undervoltage interrupt.
Definition: adc2.h:920
INLINE void ADC2_VDDP_UV_Int_Clr(void)
clears VDDP Undervoltage Interrupt Status.
Definition: adc2.h:402

◆ ADC2_VDDP_UV_Int_Dis()

INLINE void ADC2_VDDP_UV_Int_Dis ( void  )

disables VDDP Undervoltage interrupt.

Example

This example treats the VDDP Undervoltage interrupt.

void Example_Function(void)
{
if (SCUPM->SYS_SUPPLY_IRQ_STS.bit.VDD5V_UV_IS == 1u)
{
ADC2_VDDP_LO_CALLBACK();
}
}
INLINE void ADC2_VDDP_UV_Int_Dis(void)
disables VDDP Undervoltage interrupt.
Definition: adc2.h:943

◆ ADC2_VDDP_UV_Int_En()

INLINE void ADC2_VDDP_UV_Int_En ( void  )

enables VDDP Undervoltage interrupt.

Example

This example treats the VDDP Undervoltage interrupt.

void Example_Function(void)
{
if (SCUPM->SYS_SUPPLY_IRQ_STS.bit.VDD5V_UV_IS == 1u)
{
ADC2_VDDP_LO_CALLBACK();
}
}

◆ 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).

Example

This example sets ADC2 Channel 1 (VS) Attenuator Range to Range 1 (from 3 to 22 V).

void Example_Function(void)
{
}
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:291

◆ 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).

Example

This example sets ADC2 Channel 1 (VS) Attenuator Range to Range 2 (from 3 to 28 V).

void Example_Function(void)
{
}
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:274

◆ ADC2_VS_Attenuator_Range_Get()

INLINE uint8 ADC2_VS_Attenuator_Range_Get ( void  )

gets ADC2 Channel 1 (VS) Attenuator Range.

Return values
1if Range 2 (from 3 to 22V) is selected.
0if Range 1 (from 3 to 28V) is selected.

Example

This example reads ADC2 Channel 1 (VS) Attenuator Range.

void Example_Function(void)
{
uint8 data;
}
INLINE uint8 ADC2_VS_Attenuator_Range_Get(void)
gets ADC2 Channel 1 (VS) Attenuator Range.
Definition: adc2.h:313

◆ ADC2_VS_OV_Int_Clr()

INLINE void ADC2_VS_OV_Int_Clr ( void  )

clears VS Overvoltage Interrupt Status.

Example

This example treats the VS Overvoltage interrupt.

void Example_Function(void)
{
if (SCUPM->SYS_SUPPLY_IRQ_STS.bit.VS_OV_IS == 1u)
{
ADC2_VS_UP_CALLBACK();
}
}
INLINE void ADC2_VS_OV_Int_Clr(void)
clears VS Overvoltage Interrupt Status.
Definition: adc2.h:336
INLINE void ADC2_VS_OV_Int_En(void)
enables VS Overvoltage interrupt.
Definition: adc2.h:785

◆ ADC2_VS_OV_Int_Dis()

INLINE void ADC2_VS_OV_Int_Dis ( void  )

disables VS Overvoltage interrupt.

Example

This example treats the VS Overvoltage interrupt.

void Example_Function(void)
{
if (SCUPM->SYS_SUPPLY_IRQ_STS.bit.VS_OV_IS == 1u)
{
ADC2_VS_UP_CALLBACK();
}
}
INLINE void ADC2_VS_OV_Int_Dis(void)
disables VS Overvoltage interrupt.
Definition: adc2.h:808

◆ ADC2_VS_OV_Int_En()

INLINE void ADC2_VS_OV_Int_En ( void  )

enables VS Overvoltage interrupt.

Example

This example treats the VS Overvoltage interrupt.

void Example_Function(void)
{
if (SCUPM->SYS_SUPPLY_IRQ_STS.bit.VS_OV_IS == 1u)
{
ADC2_VS_UP_CALLBACK();
}
}

◆ ADC2_VS_Result_mV()

INLINE uint16 ADC2_VS_Result_mV ( void  )

returns the Voltage of the VS line (ADC2 Channel 1) in millivolt (mV)

calculated based on attenuator conversion factor as follows:



If the VS range is up to 28 V, then

\( Voltage(mV) = \frac{ADC2.Digital.Result(bit)*(V_{BG}*1000)(mV)}{ADC2.Max.Digital.Value(bit)}*\frac{1000}{39}\)



If the VS range is up to 22 V, then

\( Voltage(mV) = \frac{ADC2.Digital.Result(bit)*(V_{BG}*1000)(mV)}{ADC2.Max.Digital.Value(bit)}*\frac{200}{11}\)

Returns
Voltage of the VS line (ADC2 Channel 1) in millivolt

Example

This example returns the specified value.

void Example_Function(void)
{
uint16 data;
}
INLINE uint16 ADC2_VS_Result_mV(void)
returns the Voltage of the VS line (ADC2 Channel 1) in millivolt (mV)
Definition: adc2.h:1807

◆ ADC2_VS_UV_Int_Clr()

INLINE void ADC2_VS_UV_Int_Clr ( void  )

clears VS Undervoltage Interrupt Status.

Example

This example treats the VS Undervoltage interrupt.

void Example_Function(void)
{
if (SCUPM->SYS_SUPPLY_IRQ_STS.bit.VS_UV_IS == 1u)
{
ADC2_VS_LO_CALLBACK();
}
}
INLINE void ADC2_VS_UV_Int_Clr(void)
clears VS Undervoltage Interrupt Status.
Definition: adc2.h:358
INLINE void ADC2_VS_UV_Int_En(void)
enables VS Undervoltage interrupt.
Definition: adc2.h:830

◆ ADC2_VS_UV_Int_Dis()

INLINE void ADC2_VS_UV_Int_Dis ( void  )

disables VS Undervoltage interrupt.

Example

This example treats the VS Undervoltage interrupt.

void Example_Function(void)
{
if (SCUPM->SYS_SUPPLY_IRQ_STS.bit.VS_UV_IS == 1u)
{
ADC2_VS_LO_CALLBACK();
}
}
INLINE void ADC2_VS_UV_Int_Dis(void)
disables VS Undervoltage interrupt.
Definition: adc2.h:853

◆ ADC2_VS_UV_Int_En()

INLINE void ADC2_VS_UV_Int_En ( void  )

enables VS Undervoltage interrupt.

Example

This example treats the VS Undervoltage interrupt.

void Example_Function(void)
{
if (SCUPM->SYS_SUPPLY_IRQ_STS.bit.VS_UV_IS == 1u)
{
ADC2_VS_LO_CALLBACK();
}
}

◆ ADC2_VSD_OV_Int_Clr()

INLINE void ADC2_VSD_OV_Int_Clr ( void  )

clears Driver Supply MU High Interrupt Status.

Example

This example treats the Driver Supply MU High interrupt.

void Example_Function(void)
{
if (SCUPM->BDRV_IS.bit.VSD_UPTH_IS == 1u)
{
ADC2_VSD_UP_CALLBACK();
}
}
INLINE void ADC2_VSD_OV_Int_En(void)
enables Driver Supply MU High interrupt.
Definition: adc2.h:1055
INLINE void ADC2_VSD_OV_Int_Clr(void)
clears Driver Supply MU High Interrupt Status.
Definition: adc2.h:468

◆ ADC2_VSD_OV_Int_Dis()

INLINE void ADC2_VSD_OV_Int_Dis ( void  )

disables Driver Supply MU High interrupt.

Example

This example treats the Driver Supply MU High interrupt.

void Example_Function(void)
{
if (SCUPM->BDRV_IS.bit.VSD_UPTH_IS == 1u)
{
ADC2_VSD_UP_CALLBACK();
}
}
INLINE void ADC2_VSD_OV_Int_Dis(void)
disables Driver Supply MU High interrupt.
Definition: adc2.h:1078

◆ ADC2_VSD_OV_Int_En()

INLINE void ADC2_VSD_OV_Int_En ( void  )

enables Driver Supply MU High interrupt.

Example

This example treats the Driver Supply MU High interrupt.

void Example_Function(void)
{
if (SCUPM->BDRV_IS.bit.VSD_UPTH_IS == 1u)
{
ADC2_VSD_UP_CALLBACK();
}
}

◆ ADC2_VSD_Result_mV()

INLINE uint16 ADC2_VSD_Result_mV ( void  )

returns the Voltage of the VSD line (ADC2 Channel 2) in millivolt

calculated based on attenuator conversion factor as follows:



\( Voltage(mV) = \frac{ADC2.Digital.Result(bit)*(V_{BG}*1000)(mV)}{ADC2.Max.Digital.Value(bit)}*\frac{1000}{39}\)

Returns
Voltage of the VSD line (ADC2 Channel 2) in millivolt

Example

This example returns the specified value./

void Example_Function(void)
{
uint16 data;
}
INLINE uint16 ADC2_VSD_Result_mV(void)
returns the Voltage of the VSD line (ADC2 Channel 2) in millivolt
Definition: adc2.h:1843

◆ ADC2_VSD_UV_Int_Clr()

INLINE void ADC2_VSD_UV_Int_Clr ( void  )

clears Driver Supply MU Low interrupt flag.

Example

This example treats the Driver Supply MU Low interrupt.

void Example_Function(void)
{
if (SCUPM->BDRV_IS.bit.VSD_LOWTH_IS == 1u)
{
ADC2_VSD_LO_CALLBACK();
}
}
INLINE void ADC2_VSD_UV_Int_En(void)
enables Driver Supply MU Low interrupt.
Definition: adc2.h:1100
INLINE void ADC2_VSD_UV_Int_Clr(void)
clears Driver Supply MU Low interrupt flag.
Definition: adc2.h:490

◆ ADC2_VSD_UV_Int_Dis()

INLINE void ADC2_VSD_UV_Int_Dis ( void  )

disables Driver Supply MU Low interrupt.

Example

This example treats the Driver Supply MU Low interrupt.

void Example_Function(void)
{
if (SCUPM->BDRV_IS.bit.VSD_LOWTH_IS == 1u)
{
ADC2_VSD_LO_CALLBACK();
}
}
INLINE void ADC2_VSD_UV_Int_Dis(void)
disables Driver Supply MU Low interrupt.
Definition: adc2.h:1123

◆ ADC2_VSD_UV_Int_En()

INLINE void ADC2_VSD_UV_Int_En ( void  )

enables Driver Supply MU Low interrupt.

Example

This example treats the Driver Supply MU Low interrupt.

void Example_Function(void)
{
if (SCUPM->BDRV_IS.bit.VSD_LOWTH_IS == 1u)
{
ADC2_VSD_LO_CALLBACK();
}
}