#include <sys/types.h>
Go to the source code of this file.
Data Structures | |
struct | _ROMENTRY |
Mikro-ROM directory entry structure. More... | |
struct | _ROMFILE |
Mikro-ROM file information structure. More... | |
Typedefs | |
typedef _ROMENTRY | ROMENTRY |
Mikro-ROM directory entry type. | |
typedef _ROMFILE | ROMFILE |
Mikro-ROM file information type. | |
Functions | |
ROMFILE * | NutRomFileOpen (char *name) |
Opens an existing file for reading. | |
int | NutRomFileClose (ROMFILE *romf) |
Close a previously opened file. | |
int | NutRomFileRead (ROMFILE *romf, void *data, size_t size) |
Read data from a file. | |
int | NutRomFileSize (ROMFILE *romf) |
Retrieve the size of a file. | |
int | NutRomFileSeek (ROMFILE *romf, int pos) |
Move the file pointer to a new position. | |
Variables | |
ROMENTRY * | romEntryList |
Linked list of all microROM files. |
|
Close a previously opened file.
|
|
Opens an existing file for reading.
|
|
Read data from a file. Read up to a specified number of bytes of data from a file into a buffer. The function may read fewer than the specified number of bytes if it reaches the end of the file.
|
|
Move the file pointer to a new position. The file pointer is maintained by Nut/OS. It points to the next byte to be read from a file. The file pointer is automatically incremented for each byte read. When the file is opened, it is at position 0, the beginning of the file.
|
|
Retrieve the size of a file.
|