Ability to designate buffer memory position / offset manually
I would like to use the leveling only for the variable that I know I am going to update frequently, but I do still have a fixed EEPROM memory layout. Looking at this library, it appears that while I can set the size for the leveling buffer, there's no way to put it somewhere not in the beginning of the EEPROM. I am referring to this:
uint8_t EEPROMWearLevel::getQueueTail(const uint8_t idx) {
return idx * queueEntriesCount;
}
Perfectly, I'd like to use a volatile EEMEM variable of proper size so that the compiler does that itself), and not just put it to 0 for the 0 index. Is that by design? Any plans of adding that memory offset?
You mean something like adding a way to start from a custom offset in EEPROM, instead of always starting the wear leveling buffer at EEPROM address 0, right?
Yes, correct, I'm not very experienced with microcontroller code, but feels like that would be very handy.
I’m not planning to add this right now, but if you’re interested, I’d be happy to collaborate on making it happen.