/* Send 5 bytes command to the SD card.  */
void SD_SendCmd(uint8_t Cmd, uint32_t Arg, uint8_t Crc)
/* Send 5 bytes command to the SD card.  */
void SD_SendCmd(uint8_t Cmd, uint32_t Arg, uint8_t Crc)
{
  uint32_t i = 0x00;
  uint8_t Frame[6];
  Frame[0] = (Cmd | 0x40);
  Frame[1] = (uint8_t)(Arg >> 24);
  Frame[2] = (uint8_t)(Arg >> 16);
  Frame[3] = (uint8_t)(Arg >> 8);
  Frame[4] = (uint8_t)(Arg);
  Frame[5] = (Crc);
  for (i = 0; i < 6; i++)
  {
    SD_WriteByte(Frame[i]);
  }
}