## disk_read

The disk_read function reads sector(s) from the disk drive.

    DRESULT disk_read (
      BYTE Drive,          /* Physical drive number */
      BYTE* Buffer,        /* Pointer to the read buffer */
      DWORD SectorNumber,  /* Sector number to read from */
      BYTE SectorCount     /* Number of sectros to read */
    );

#### Parameters

Drive
  Specifies the physical drive number to read.
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 start sector number in logical block address.
SectorCount
  Specifies number of sectors to read. The value can be 1 to 255.

#### Return Value

RES_OK (0)
  The function succeeded.
RES_ERROR
  Any error occured during the read operation.
RES_PARERR
  Invalid parameter.
RES_NOTRDY
  The disk dirve has not been initialized.

Return