/* param base PDM base pointer param handle Pointer to the pdm_handle_t structure which stores the transfer state.  */
void PDM_TransferAbortReceive(PDM_Type *base, pdm_handle_t *handle)
/* param base PDM base pointer param handle Pointer to the pdm_handle_t structure which stores the transfer state.  */
void PDM_TransferAbortReceive(PDM_Type *base, pdm_handle_t *handle)
{
    assert(handle != NULL);
    PDM_DisableInterrupts(base, (uint32_t)kPDM_FIFOInterruptEnable | (uint32_t)kPDM_ErrorInterruptEnable);
    PDM_Enable(base, false);
    handle->state = kStatus_PDM_Idle;
    (void)memset(handle->pdmQueue, 0, sizeof(pdm_transfer_t) * PDM_XFER_QUEUE_SIZE);
    handle->queueDriver = 0;
    handle->queueUser   = 0;
}