Unit disk_io

Uses
Classes, Interfaces, Objects and Records
Variables

Description

Low level disk I/O module skeleton for Petit FatFs (C)ChaN, 2014

Overview

Functions and Procedures

function disk_initialize(): DSTATUS;
function disk_readp(buff: Pointer; sector: DWORD; offset: DWORD; Count: DWORD): DRESULT;
function disk_writep(buff: Pointer; sc: DWORD): DRESULT;

Types

DSTATUS = byte;
DRESULT = (...);

Constants

STA_NOINIT = $01;
STA_NODISK = $02;

Description

Functions and Procedures

function disk_initialize(): DSTATUS;

Initialize Disk Drive

function disk_readp(buff: Pointer; sector: DWORD; offset: DWORD; Count: DWORD): DRESULT;

Read Partial Sector

Parameters
buff
Pointer to the destination object
sector
Sector number (LBA)
offset
Offset in the sector
count
Byte count (bit15:destination)
function disk_writep(buff: Pointer; sc: DWORD): DRESULT;

Write Partial Sector

Parameters
buff
Pointer to the data to be written, NULL:Initiate/Finalize write operation
sc
Sector number (LBA) or Number of bytes to send

Types

DSTATUS = byte;
 
DRESULT = (...);
 
Values
  • RES_OK = 0: Function succeeded
  • RES_ERROR: Disk error
  • RES_NOTRDY: Not ready
  • RES_PARERR: Invalid parameter

Constants

STA_NOINIT = $01;

Drive not initialized

STA_NODISK = $02;

No medium in the drive


Generated by PasDoc 0.15.0.