VLSI Solution Oy VS1103 VLSI Solution Karaoke, MIDI and ADPCM Player Source Code Documentation

Main Page | Class List | File List | Class Members | File Members | Related Pages

buffer.h File Reference

Global buffer for file I/O. More...

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Classes

union  DirRecordUnion
 FAT/VFAT directory record union. More...
struct  DirRecordUnion::Entry
 Standard directory entry. More...
struct  DirRecordUnion::LongEntry
 Extended directory entry. More...
union  DiskBlock
 Disk Block type including RAW data and FAT deciphering structures. More...
struct  DiskBlock::Fat
 Boot Sector / Bios Parameter Block structure. More...
union  DiskBlock::Fat::Extensions
 FAT type specific extensions. More...
struct  DiskBlock::Fat::Extensions::Fat16Specific
 FAT12/16 specific extensions to Bios Parameter Block. More...
struct  DiskBlock::Fat::Extensions::Fat32Specific
 FAT32 specific extensions to Bios Parameter Block. More...
struct  DiskBlock::Raw
 Raw Data (interpret sector as array of 8-bit chars). More...
union  Address
 32-bit data type that is also "byte addressable". More...
struct  Address::B

Typedefs

typedef unsigned char byte
 8 bits, unsigned
typedef unsigned int word
 16 bits (make sure!), unsigned
typedef unsigned long u_32
 32 bits (make sure!), unsigned
typedef DirRecordUnion dirrecordtype
 FAT/VFAT directory record type.
typedef DiskBlock DiskBlockType
 Disk Block type including RAW data and FAT deciphering structures.
typedef Address addressType
 Address type.

Variables

addressType sectorAddress
 Dirty but powerful global variable that is used for 1) remembering which sector is in the RAM disk buffer diskSect and 2) possibly other weird and dirty purposes, be very careful with this!
xdata DiskBlockType diskSect
 File I/O buffer.
xdata unsigned char * dataBufPtr
 Global Data Buffer pointer Used mainly for filling the buffer and reading MP3 data to send to the codec, be very careful with what you do with this global pointer!


Detailed Description

Global buffer for file I/O.

Supported data types: Raw buffer, FAT entries.

Definition in file buffer.h.


Typedef Documentation

typedef union Address addressType
 

Address type.

Definition at line 139 of file buffer.h.

Referenced by BuildFragmentTable(), and GetNextSector().

typedef unsigned char byte
 

8 bits, unsigned

Definition at line 9 of file buffer.h.

typedef union DirRecordUnion dirrecordtype
 

FAT/VFAT directory record type.

Definition at line 46 of file buffer.h.

typedef union DiskBlock DiskBlockType
 

Disk Block type including RAW data and FAT deciphering structures.

typedef unsigned long u_32
 

32 bits (make sure!), unsigned

Definition at line 11 of file buffer.h.

typedef unsigned int word
 

16 bits (make sure!), unsigned

Definition at line 10 of file buffer.h.


Variable Documentation

xdata unsigned char* dataBufPtr
 

Global Data Buffer pointer Used mainly for filling the buffer and reading MP3 data to send to the codec, be very careful with what you do with this global pointer!

Definition at line 15 of file buffer.c.

Referenced by EchoEnable(), FGetChar(), MmcGetData(), OpenFile(), PerformBlockRead(), PlayerTaskHandler(), TransferSectorSCI(), TransferSectorSDI(), WriteDiskSector(), and WritePhysicalSector().

xdata DiskBlockType diskSect
 

File I/O buffer.

Definition at line 11 of file buffer.c.

Referenced by ApplyMidiMap(), BuildFragmentTable(), DumpDiskSector(), EchoEnable(), FatInitGlobals(), FGetChar(), GetFatEntry(), GetNextSector(), GetStorageInformation(), InitMMC(), MmcGetData(), OpenFile(), PerformBlockRead(), PlayerTaskHandler(), RealInitFileSystem(), SelectMidiFile(), SelectRecordFile(), TransferSectorSCI(), TransferSectorSDI(), and WriteDiskSector().

addressType sectorAddress
 

Dirty but powerful global variable that is used for 1) remembering which sector is in the RAM disk buffer diskSect and 2) possibly other weird and dirty purposes, be very careful with this!

Definition at line 17 of file buffer.c.

Referenced by BuildFragmentTable(), DumpDiskSector(), FatInitGlobals(), FGetChar(), GetFatEntry(), GetNextSector(), LoadNextSector(), OpenFile(), PlayDiskSectors(), PlayerTaskHandler(), RealInitFileSystem(), SeekSector(), SelectMidiFile(), WriteDiskSector(), and WritePhysicalSector().


All software copyright 2000-2004 VLSI Solution OY. Redistribution of these software modules is limited to VLSI Solution Oy chip promotional use only. Free or commercial use of these software modules in MP3 players is ok if the product includes chip(s) from VLSI. You can request the complete (compilable) package from mp3@vlsi.fi. This exampe code is provided with good faith to assist You in code development, but under no circumstances will VLSI offer any guarantees on the usability or functionality of any example software or its fitness for any purpose.