/* param base PDM base pointer. param handle PDM handle pointer. param channel PDM channel. param config channel config. param format data format.  */
status_t PDM_TransferSetChannelConfig(PDM_Type *base, pdm_handle_t *handle, uint32_t channel, const pdm_channel_config_t *config, uint32_t format)
/* param base PDM base pointer. param handle PDM handle pointer. param channel PDM channel. param config channel config. param format data format.  */
status_t PDM_TransferSetChannelConfig(PDM_Type *base, pdm_handle_t *handle, uint32_t channel, const pdm_channel_config_t *config, uint32_t format)
{
    assert(handle != NULL);
    PDM_SetChannelConfig(base, channel, config);
    handle->format = format;
    if (handle->channelNums == 0U)
    {
        handle->startChannel = (uint8_t)channel;
    }
    handle->channelNums++;
    if (handle->channelNums > (uint8_t)FSL_FEATURE_PDM_CHANNEL_NUM)
    {
        return kStatus_PDM_ChannelConfig_Failed;
    }
    return kStatus_Success;
}