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 | |
| NUTDEVICE | devUrom |
| UROM device information structure. | |
|
|
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.
|
|
|
UROM device information structure. All this UROM stuff is so simple, that it even mimics its own device driver. |