/* Initializes the SDIO Command according to the specified parameters in the SDIO_CmdInitStruct and send the command.  */
void SDIO_SendCmd(SDIO_CmdInitType *SDIO_CmdInitStruct)
/* Initializes the SDIO Command according to the specified parameters in the SDIO_CmdInitStruct and send the command.  */
void SDIO_SendCmd(SDIO_CmdInitType *SDIO_CmdInitStruct)
{
    uint32_t tmpregister = 0;
    assert_param(IS_SDIO_CMD_INDEX(SDIO_CmdInitStruct->CmdIndex));
    assert_param(IS_SDIO_RESP(SDIO_CmdInitStruct->ResponseType));
    assert_param(IS_SDIO_WAIT(SDIO_CmdInitStruct->WaitType));
    assert_param(IS_SDIO_CPSM(SDIO_CmdInitStruct->CPSMConfig));
    SDIO->CMDARG = SDIO_CmdInitStruct->CmdArgument;
    tmpregister = SDIO->CMDCTRL;
    tmpregister &= CMD_CLR_MASK;
    tmpregister |= (uint32_t)SDIO_CmdInitStruct->CmdIndex | SDIO_CmdInitStruct->ResponseType
                   | SDIO_CmdInitStruct->WaitType | SDIO_CmdInitStruct->CPSMConfig;
    SDIO->CMDCTRL = tmpregister;
}