Introduction
The tcDspRomFs class provides a mechanism to register a precompiled ROM filesystem with the TI DSP BIOS standard I/O libraries. Use of this routine will allow files to be accessed using standard fopen(), fread(), and fwrite() style function calls, as well as C++ stream operators.
- See also:
- MityDSP::tcDspRomFs Class Reference
Example
This is a simple example of tcDspRomFs usage:
{
{
extern tsDspRomFsNode MyFileSystem[];
char buffer[128];
tcDspRomFs* lpRomFs = new tcDspRomFs(MyFileSystem);
lpRomFs->RegisterFileSystem("ROMFS");
FILE* lpFile = fopen("ROMFS:data.txt","r");
while(!feof(lpFile))
{
fread(lpBuff,1,128,lpFile);
}
fclose(lpFile);
...
}