#include <DspRomFs.h>
Public Member Functions | |
tcDspRomFs (tsDspRomFsNode *apRomFs) | |
Constructor. | |
~tcDspRomFs (void) | |
Destructor. | |
int | RegisterFileSystem (const char *apDevName) |
Register ROM Based Filesystem with TI stdio device library. |
Static Public Attributes | |
static const int | gnMaxRomFileSystems = 5 |
maximum number of filesystems to be opened at once |
Protected Member Functions | |
int | open (const char *path, unsigned flags, int fno) |
Plug for file system open call. | |
int | unlink (const char *path) |
Plug for file system unlink call. | |
int | rename (const char *old_name, const char *new_name) |
Plug for file system rename call. |
Static Protected Member Functions | |
static int | close (int fno) |
Plug for file system close call. | |
static int | read (int fno, char *buffer, unsigned count) |
Plug for file system read call. | |
static int | write (int fno, const char *buffer, unsigned count) |
Plug for file system write call. | |
static off_t | lseek (int fno, off_t offset, int origin) |
Plug for file system seek call. |
Static Protected Attributes | |
static bool | mbInitialized = false |
static int | gnNumRegFileSystems = 0 |
currently allocated fs number |
tcDspRomFs::tcDspRomFs | ( | tsDspRomFsNode * | apRomFs | ) |
Constructor.
Allocates appropriate tables and ensures base filesystem tables are initialized.
[in] | apRomFs | pointer to ROM Based File System Array |
tcDspRomFs::~tcDspRomFs | ( | void | ) |
Destructor.
Not typically reached.
int tcDspRomFs::RegisterFileSystem | ( | const char * | apDevName | ) |
Register ROM Based Filesystem with TI stdio device library.
[in] | apDevName | Name of the device to use on the filesystem |
|
staticprotected |
Plug for file system close call.
fno | file descriptor of file to close. |
|
staticprotected |
Plug for file system read call.
fno | file descriptor to read |
buffer | pointer to buffer for read data |
count | maximum number of bytes to read into the buffer |
|
staticprotected |
Plug for file system write call.
fno | file descriptor number of opened file to write |
buffer | data buffer to write |
count | number of bytes to write. |
Plug for file system seek call.
fno | file descriptor of opened file to seek |
offset | number of bytes to offset from origin |
origin | one of SEEK_SET, SEEK_CUR, or SEEK_END |
|
protected |
Plug for file system open call.
path | path of the file to be opened |
flags | standard I/O flags for opening the file |
fno | internal OS file descriptor pending |
|
protected |
Plug for file system unlink call.
(This is a delete function)
path | path to file to unlink |
|
protected |
Plug for file system rename call.
old_name | file to rename |
new_name | new target name for file |
|
static |
maximum number of filesystems to be opened at once
|
staticprotected |
used to initialize fd tables
|
staticprotected |
currently allocated fs number