VLSI Solution Oy VLSI Solution Oy Evaluation MP3 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 GetAVIBlock().

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 154 of file buffer.h.

Referenced by FGetChar(), GetAVIBlock(), MmcGetData(), OpenFile(), PerformBlockRead(), PlayAvi(), PlayDiskSectors(), Record(), WriteDiskSector(), and WritePhysicalSector().

xdata DiskBlockType diskSect
 

File I/O buffer.

Definition at line 148 of file buffer.h.

Referenced by BuildFragmentTable(), DumpDiskSector(), FatInitGlobals(), FGetChar(), GetAVIBlock(), GetFatEntry(), GetNextSector(), GetStorageInformation(), InitFileSystem(), InitMMC(), MmcGetData(), OpenFile(), PerformBlockRead(), PlayAvi(), PlayDiskSectors(), Record(), WriteClusterChain(), WriteDiskSector(), and WritePhysicalSector().

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 145 of file buffer.h.

Referenced by BuildFragmentTable(), ConsoleDecipherMMCResponse(), DumpDiskSector(), FatInitGlobals(), FGetChar(), GetAVIBlock(), GetFatEntry(), GetNextSector(), InitFileSystem(), LoadNextSector(), OpenFile(), PlayAvi(), PlayCurrentFile(), PlayDiskSectors(), Record(), SeekSector(), WriteClusterChain(), WriteDiskSector(), and WritePhysicalSector().


All software copyright 2000-2004 VLSI Solution OY. Redistribution of these software modules are limited to promotional use only and only with the VS1011 / VS1002 / VS1003 MP3-Evakit evaluation boards. Free or commercial use of these software modules in MP3 players is ok if the product includes MP3 decoder chip(s) from VLSI. You can request the complete (compilable) package from mp3@vlsi.fi