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.c File Reference

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

#include "buffer.h"

Include dependency graph for buffer.c:

Include dependency graph

Go to the source code of this file.

Variables

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!
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!


Detailed Description

Global buffer for file I/O.

Supported data types: Raw buffer, FAT entries.

Definition in file buffer.c.


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.