|
Open Model Railroad Network (OpenMRN)
|
Class that holds information and code for the single-file filesystem for emulating eeprom. More...
#include <ArduinoFs.hxx>
Classes | |
| struct | FileInfo |
| We have one of these for each open file descriptor. More... | |
Static Public Member Functions | |
| static FileInfo * | get_file (int fd) |
| Lookup a file descriptor. | |
| static int | new_fd () |
| Allocates a new file descriptor. | |
| static void | flush_if_dirty () |
| If there is unflushed writes, performs the flash write. | |
Static Public Attributes | |
| static constexpr unsigned | MAX_FD = 8 |
| Number of possible open file desriptors. | |
| static constexpr off_t | UNUSED_FILE = (off_t)-1 |
| Offset markng that a file descriptor is not in use. | |
| static FileInfo | fds [MAX_FD] |
| Stores all file descriptors. | |
| static uint8_t | loaded_ = 0 |
| 1 if we have filled the eeprom buffer at least once since startup. | |
| static uint8_t | dirty_ = 0 |
| 1 if we have unflushed written data in the eeprom buffer. | |
Class that holds information and code for the single-file filesystem for emulating eeprom.
Definition at line 57 of file ArduinoFs.hxx.
|
inlinestatic |
If there is unflushed writes, performs the flash write.
Definition at line 125 of file ArduinoFs.hxx.
|
inlinestatic |
Lookup a file descriptor.
| fd | the file descriptor. |
Definition at line 97 of file ArduinoFs.hxx.
|
inlinestatic |
Allocates a new file descriptor.
Definition at line 110 of file ArduinoFs.hxx.
|
static |
1 if we have unflushed written data in the eeprom buffer.
Definition at line 137 of file ArduinoFs.hxx.
|
static |
Stores all file descriptors.
Definition at line 91 of file ArduinoFs.hxx.
|
static |
1 if we have filled the eeprom buffer at least once since startup.
Definition at line 135 of file ArduinoFs.hxx.
|
staticconstexpr |
Number of possible open file desriptors.
Definition at line 61 of file ArduinoFs.hxx.
|
staticconstexpr |
Offset markng that a file descriptor is not in use.
Definition at line 63 of file ArduinoFs.hxx.