void SDIO_DataConfig(SDIO_DataInitTypeDef* SDIO_DataInitStruct)
uint32_t SDIO_DataTimeOut; uint32_t SDIO_DataLength; uint32_t SDIO_DataBlockSize; uint32_t SDIO_TransferDir; uint32_t SDIO_TransferMode; uint32_t SDIO_DPSM; } SDIO_DataInitTypeDef;
SDIO_DataBlockSize | 説明 |
SDIO_DataBlockSize_1b | Data Block length = 20 = 1 bytes |
SDIO_DataBlockSize_2b | Data Block length = 21 = 2 bytes |
SDIO_DataBlockSize_4b | Data Block length = 22 = 4 bytes |
SDIO_DataBlockSize_8b | Data Block length = 23 = 8 bytes |
SDIO_DataBlockSize_16b | Data Block length = 24 = 16 bytes |
SDIO_DataBlockSize_32b | Data Block length = 25 = 32 bytes |
SDIO_DataBlockSize_64b | Data Block length = 26 = 64 bytes |
SDIO_DataBlockSize_128b | Data Block length = 27 = 128 bytes |
SDIO_DataBlockSize_256b | Data Block length = 28 = 256 bytes |
SDIO_DataBlockSize_512b | Data Block length = 29 = 512 bytes |
SDIO_DataBlockSize_1024b | Data Block length = 210 = 1024 bytes |
SDIO_DataBlockSize_2048b | Data Block length = 211 = 2048 bytes |
SDIO_DataBlockSize_4096b | Data Block length = 212 = 4096 bytes |
SDIO_DataBlockSize_8192b | Data Block length = 213 = 8192 bytes |
SDIO_DataBlockSize_16384b | Data Block length = 214 = 16384 bytes |
SDIO_TransferDir | 説明 |
SDIO_TransferDir_ToCard | コントローラからカードに送信します |
SDIO_TransferDir_ToSDIO | カードからコントローラに送信します |
SDIO_TransferMode | 説明 |
SDIO_TransferMode_Stream | ストリーム・データを送信します |
SDIO_TransferMode_Block | ブロック・データを送信します |
/* Configure the SDIO Data Path State Machine */ SDIO_DataInitTypeDef SDIO_DataInitStructure; SDIO_DataInitStructure.SDIO_DataTimeOut = 0xFFFFFF; SDIO_DataInitStructure.SDIO_DataLength = 0x100; SDIO_DataInitStructure.SDIO_DataBlockSize = SDIO_DataBlockSize_16b; SDIO_DataInitStructure.SDIO_TransferDir = SDIO_TransferDir_ToCard; SDIO_DataInitStructure.SDIO_TransferMode = SDIO_TansferMode_Block; SDIO_DataInitStructure.SDIO_DPSM = SDIO_DPSM_Enable; SDIO_DataConfig(&SDIO_DataInitStructure);