Difference between revisions of "Unit FATFS"

From Ultibo.org
Jump to: navigation, search
Line 5: Line 5:
 
----
 
----
  
Notes: Based on information from numerous sources, primarily the document fatgen103.pdf from Microsoft. FAT Disk Blocks are based on reading a group of sectors into a block at once. The BlockNo of each block is therefore the FAT entry no of the first FAT in the block.
+
'''Ultibo FAT12/16/32/exFAT interface unit'''
  
Notes: The use of IsEightDotThree and GenerateShortName(Ex) from the UltiboUtils unit should be replaced by internal routines optimised for maximum performance. All Block and Entry Offsets have been expanded to 32bit to avoid 16bit overflow on 64K clusters.
+
''Notes:''
 +
Based on information from numerous sources, primarily the document fatgen103.pdf from Microsoft. FAT Disk Blocks are based on reading a group of sectors into a block at once. The BlockNo of each block is therefore the FAT entry no of the first FAT in the block.
 +
 
 +
The use of IsEightDotThree and GenerateShortName(Ex) from the UltiboUtils unit should be replaced by internal routines optimised for maximum performance. All Block and Entry Offsets have been expanded to 32bit to avoid 16bit overflow on 64K clusters.
  
 
=== Constants ===
 
=== Constants ===

Revision as of 05:35, 19 December 2016

Return to Unit Reference


Description


Ultibo FAT12/16/32/exFAT interface unit

Notes: Based on information from numerous sources, primarily the document fatgen103.pdf from Microsoft. FAT Disk Blocks are based on reading a group of sectors into a block at once. The BlockNo of each block is therefore the FAT entry no of the first FAT in the block.

The use of IsEightDotThree and GenerateShortName(Ex) from the UltiboUtils unit should be replaced by internal routines optimised for maximum performance. All Block and Entry Offsets have been expanded to 32bit to avoid 16bit overflow on 64K clusters.

Constants



[Expand]
FATFS specific constants fat*


Type definitions


To be documented

Public variables


To be documented

Function declarations



Initialization functions

[Expand]
procedure FATFSInit;
Description: To be documented


[Expand]
procedure FATFSQuit;
Description: To be documented


FATFS helper functions

[Expand]
function FATTypeToString(AType:TFATType):String;
Description: To be documented


Return to Unit Reference