|
ChibiOS/RT
2.5.1 |
Data files.
This header defines abstract interfaces useful to access generic data files in a standardized way.
Definition in file chfiles.h.
Go to the source code of this file.
Data Structures | |
| struct | BaseFileStreamVMT |
BaseFileStream virtual methods table. More... | |
| struct | BaseFileStream |
| Base file stream class. More... | |
Defines | |
| #define | FILE_OK 0 |
| No error return code. | |
| #define | FILE_ERROR 0xFFFFFFFFUL |
| Error code from the file stream methods. | |
| #define | _base_file_stream_methods |
| BaseFileStream specific methods. | |
| #define | _base_file_stream_data _base_sequential_stream_data |
BaseFileStream specific data. | |
Macro Functions (BaseFileStream) | |
| #define | chFileStreamClose(ip) ((ip)->vmt->close(ip)) |
| Base file Stream close. | |
| #define | chFileStreamGetError(ip) ((ip)->vmt->geterror(ip)) |
| Returns an implementation dependent error code. | |
| #define | chFileStreamGetSize(ip) ((ip)->vmt->getsize(ip)) |
| Returns the current file size. | |
| #define | chFileStreamGetPosition(ip) ((ip)->vmt->getposition(ip)) |
| Returns the current file pointer position. | |
| #define | chFileStreamSeek(ip, offset) ((ip)->vmt->lseek(ip, offset)) |
| Moves the file current pointer to an absolute position. | |
Typedefs | |
| typedef uint32_t | fileoffset_t |
| File offset type. | |