/* Gets the cuurent sd card data transfer status.  */
SDTransferState SD_GetStatus(void)
/* Gets the cuurent sd card data transfer status.  */
SDTransferState SD_GetStatus(void)
{
  SDCardState cardstate = SD_GetState();
  if (cardstate == SD_CARD_TRANSFER) {
    return SD_TRANSFER_OK;
  }
  else if (cardstate == SD_CARD_ERROR) {
    return SD_TRANSFER_ERROR;
  }
  else {
    return SD_TRANSFER_BUSY;
  }
}