The disk_read reads sector(s) from the disk drive.
DRESULT disk_read (
BYTE* Buffer, // Pointer to the read buffer.
DWORD SectorNumber, // Sector number to read from.
BYTE SectorCount // Number of sectros to read.
);
Parameters
Buffer
Pointer to the read buffer to store the read data. SectorCount * 512 bytes is required for the size of the read buffer.
SectorNumber
Specifies the sector number in logical block address to read from.
SectorCount
Specifies number of sectors to read. The value can be 1 to 255.