/* See "mss_ace.h" for details of how to use this function.  */
ace_channel_handle_t ACE_get_channel_handle(const uint8_t *p_sz_channel_name)
/* See "mss_ace.h" for details of how to use this function.  */
ace_channel_handle_t ACE_get_channel_handle(const uint8_t *p_sz_channel_name)
{
    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].p_sz_channel_name != 0 )
        {
            int32_t diff;
            diff = strncmp( (const char*)p_sz_channel_name, (const char*)g_ace_channel_desc_table[channel_idx].p_sz_channel_name, MAX_CHANNEL_NAME_LENGTH );
            if ( 0 == diff )
            {
                channel_handle = (ace_channel_handle_t)channel_idx;
                break;
            }
        }
    }
    return channel_handle;
}