![]() |
TLE986x Device Family SDK
|
Go to the source code of this file.
Sigma Delta ADC low level access library.
Enumerations | |
enum | TSDADC_OSR { SDADC_OSR_128 = 7, SDADC_OSR_256 = 8, SDADC_OSR_512 = 9, SDADC_OSR_1024 = 10, SDADC_OSR_2048 = 11 } |
This enum lists the SDADC Oversampling Ratio. More... | |
enum | TSDADC_DITHVAL { SDADC_DITH_0_mV = 0, SDADC_DITH_12_5_mV = 1, SDADC_DITH_25_0_mV = 2, SDADC_DITH_37_5_mV = 3, SDADC_DITH_50_0_mV = 4, SDADC_DITH_62_5_mV = 5, SDADC_DITH_75_0_mV = 6, SDADC_DITH_87_5_mV = 7, SDADC_DITH_100_0_mV = 8, SDADC_DITH_112_5_mV = 9, SDADC_DITH_125_0_mV = 10, SDADC_DITH_137_5_mV = 11, SDADC_DITH_150_0_mV = 12, SDADC_DITH_162_5_mV = 13, SDADC_DITH_175_0_mV = 14, SDADC_DITH_187_5_mV = 15 } |
This enum lists the ADC34 Dither Value. More... | |
enum | TSDADC_EOC_CNT { SDADC_IRQ_AFTER_EVERY_EOC = 0, SDADC_IRQ_AFTER_8TH_EOC = 1, SDADC_IRQ_AFTER_16TH_EOC = 2, SDADC_IRQ_AFTER_32ND_EOC = 3 } |
This enum lists the ADC34 EoC counter. More... | |
Functions | |
INLINE void | SDADC_Ch0_Power_On (void) |
enables ADC3 analog frontend. More... | |
INLINE void | SDADC_Ch0_Power_Off (void) |
disables ADC3 analog frontend and ADC3 conversion. More... | |
INLINE void | SDADC_Ch1_Power_On (void) |
enables ADC4 analog frontend. More... | |
INLINE void | SDADC_Ch1_Power_Off (void) |
disables ADC4 analog frontend and ADC4 conversion. More... | |
INLINE sint16 | SDADC_Ch0_Result_Get (void) |
gets ADC3 Result value More... | |
INLINE sint16 | SDADC_Ch1_Result_Get (void) |
gets ADC4 Result value More... | |
INLINE void | SDADC_Ch0_OverSamplingRatio_Sel (uint32 osr) |
selects ADC3 Oversampling Ratio More... | |
INLINE void | SDADC_Ch1_OverSamplingRatio_Sel (uint32 osr) |
selects ADC4 Oversampling Ratio More... | |
INLINE void | SDADC_Dithering_En (void) |
enables ADC34 Dithering More... | |
INLINE void | SDADC_Dithering_Dis (void) |
disables ADC34 Dithering More... | |
INLINE void | SDADC_Dithering_Sel (uint32 dith) |
selects ADC34 Dithering value More... | |
INLINE void | SDADC_IRQ_Rate_Sel (uint32 rate) |
selects ADC34 EoC counter (IRQ rate of ADC34) More... | |
INLINE void | SDADC_Ch0_SOC_Set (void) |
enables ADC3 conversion More... | |
INLINE void | SDADC_Ch0_SOC_Rst (void) |
disables ADC3 conversion More... | |
INLINE void | SDADC_Ch1_SOC_Set (void) |
enables ADC4 conversion More... | |
INLINE void | SDADC_Ch1_SOC_Rst (void) |
disables ADC4 conversion More... | |
INLINE void | SDADC_SOC_Set (void) |
enables ADC3 and ADC4 conversions More... | |
INLINE void | SDADC_SOC_Rst (void) |
disables ADC3 and ADC4 conversions More... | |
INLINE uint8 | SDADC_Ch0_EOC_Sts (void) |
reads ADC3 End of Conversion Status More... | |
INLINE uint8 | SDADC_Ch1_EOC_Sts (void) |
reads ADC4 End of Conversion Status More... | |
INLINE void | SDADC_VAREF_Set (void) |
sets ADC34 reference voltage to VAREF More... | |
INLINE void | SDADC_VDDEXT_Set (void) |
sets ADC34 reference voltage to VDDEXT More... | |
INLINE void | SDADC_Ch0_Offset_Meas_En (void) |
enables ADC3 Offset Measurement More... | |
INLINE void | SDADC_Ch0_Offset_Meas_Dis (void) |
disables ADC3 Offset Measurement More... | |
INLINE void | SDADC_Ch1_Offset_Meas_En (void) |
enables ADC4 Offset Measurement More... | |
INLINE void | SDADC_Ch1_Offset_Meas_Dis (void) |
disables ADC4 Offset Measurement More... | |
INLINE void | SDADC_Ch0_Int_Clr (void) |
clears ADC3 EOC Interrupt flag. More... | |
INLINE void | SDADC_Ch1_Int_Clr (void) |
clears ADC4 EOC Interrupt flag. More... | |
INLINE void | SDADC_Ch0_Int_En (void) |
enables ADC3 EOC Interrupt. More... | |
INLINE void | SDADC_Ch0_Int_Dis (void) |
disables ADC3 EOC Interrupt. More... | |
INLINE void | SDADC_Ch1_Int_En (void) |
enables ADC4 EOC Interrupt. More... | |
INLINE void | SDADC_Ch1_Int_Dis (void) |
disables ADC4 EOC Interrupt. More... | |
void | SDADC_Init (void) |
Initializes the SDADC module (ADC3 and ADC4). More... | |
enum TSDADC_DITHVAL |
This enum lists the ADC34 Dither Value.
enum TSDADC_EOC_CNT |
enum TSDADC_OSR |
reads ADC3 End of Conversion Status
1 | ADC3 conversion terminated |
0 | ADC3 conversion still in progress |
Example
This example waits until the End of ADC3 Conversion.
INLINE void SDADC_Ch0_Int_Clr | ( | void | ) |
clears ADC3 EOC Interrupt flag.
Example
This example treats the ADC3 EOC Interrupt.
INLINE void SDADC_Ch0_Int_Dis | ( | void | ) |
disables ADC3 EOC Interrupt.
Example
This example treats the ADC3 EOC Interrupt.
INLINE void SDADC_Ch0_Int_En | ( | void | ) |
enables ADC3 EOC Interrupt.
Example
This example treats the ADC3 EOC Interrupt.
INLINE void SDADC_Ch0_Offset_Meas_Dis | ( | void | ) |
disables ADC3 Offset Measurement
Example
This example disables ADC3 Offset Measurement.
INLINE void SDADC_Ch0_Offset_Meas_En | ( | void | ) |
enables ADC3 Offset Measurement
Example
This example enables ADC3 Offset Measurement.
selects ADC3 Oversampling Ratio
osr | ADC3 Oversampling Ratio |
Example
This example configures ADC3 Oversampling Ratio to 256.
INLINE void SDADC_Ch0_Power_Off | ( | void | ) |
disables ADC3 analog frontend and ADC3 conversion.
Example
This example disables ADC3 analog frontend.
INLINE void SDADC_Ch0_Power_On | ( | void | ) |
enables ADC3 analog frontend.
Example
This example enables ADC3 analog frontend.
gets ADC3 Result value
Example
This example reads ADC3 Result value.
INLINE void SDADC_Ch0_SOC_Rst | ( | void | ) |
disables ADC3 conversion
Example
This example disables ADC3 conversion.
INLINE void SDADC_Ch0_SOC_Set | ( | void | ) |
enables ADC3 conversion
Example
This example enables ADC3 conversion.
reads ADC4 End of Conversion Status
1 | ADC4 conversion terminated |
0 | ADC4 conversion still in progress |
Example
This example waits until the End of ADC4 Conversion.
INLINE void SDADC_Ch1_Int_Clr | ( | void | ) |
clears ADC4 EOC Interrupt flag.
Example
This example treats the ADC4 EOC Interrupt.
INLINE void SDADC_Ch1_Int_Dis | ( | void | ) |
disables ADC4 EOC Interrupt.
Example
This example treats the ADC4 EOC Interrupt.
INLINE void SDADC_Ch1_Int_En | ( | void | ) |
enables ADC4 EOC Interrupt.
Example
This example treats the ADC4 EOC Interrupt.
INLINE void SDADC_Ch1_Offset_Meas_Dis | ( | void | ) |
disables ADC4 Offset Measurement
Example
This example disables ADC4 Offset Measurement.
INLINE void SDADC_Ch1_Offset_Meas_En | ( | void | ) |
enables ADC4 Offset Measurement
Example
This example enables ADC4 Offset Measurement.
selects ADC4 Oversampling Ratio
osr | ADC4 Oversampling Ratio |
Example
This example configures ADC4 Oversampling Ratio to 1024.
INLINE void SDADC_Ch1_Power_Off | ( | void | ) |
disables ADC4 analog frontend and ADC4 conversion.
Example
This example disables ADC4 analog frontend.
INLINE void SDADC_Ch1_Power_On | ( | void | ) |
enables ADC4 analog frontend.
Example
This example enables ADC4 analog frontend.
gets ADC4 Result value
Example
This example reads ADC4 Result value.
INLINE void SDADC_Ch1_SOC_Rst | ( | void | ) |
disables ADC4 conversion
Example
This example disables ADC4 conversion.
INLINE void SDADC_Ch1_SOC_Set | ( | void | ) |
enables ADC4 conversion
Example
This example enables ADC4 conversion.
INLINE void SDADC_Dithering_Dis | ( | void | ) |
disables ADC34 Dithering
Example
This example disables ADC34 Dithering.
INLINE void SDADC_Dithering_En | ( | void | ) |
enables ADC34 Dithering
Example
This example enables ADC34 Dithering.
selects ADC34 Dithering value
dith | ADC34 Dithering value |
Example
This example sets ADC34 Dithering value to 1.
void SDADC_Init | ( | void | ) |
Initializes the SDADC module (ADC3 and ADC4).
selects ADC34 EoC counter (IRQ rate of ADC34)
rate | EoC counter |
Example
This example sets ADC34 EoC counter to IRQ with every EoC.
INLINE void SDADC_SOC_Rst | ( | void | ) |
disables ADC3 and ADC4 conversions
Example
This example disables ADC3 and ADC4 conversions.
INLINE void SDADC_SOC_Set | ( | void | ) |
enables ADC3 and ADC4 conversions
Example
This example enables ADC3 and ADC4 conversions.
INLINE void SDADC_VAREF_Set | ( | void | ) |
sets ADC34 reference voltage to VAREF
Example
This example sets ADC34 reference voltage to VAREF.
INLINE void SDADC_VDDEXT_Set | ( | void | ) |
sets ADC34 reference voltage to VDDEXT
Example
This example sets ADC34 reference voltage to VDDEXT.