Searched refs:hal_config (Results 1 – 1 of 1) sorted by relevance
784 static uint32_t _cyhal_adc_get_vref_mv(const cyhal_adc_config_t* hal_config) in _cyhal_adc_get_vref_mv() argument786 switch(hal_config->vref) in _cyhal_adc_get_vref_mv()791 CY_ASSERT(hal_config->ext_vref_mv > 0); // Should have been error checked already in _cyhal_adc_get_vref_mv()792 return hal_config->ext_vref_mv; in _cyhal_adc_get_vref_mv()796 CY_ASSERT(CYHAL_ADC_REF_VDDA == hal_config->vref); in _cyhal_adc_get_vref_mv()836 static cy_rslt_t _cyhal_adc_populate_pdl_config(const cyhal_adc_config_t* hal_config, cy_stc_sar_co… in _cyhal_adc_populate_pdl_config() argument842 pdl_config->vrefSel = _cyhal_adc_convert_vref(hal_config->vref); in _cyhal_adc_populate_pdl_config()843 pdl_config->vrefBypCapEn = hal_config->is_bypassed; in _cyhal_adc_populate_pdl_config()844 …pdl_config->negSel = (hal_config->vneg == CYHAL_ADC_VNEG_VSSA) ? CY_SAR_NEG_SEL_VSSA_KELVIN : CY_S… in _cyhal_adc_populate_pdl_config()850 if(hal_config->resolution != _CYHAL_ADC_RESOLUTION) in _cyhal_adc_populate_pdl_config()[all …]