![]() |
Infineon MOTIX™ MCU TLE985x Device Family SDK
|
Go to the source code of this file.
ADC2 low level access library.
Macros | |
#define | ADC2_VREF (1.211F) |
ADC2 reference voltage 1.21V. More... | |
#define | ADC2_VS (0) |
ADC2 channel selection macro, channel 0 - VS. More... | |
#define | ADC2_VSD (1) |
ADC2 channel selection macro, channel 1 - VSD. More... | |
#define | ADC2_VCP (2) |
ADC2 channel selection macro, channel 2 - VCP. More... | |
#define | ADC2_VDDEXT (3) |
ADC2 channel selection macro, channel 3 - VDDEXT. More... | |
#define | ADC2_VDDP (4) |
ADC2 channel selection macro, channel 4 - VDDP. More... | |
#define | ADC2_VBG (5) |
ADC2 channel selection macro, channel 5 - VBG. More... | |
#define | ADC2_VDDC (6) |
ADC2 channel selection macro, channel 6 - VDDC. More... | |
#define | ADC2_TEMP1 (7) |
ADC2 channel selection macro, channel 7 - TEMP1. More... | |
#define | ADC2_TEMP2 (8) |
ADC2 channel selection macro, channel 8 - TEMP2. More... | |
Functions | |
void | ADC2_Init (void) |
Initializes the ADC2 based on the Config Wizard configuration. More... | |
INLINE uint16 | ADC2_GetChResult (uint8 channel) |
Returns the 10 bit wide result of the selected ADC2 channel. More... | |
INLINE uint16 | ADC2_GetChResult_mV (uint8 channel) |
Returns the Result in mV of the selected ADC2 Channels 0-6. More... | |
INLINE sint16 | ADC2_GetChResult_C (uint8 channel) |
Returns the Result in degrees celsius of the selected ADC2 channels 7-8. More... | |
INLINE void | ADC2_SOS_Set (void) |
Starts an ADC2 Conversion, for Software mode only. More... | |
INLINE void | ADC2_SW_Channel_Sel (uint8 channel) |
Selects ADC2 channel for the software conversion. More... | |
INLINE void | ADC2_SW_Max_Time_Set (uint8 time) |
Sets ADC2 maximum time in software mode. More... | |
INLINE void | ADC2_EIM_En (void) |
enables Exceptional interrupt measurement (EIM) Trigger Event. More... | |
INLINE void | ADC2_EIM_Dis (void) |
Disables Exceptional interrupt measurement (EIM) Trigger Event. More... | |
INLINE void | ADC2_EIM_Channel_Set (uint8 channel) |
Sets EIM channel for measurement. More... | |
INLINE void | ADC2_EIM_T3_GPT12_Sel (void) |
Selects Exceptional interrupt measurement (EIM) GPT12 Trigger. More... | |
INLINE void | ADC2_EIM_CP_Clk_Sel (void) |
Selects Exceptional interrupt measurement (EIM) CP_clk Trigger. More... | |
INLINE void | ADC2_VS_OV_Int_Clr (void) |
Clears VS Overvoltage interrupt flag. More... | |
INLINE void | ADC2_VS_UV_Int_Clr (void) |
Clears VS Undervoltage interrupt flag. More... | |
INLINE void | ADC2_VDDP_OV_Int_Clr (void) |
Clears VDDP Overvoltage interrupt flag. More... | |
INLINE void | ADC2_VDDP_UV_Int_Clr (void) |
Clears VDDP Undervoltage interrupt flag. More... | |
INLINE void | ADC2_VDDC_OV_Int_Clr (void) |
Clears VDDC Overvoltage interrupt flag. More... | |
INLINE void | ADC2_VDDC_UV_Int_Clr (void) |
Clears VDDC Undervoltage interrupt flag. More... | |
INLINE void | ADC2_VDDEXT_OV_Int_Clr (void) |
Clears VDDEXT Overvoltage interrupt flag. More... | |
INLINE void | ADC2_VDDEXT_UV_Int_Clr (void) |
Clears VDDEXT Undervoltage interrupt flag. More... | |
INLINE void | ADC2_VSD_OV_Int_Clr (void) |
Clears Driver Supply MU High interrupt flag. 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 flag. More... | |
INLINE void | ADC2_VCP_UV_Int_Clr (void) |
Clears Charge Pump MU Low interrupt flag. More... | |
INLINE void | ADC2_VBG_OV_Int_Clr (void) |
Clears 8 Bit ADC2 Reference Overvoltage interrupt flag. More... | |
INLINE void | ADC2_VBG_UV_Int_Clr (void) |
Clears 8 Bit ADC2 Reference Overvoltage interrupt flag. More... | |
INLINE void | ADC2_TEMP_OT_Int_Clr (void) |
Clears System Overtemperature Shutdown interrupt flag. More... | |
INLINE void | ADC2_TEMP_WARN_Int_Clr (void) |
Clears System Overtemperature Prewarning interrupt flag. More... | |
INLINE void | BDRV_VCP_OTW_Int_Clr (void) |
Clears Charge Pump Over-temperature Warning interrupt flag. More... | |
INLINE void | BDRV_VCP_OTSD_Int_Clr (void) |
Clears Charge Pump Over-temperature Shutdown interrupt flag. 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 flag. More... | |
INLINE void | ADC2_VS_UV_Int_Dis (void) |
Disables VS Undervoltage interrupt flag. 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_VDDEXT_OV_Int_En (void) |
Enables VDDEXT Overvoltage interrupt. More... | |
INLINE void | ADC2_VDDEXT_OV_Int_Dis (void) |
Disables VDDEXT Overvoltage interrupt. More... | |
INLINE void | ADC2_VDDEXT_UV_Int_En (void) |
Enables VDDEXT Undervoltage interrupt. More... | |
INLINE void | ADC2_VDDEXT_UV_Int_Dis (void) |
Disables VDDEXT 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_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 Overvoltage interrupt. More... | |
INLINE void | ADC2_VBG_UV_Int_Dis (void) |
Disables 8 Bit ADC2 Reference Overvoltage 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... | |
INLINE void | ADC2_VCP_OTW_Int_En (void) |
Enables Charge Pump Over-temperature Warning interrupt. More... | |
INLINE void | ADC2_VCP_OTW_Int_Dis (void) |
Disables Charge Pump Over-temperature Warning interrupt. More... | |
INLINE void | ADC2_VCP_OTSD_Int_En (void) |
Enables Charge Pump Over-temperature Shutdown interrupt. More... | |
INLINE void | ADC2_VCP_OTSD_Int_Dis (void) |
Disables Charge Pump Over-temperature Shutdown interrupt. More... | |
#define ADC2_TEMP1 (7) |
ADC2 channel selection macro, channel 7 - TEMP1.
#define ADC2_TEMP2 (8) |
ADC2 channel selection macro, channel 8 - TEMP2.
#define ADC2_VBG (5) |
ADC2 channel selection macro, channel 5 - VBG.
#define ADC2_VCP (2) |
ADC2 channel selection macro, channel 2 - VCP.
#define ADC2_VDDC (6) |
ADC2 channel selection macro, channel 6 - VDDC.
#define ADC2_VDDEXT (3) |
ADC2 channel selection macro, channel 3 - VDDEXT.
#define ADC2_VDDP (4) |
ADC2 channel selection macro, channel 4 - VDDP.
#define ADC2_VREF (1.211F) |
ADC2 reference voltage 1.21V.
#define ADC2_VS (0) |
ADC2 channel selection macro, channel 0 - VS.
#define ADC2_VSD (1) |
ADC2 channel selection macro, channel 1 - VSD.
Sets EIM channel for measurement.
channel | ADC2 channel to be measured |
Example
This example enables the Exceptional Interrupt Measurement for channel 4.
INLINE void ADC2_EIM_CP_Clk_Sel | ( | void | ) |
Selects Exceptional interrupt measurement (EIM) CP_clk Trigger.
Example
This example selects the Exceptional Interrupt Measurement CP_clk Trigger.
INLINE void ADC2_EIM_Dis | ( | void | ) |
Disables Exceptional interrupt measurement (EIM) Trigger Event.
Example
This example disables the Exceptional Interrupt Measurement.
INLINE void ADC2_EIM_En | ( | void | ) |
enables Exceptional interrupt measurement (EIM) Trigger Event.
Example
This example enables the Exceptional Interrupt Measurement for channel 4.
INLINE void ADC2_EIM_T3_GPT12_Sel | ( | void | ) |
Selects Exceptional interrupt measurement (EIM) GPT12 Trigger.
Example
This example selects the Exceptional Interrupt Measurement GPT12 Trigger.
Returns the 10 bit wide result of the selected ADC2 channel.
Returns 0 if the selected channel number is greater than 8
channel | selected ADC2 channel number (0 to 8) |
Example
This example returns the ADC2 Channel 4 result.
Returns the Result in degrees celsius of the selected ADC2 channels 7-8.
Example
This example returns the ADC2 Channel 7 result in degrees celsius.
Returns the Result in mV of the selected ADC2 Channels 0-6.
calculated based on attenuator conversion factor
Example
This example returns the ADC2 Channel 5 result in Milli Volt (mV).
void ADC2_Init | ( | void | ) |
Initializes the ADC2 based on the Config Wizard configuration.
INLINE void ADC2_SOS_Set | ( | void | ) |
Starts an ADC2 Conversion, for Software mode only.
Example
This example starts an ADC2 conversion on channel 6 - VDDC.
Selects ADC2 channel for the software conversion.
channel | ADC2 channel which should be measured |
Example
This example starts an ADC2 conversion on channel 6 - VDDC.
Sets ADC2 maximum time in software mode.
time | maximum time |
Example
This example actives Software mode for 257 clock cycles.
INLINE void ADC2_TEMP_OT_Int_Clr | ( | void | ) |
Clears System Overtemperature Shutdown interrupt flag.
Example
This example treats the System Overtemperature Shutdown interrupt.
INLINE void ADC2_Temp_OT_Int_Dis | ( | void | ) |
Disables System Overtemperature Shutdown interrupt.
Example
This example treats the System Overtemperature Shutdown interrupt.
INLINE void ADC2_Temp_OT_Int_En | ( | void | ) |
Enables System Overtemperature Shutdown interrupt.
Example
This example treats the System Overtemperature Shutdown interrupt.
INLINE void ADC2_TEMP_WARN_Int_Clr | ( | void | ) |
Clears System Overtemperature Prewarning interrupt flag.
Example
This example treats the System Overtemperature Prewarning interrupt.
INLINE void ADC2_Temp_Warn_Int_Dis | ( | void | ) |
Disables System Overtemperature Prewarning interrupt.
Example
This example treats the System Overtemperature Prewarning interrupt.
INLINE void ADC2_Temp_Warn_Int_En | ( | void | ) |
Enables System Overtemperature Prewarning interrupt.
Example
This example treats the System Overtemperature Prewarning interrupt.
INLINE void ADC2_VBG_OV_Int_Clr | ( | void | ) |
Clears 8 Bit ADC2 Reference Overvoltage interrupt flag.
Example
This example treats the 8 Bit ADC2 Reference Overvoltage interrupt.
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.
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.
INLINE void ADC2_VBG_UV_Int_Clr | ( | void | ) |
Clears 8 Bit ADC2 Reference Overvoltage interrupt flag.
Example
This example treats the 8 Bit ADC2 Reference Overvoltage interrupt.
INLINE void ADC2_VBG_UV_Int_Dis | ( | void | ) |
Disables 8 Bit ADC2 Reference Overvoltage interrupt.
Example
This example treats the 8 Bit ADC2 Reference Overvoltage interrupt.
INLINE void ADC2_VBG_UV_Int_En | ( | void | ) |
Enables 8 Bit ADC2 Reference Overvoltage interrupt.
Example
This example treats the 8 Bit ADC2 Reference Overvoltage interrupt.
INLINE void ADC2_VCP_OTSD_Int_Dis | ( | void | ) |
Disables Charge Pump Over-temperature Shutdown interrupt.
Example
This example treats the Charge Pump Over-temperature Shutdown interrupt.
INLINE void ADC2_VCP_OTSD_Int_En | ( | void | ) |
Enables Charge Pump Over-temperature Shutdown interrupt.
Example
This example treats the Charge Pump Over-temperature Shutdown interrupt.
INLINE void ADC2_VCP_OTW_Int_Dis | ( | void | ) |
Disables Charge Pump Over-temperature Warning interrupt.
Example
This example treats the Charge Pump Over-temperature Warning interrupt.
INLINE void ADC2_VCP_OTW_Int_En | ( | void | ) |
Enables Charge Pump Over-temperature Warning interrupt.
Example
This example treats the Charge Pump Over-temperature Warning interrupt.
INLINE void ADC2_VCP_OV_Int_Clr | ( | void | ) |
Clears Charge Pump MU High interrupt flag.
Example
This example treats the Charge Pump MU High interrupt.
INLINE void ADC2_VCP_OV_Int_Dis | ( | void | ) |
Disables Charge Pump MU High interrupt.
Example
This example treats the Charge Pump MU High interrupt.
INLINE void ADC2_VCP_OV_Int_En | ( | void | ) |
Enables Charge Pump MU High interrupt.
Example
This example treats the Charge Pump MU High interrupt.
INLINE void ADC2_VCP_UV_Int_Clr | ( | void | ) |
Clears Charge Pump MU Low interrupt flag.
Example
This example treats the Charge Pump MU Low interrupt.
INLINE void ADC2_VCP_UV_Int_Dis | ( | void | ) |
Disables Charge Pump MU Low interrupt.
Example
This example treats the Charge Pump MU Low interrupt.
INLINE void ADC2_VCP_UV_Int_En | ( | void | ) |
Enables Charge Pump MU Low interrupt.
Example
This example treats the Charge Pump MU Low interrupt.
INLINE void ADC2_VDDC_OV_Int_Clr | ( | void | ) |
Clears VDDC Overvoltage interrupt flag.
Example
This example treats the VDDC Overvoltage interrupt.
INLINE void ADC2_VDDC_OV_Int_Dis | ( | void | ) |
Disables VDDC Overvoltage interrupt.
Example
This example treats the VDDC Overvoltage interrupt.
INLINE void ADC2_VDDC_OV_Int_En | ( | void | ) |
Enables VDDC Overvoltage interrupt.
Example
This example treats the VDDC Overvoltage interrupt.
INLINE void ADC2_VDDC_UV_Int_Clr | ( | void | ) |
Clears VDDC Undervoltage interrupt flag.
Example
This example treats the VDDC Undervoltage interrupt.
INLINE void ADC2_VDDC_UV_Int_Dis | ( | void | ) |
Disables VDDC Undervoltage interrupt.
Example
This example treats the VDDC Undervoltage interrupt.
INLINE void ADC2_VDDC_UV_Int_En | ( | void | ) |
Enables VDDC Undervoltage interrupt.
Example
This example treats the VDDC Undervoltage interrupt.
INLINE void ADC2_VDDEXT_OV_Int_Clr | ( | void | ) |
Clears VDDEXT Overvoltage interrupt flag.
Example
This example treats the VDDEXT Overvoltage interrupt.
INLINE void ADC2_VDDEXT_OV_Int_Dis | ( | void | ) |
Disables VDDEXT Overvoltage interrupt.
Example
This example treats the VDDEXT Overvoltage interrupt.
INLINE void ADC2_VDDEXT_OV_Int_En | ( | void | ) |
Enables VDDEXT Overvoltage interrupt.
Example
This example treats the VDDEXT Overvoltage interrupt.
INLINE void ADC2_VDDEXT_UV_Int_Clr | ( | void | ) |
Clears VDDEXT Undervoltage interrupt flag.
Example
This example treats the VDDEXT Undervoltage interrupt.
INLINE void ADC2_VDDEXT_UV_Int_Dis | ( | void | ) |
Disables VDDEXT Undervoltage interrupt.
Example
This example treats the VDDEXT Undervoltage interrupt.
INLINE void ADC2_VDDEXT_UV_Int_En | ( | void | ) |
Enables VDDEXT Undervoltage interrupt.
Example
This example treats the VDDEXT Undervoltage interrupt.
INLINE void ADC2_VDDP_OV_Int_Clr | ( | void | ) |
Clears VDDP Overvoltage interrupt flag.
Example
This example treats the VDDP Overvoltage interrupt.
INLINE void ADC2_VDDP_OV_Int_Dis | ( | void | ) |
Disables VDDP Overvoltage interrupt.
Example
This example treats the VDDP Overvoltage interrupt.
INLINE void ADC2_VDDP_OV_Int_En | ( | void | ) |
Enables VDDP Overvoltage interrupt.
Example
This example treats the VDDP Overvoltage interrupt.
INLINE void ADC2_VDDP_UV_Int_Clr | ( | void | ) |
Clears VDDP Undervoltage interrupt flag.
Example
This example treats the VDDP Undervoltage interrupt.
INLINE void ADC2_VDDP_UV_Int_Dis | ( | void | ) |
Disables VDDP Undervoltage interrupt.
Example
This example treats the VDDP Undervoltage interrupt.
INLINE void ADC2_VDDP_UV_Int_En | ( | void | ) |
Enables VDDP Undervoltage interrupt.
Example
This example treats the VDDP Undervoltage interrupt.
INLINE void ADC2_VS_OV_Int_Clr | ( | void | ) |
Clears VS Overvoltage interrupt flag.
Example
This example treats the VS Overvoltage interrupt.
INLINE void ADC2_VS_OV_Int_Dis | ( | void | ) |
Disables VS Overvoltage interrupt.
Example
This example treats the VS Overvoltage interrupt.
INLINE void ADC2_VS_OV_Int_En | ( | void | ) |
Enables VS Overvoltage interrupt.
Example
This example treats the VS Overvoltage interrupt.
INLINE void ADC2_VS_UV_Int_Clr | ( | void | ) |
Clears VS Undervoltage interrupt flag.
Example
This example treats the VS Undervoltage interrupt.
INLINE void ADC2_VS_UV_Int_Dis | ( | void | ) |
Disables VS Undervoltage interrupt flag.
Example
This example treats the VS Undervoltage interrupt.
INLINE void ADC2_VS_UV_Int_En | ( | void | ) |
Enables VS Undervoltage interrupt flag.
Example
This example treats the VS Undervoltage interrupt.
INLINE void ADC2_VSD_OV_Int_Clr | ( | void | ) |
Clears Driver Supply MU High interrupt flag.
Example
This example treats the Driver Supply MU High interrupt.
INLINE void ADC2_VSD_OV_Int_Dis | ( | void | ) |
Disables Driver Supply MU High interrupt.
Example
This example treats the Driver Supply MU High interrupt.
INLINE void ADC2_VSD_OV_Int_En | ( | void | ) |
Enables Driver Supply MU High interrupt.
Example
This example treats the Driver Supply MU High interrupt.
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.
INLINE void ADC2_VSD_UV_Int_Dis | ( | void | ) |
Disables Driver Supply MU Low interrupt.
Example
This example treats the Driver Supply MU Low interrupt.
INLINE void ADC2_VSD_UV_Int_En | ( | void | ) |
Enables Driver Supply MU Low interrupt.
Example
This example treats the Driver Supply MU Low interrupt.
INLINE void BDRV_VCP_OTSD_Int_Clr | ( | void | ) |
Clears Charge Pump Over-temperature Shutdown interrupt flag.
Example
This example treats the Charge Pump Over-temperature Shutdown interrupt.