| | 68 | === int giet_fat_open( const char* pathname, unsigned int flags ) === |
| | 69 | Open a file identified by the ''pathname'' argument. The read/write ''flags'' are not supported yet: no effect. |
| | 70 | Return -1 in case or error. |
| | 71 | |
| | 72 | === void giet_fat_read( unsigned int fd, void* buffer, unsigned int count, unsigned int offset ) === |
| | 73 | Read ''count'' sectors from a file identified by the ''fd'' argument, skipping ''offset'' sectors in file, and writing into the user memory ''buffer''. The user buffer base address should be 64 bytes aligned. |
| | 74 | In case or error, it makes a giet_exit(). |
| | 75 | |
| | 76 | === void giet_fat_write( unsigned int fd, void* buffer, unsigned int count, unsigned int offset ) === |
| | 77 | Write ''count'' sectors into a file identified by the ''fd'' argument, skipping ''offset'' sectors in file, and reading from the user memory ''buffer''. The user buffer base address should be 64 bytes aligned. |
| | 78 | In case or error, it makes a giet_exit(). |
| | 79 | |
| | 80 | === void giet_fat_close( unsigned int fd ) === |
| | 81 | Close a file identified by the ''fd'' file descriptor. |
| | 82 | |
| | 83 | |