#include <vstypes.h>
#include "fat.h"
Include dependency graph for minifat.h:
Go to the source code of this file.
Defines | |
#define | MINIFAT_H |
Typedefs | |
typedef s_int16(* | freeSectorCallback )(void *private, u_int32 sector, u_int32 numSecs) |
Functions | |
auto u_int16 | FatGetByte (register __c0 u_int16 n) |
auto u_int16 | FatGetWord (register __c0 u_int16 n) |
auto u_int32 | FatGetLong (register __c0 u_int16 n) |
auto u_int16 | FatInitFileSystem (void) |
auto __y struct FRAGMENT * | FatFragmentList (register __i2 __y struct FRAGMENT *frag, register __reg_b u_int32 fatCluster) |
auto s_int16 | FatHandleDir (register __y struct FRAGMENT *curFragment, __y struct FRAGMENT *nextFragment) |
auto s_int16 | FatOpenFile (register __c0 u_int16 fileNum) |
auto s_int16 | FatReadFile (register __i3 u_int16 *buf, register __c1 s_int16 byteOff, register __c0 s_int16 byteSize) |
u_int32 | FatTell (void) |
u_int32 | FatSeek (register __reg_a u_int32 pos) |
auto u_int32 | FatFindSector (register __reg_d u_int32 pos) |
auto s_int16 | FatCheckFileType (register __reg_a u_int32 suffix) |
void | MemCopyPackedBigEndian (register __i0 u_int16 *dst, register __a0 u_int16 dstidx, register __i1 u_int16 *src, register __a1 u_int16 srcidx, register __b0 u_int16 byteSize) |
void | MemCopyPackedLittleEndian (register __i0 u_int16 *dst, register __a0 u_int16 dstidx, register __i1 u_int16 *src, register __a1 u_int16 srcidx, register __b0 u_int16 byteSize) |
void | MemWritePacked (register __a0 void *dst, register __a1 u_int16 dstidx, register __b0 u_int16 dat) |
u_int16 | MemReadPacked (register __a0 const void *src, register __a1 u_int16 srcidx) |
void | MemWritePackedY (register __a0 __y void *dst, register __a1 u_int16 dstidx, register __b0 u_int16 dat) |
u_int16 | MemReadPackedY (register __a0 __y const void *src, register __a1 u_int16 srcidx) |
s_int16 | FatIterateOverFreeSectors (freeSectorCallback callBackFunction, void *private) |
auto u_int16 | ReadDiskSector (register __i0 u_int16 *buffer, register __reg_a u_int32 sector) |
Definition in file minifat.h.
|
|
|
|
|
Internal function to compare the 24-bit parameter to allowed suffixes.
|
|
Internal function to locate the right sector for the current read position.
|
|
Creates a list of fragments in a file, starting from a specified FAT cluster.
|
|
Reads byte values from minifatBuffer.
|
|
Reads 32-bit long values from minifatBuffer.
|
|
Reads 16-bit word values from minifatBuffer.
|
|
Internal function that scans files until the right file is found. Uses minifatInfo.gFileNum[0] and minifatInfo.gFileNum[1] for file number counts.
|
|
Initializes the file system and checks if FAT present.
|
|
Finds free areas from the FAT disk and executes a callback function.
|
|
Opens the specified file for reading. Only counts files that match a suffix set in the array set to minifatInfo.supportedSuffixes, or all files if minifatInfo.supportedSuffixes is NULL.
|
|
|
|
Changes the current read byte position of the file.
|
|
Returns the current read byte position of the file.
|
|
Copies big-endian packed byte strings with arbitrary alignments (in X memory).
|
|
Not in VS1000B ROM! |
|
Not in VS1000B ROM! |
|
Not in VS1000B ROM! |
|
Not in VS1000B ROM! |
|
Writes bytes to big-endian packed byte array in Y memory.
|
|
Outside service that must be provided for minifat. VS1000 provides this function through IRAM hook ReadDiskSector. The default value for it is MapperReadDiskSector(), which uses map->Read() to implement the sector read.
|