/* See "mss_ace.h" for details of how to use this function.  */
ace_channel_handle_t ACE_get_input_channel_handle(adc_channel_id_t channel_id)
/* See "mss_ace.h" for details of how to use this function.  */
ace_channel_handle_t ACE_get_input_channel_handle(adc_channel_id_t channel_id)
{
    uint16_t channel_idx;
    ace_channel_handle_t channel_handle = INVALID_CHANNEL_HANDLE;
    for ( channel_idx = 0u;  channel_idx < (uint16_t)ACE_NB_OF_INPUT_CHANNELS; ++channel_idx )
    {
        if ( g_ace_channel_desc_table[channel_idx].signal_id == channel_id )
        {
            channel_handle = (ace_channel_handle_t)channel_idx;
            break;
        }
    }
    return channel_handle;
}