/* handle card detect This function will call the cardInserted callback  */
static void SDIF_TransferHandleCardDetect(SDIF_Type *base, sdif_handle_t *handle)
/* handle card detect This function will call the cardInserted callback  */
static void SDIF_TransferHandleCardDetect(SDIF_Type *base, sdif_handle_t *handle)
{
    if (SDIF_DetectCardInsert(base, false) == 1UL)
    {
        if ((handle->callback.cardInserted) != NULL)
        {
            handle->callback.cardInserted(base, handle->userData);
        }
    }
    else
    {
        if ((handle->callback.cardRemoved) != NULL)
        {
            handle->callback.cardRemoved(base, handle->userData);
        }
    }
}