Searched refs:gain_value (Results 1 – 3 of 3) sorted by relevance
655 static inline bool _cyhal_pdm_pcm_invalid_gain_range(int16_t gain_value) in _cyhal_pdm_pcm_invalid_gain_range() argument657 return gain_value < CYHAL_PDM_PCM_MIN_GAIN || gain_value > CYHAL_PDM_PCM_MAX_GAIN; in _cyhal_pdm_pcm_invalid_gain_range()660 static inline cy_en_pdm_pcm_gain_t _cyhal_pdm_pcm_scale_gain_value(int8_t gain_value) in _cyhal_pdm_pcm_scale_gain_value() argument665 return (cy_en_pdm_pcm_gain_t) ((gain_value + 25) / 3); in _cyhal_pdm_pcm_scale_gain_value()
886 uint8_t gain_value, in XMC_VADC_GLOBAL_SHS_SetGainFactor() argument900 shs_ptr->GNCTR00 |= ((uint32_t)gain_value << ch_mask); in XMC_VADC_GLOBAL_SHS_SetGainFactor()905 shs_ptr->GNCTR10 |= ((uint32_t)gain_value << ch_mask); in XMC_VADC_GLOBAL_SHS_SetGainFactor()
2099 uint8_t gain_value,