/* Stop conversion of insert channels, disable interruption of end-of-conversion. Disable ADC peripheral if no normal conversion is on going.  */
ald_status_t ald_adc_insert_stop_by_it(ald_adc_handle_t *hperh)
/* Stop conversion of insert channels, disable interruption of end-of-conversion. Disable ADC peripheral if no normal conversion is on going.  */
ald_status_t ald_adc_insert_stop_by_it(ald_adc_handle_t *hperh)
{
    assert_param(IS_ADC_TYPE(hperh->perh));
    CLEAR_BIT(hperh->state, ALD_ADC_STATE_BUSY_I);
    ALD_ADC_DISABLE(hperh);
    ald_adc_interrupt_config(hperh, ALD_ADC_IT_ICH, DISABLE);
    return ALD_OK;
}