Difference between revisions of "Unit FATFS"

From Ultibo.org
Jump to: navigation, search
Line 204: Line 204:
 
| <code>fat16MediaCluster = $FF00;</code>
 
| <code>fat16MediaCluster = $FF00;</code>
 
| First Cluster - $FF00 + MediaID from BPB Usually $FFF8
 
| First Cluster - $FF00 + MediaID from BPB Usually $FFF8
 +
|-
 +
|colspan="2"|&nbsp;
 
|-
 
|-
 
| <code>fat32EndOfFile = $0FFFFFF8;</code>
 
| <code>fat32EndOfFile = $0FFFFFF8;</code>
 
| Some Code sets values from $0FFFFFF8 - $0FFFFFFF as EOF
 
| Some Code sets values from $0FFFFFF8 - $0FFFFFFF as EOF
|-
 
|colspan="2"|&nbsp;
 
 
|-
 
|-
 
| <code>fat32EndOfCluster = $0FFFFFFF;</code>
 
| <code>fat32EndOfCluster = $0FFFFFFF;</code>

Revision as of 03:15, 11 December 2016

Return to Unit Reference


Description


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.

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.

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