Depending on the usecase, the SD card initialization could be done at the application level, if it is the case define the flag below to disable the BSP_SD_Init() call in the SD_Initialize().
More...
#include <SDSTM32DiskIO.h>
|
DSTATUS | SD_CheckStatus (BYTE lun) |
|
|
volatile DSTATUS | stat = STA_NOINIT |
|
Depending on the usecase, the SD card initialization could be done at the application level, if it is the case define the flag below to disable the BSP_SD_Init() call in the SD_Initialize().
◆ disk_initialize()
DSTATUS fatfs::SDSTM32DiskIO::disk_initialize |
( |
BYTE |
lun | ) |
|
|
inlineoverridevirtual |
Initializes a Drive.
- Parameters
-
- Return values
-
Reimplemented from fatfs::BaseIO.
◆ disk_ioctl()
DRESULT fatfs::SDSTM32DiskIO::disk_ioctl |
( |
BYTE |
lun, |
|
|
ioctl_cmd_t |
cmd, |
|
|
void * |
buff |
|
) |
| |
|
inlinevirtual |
I/O control operation.
- Parameters
-
lun | : not used |
cmd | Control code |
*buff | Buffer to send/receive control data |
- Return values
-
Reimplemented from fatfs::BaseIO.
◆ disk_read()
DRESULT fatfs::SDSTM32DiskIO::disk_read |
( |
BYTE |
lun, |
|
|
BYTE * |
buff, |
|
|
DWORD |
sector, |
|
|
UINT |
count |
|
) |
| |
|
inlinevirtual |
Reads Sector(s)
- Parameters
-
lun | : not used |
*buff | Data buffer to store read data |
sector | Sector address (LBA) |
count | Number of sectors to read (1..128) |
- Return values
-
Reimplemented from fatfs::BaseIO.
◆ disk_status()
DSTATUS fatfs::SDSTM32DiskIO::disk_status |
( |
BYTE |
lun | ) |
|
|
inlineoverridevirtual |
Gets Disk Status.
- Parameters
-
- Return values
-
Reimplemented from fatfs::BaseIO.
◆ disk_write()
DRESULT fatfs::SDSTM32DiskIO::disk_write |
( |
BYTE |
lun, |
|
|
const BYTE * |
buff, |
|
|
DWORD |
sector, |
|
|
UINT |
count |
|
) |
| |
|
inlinevirtual |
Writes Sector(s)
- Parameters
-
lun | : not used |
*buff | Data to be written |
sector | Sector address (LBA) |
count | Number of sectors to write (1..128) |
- Return values
-
Reimplemented from fatfs::BaseIO.
The documentation for this class was generated from the following file: