SD Disk I/O driver. More...
Macros | |
#define | SD_TIMEOUT SD_DATATIMEOUT |
#define | SD_DEFAULT_BLOCK_SIZE 512 |
Functions | |
static DSTATUS | SD_CheckStatus (BYTE lun) |
DSTATUS | SD_initialize (BYTE lun) |
Initializes a Drive. More... | |
DSTATUS | SD_status (BYTE lun) |
Gets Disk Status. More... | |
DRESULT | SD_read (BYTE lun, BYTE *buff, DWORD sector, UINT count) |
Reads Sector(s) More... | |
Variables | |
static volatile DSTATUS | Stat = STA_NOINIT |
const Diskio_drvTypeDef | SD_Driver |
SD Disk I/O driver.
This software component is licensed by ST under Ultimate Liberty license SLA0044, the "License"; You may not use this file except in compliance with the License. You may obtain a copy of the License at: www.st.com/SLA0044
#define SD_DEFAULT_BLOCK_SIZE 512 |
#define SD_TIMEOUT SD_DATATIMEOUT |
|
static |
References BSP_SD_GetCardState(), MSD_OK, and Stat.
DSTATUS SD_initialize | ( | BYTE | lun | ) |
Initializes a Drive.
lun | : not used |
DSTATUS | Operation status |
References BSP_SD_Init(), MSD_OK, SD_CheckStatus(), and Stat.
DRESULT SD_read | ( | BYTE | lun, |
BYTE * | buff, | ||
DWORD | sector, | ||
UINT | count | ||
) |
Reads Sector(s)
lun | : not used |
*buff | Data buffer to store read data |
sector | Sector address (LBA) |
count | Number of sectors to read (1..128) |
DRESULT | Operation result |
References BSP_SD_GetCardState(), BSP_SD_ReadBlocks(), MSD_OK, res, and SD_TIMEOUT.
DSTATUS SD_status | ( | BYTE | lun | ) |
Gets Disk Status.
lun | : not used |
DSTATUS | Operation status |
References SD_CheckStatus().
const Diskio_drvTypeDef SD_Driver |
|
static |