Home
last modified time | relevance | path

Searched refs:hfperFreq (Results 1 – 6 of 6) sorted by relevance

/hal_silabs-3.6.0/gecko/emlib/src/
Dem_adc.c390 uint32_t hfperFreq = CMU_ClockFreqGet(cmuClock_HFPERC); in ADC_Init() local
392 uint32_t hfperFreq = CMU_ClockFreqGet(cmuClock_HFPER); in ADC_Init()
394 uint32_t adcFreq = hfperFreq / (presc + 1); in ADC_Init()
1018 uint8_t ADC_PrescaleCalc(uint32_t adcFreq, uint32_t hfperFreq) in ADC_PrescaleCalc() argument
1030 if (hfperFreq == 0UL) { in ADC_PrescaleCalc()
1032 hfperFreq = CMU_ClockFreqGet(cmuClock_HFPERC); in ADC_PrescaleCalc()
1034 hfperFreq = CMU_ClockFreqGet(cmuClock_HFPER); in ADC_PrescaleCalc()
1038 ret = (hfperFreq + adcFreq - 1U) / adcFreq; in ADC_PrescaleCalc()
1114 uint8_t ADC_TimebaseCalc(uint32_t hfperFreq) in ADC_TimebaseCalc() argument
1116 if (hfperFreq == 0UL) { in ADC_TimebaseCalc()
[all …]
Dem_dac.c261 uint8_t DAC_PrescaleCalc(uint32_t dacFreq, uint32_t hfperFreq) in DAC_PrescaleCalc() argument
271 if (!hfperFreq) { in DAC_PrescaleCalc()
272 hfperFreq = CMU_ClockFreqGet(cmuClock_HFPER); in DAC_PrescaleCalc()
279 if ((hfperFreq >> ret) <= dacFreq) { in DAC_PrescaleCalc()
Dem_vdac.c476 uint32_t VDAC_PrescaleCalc(uint32_t vdacFreq, bool syncMode, uint32_t hfperFreq) in VDAC_PrescaleCalc() argument
488 if (hfperFreq) { in VDAC_PrescaleCalc()
489 refFreq = hfperFreq; in VDAC_PrescaleCalc()
/hal_silabs-3.6.0/gecko/emlib/inc/
Dem_dac.h386 uint8_t DAC_PrescaleCalc(uint32_t dacFreq, uint32_t hfperFreq);
Dem_adc.h1152 uint8_t ADC_TimebaseCalc(uint32_t hfperFreq);
1153 uint8_t ADC_PrescaleCalc(uint32_t adcFreq, uint32_t hfperFreq);
Dem_vdac.h759 uint32_t VDAC_PrescaleCalc(uint32_t vdacFreq, bool syncMode, uint32_t hfperFreq);