Arduino FatFS
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
fatfs::SDSTM32DiskIO Class Reference
Main » IO

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>

Inheritance diagram for fatfs::SDSTM32DiskIO:
Inheritance graph
[legend]
Collaboration diagram for fatfs::SDSTM32DiskIO:
Collaboration graph
[legend]

Public Member Functions

DSTATUS disk_initialize (BYTE lun) override
 Initializes a Drive. More...
 
DSTATUS disk_status (BYTE lun) override
 Gets Disk Status. More...
 
DRESULT disk_read (BYTE lun, BYTE *buff, DWORD sector, UINT count)
 Reads Sector(s) More...
 
DRESULT disk_write (BYTE lun, const BYTE *buff, DWORD sector, UINT count)
 Writes Sector(s) More...
 
DRESULT disk_ioctl (BYTE lun, ioctl_cmd_t cmd, void *buff)
 I/O control operation. More...
 
virtual FRESULT mount (FatFs &fs)
 mount the file system
 
virtual FRESULT un_mount (FatFs &fs)
 unmount the file system
 

Public Attributes

FATFS fatfs
 

Protected Member Functions

DSTATUS SD_CheckStatus (BYTE lun)
 

Protected Attributes

volatile DSTATUS stat = STA_NOINIT
 

Detailed Description

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().

Member Function Documentation

◆ disk_initialize()

DSTATUS fatfs::SDSTM32DiskIO::disk_initialize ( BYTE  lun)
inlineoverridevirtual

Initializes a Drive.

Parameters
lun: not used
Return values
DSTATUSOperation status

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
cmdControl code
*buffBuffer to send/receive control data
Return values
DRESULTOperation result

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
*buffData buffer to store read data
sectorSector address (LBA)
countNumber of sectors to read (1..128)
Return values
DRESULTOperation result

Reimplemented from fatfs::BaseIO.

◆ disk_status()

DSTATUS fatfs::SDSTM32DiskIO::disk_status ( BYTE  lun)
inlineoverridevirtual

Gets Disk Status.

Parameters
lun: not used
Return values
DSTATUSOperation status

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
*buffData to be written
sectorSector address (LBA)
countNumber of sectors to write (1..128)
Return values
DRESULTOperation result

Reimplemented from fatfs::BaseIO.


The documentation for this class was generated from the following file: