persisting a structure to eeprom

Coding and general discussion relating to the compiler

Moderators: David Barker, Jerry Messina

Post Reply
User avatar
rocketbob
Registered User
Registered User
Posts: 51
Joined: Sun Apr 01, 2007 1:36 am
Location: Indiana USA

persisting a structure to eeprom

Post by rocketbob » Sun Dec 20, 2009 3:08 pm

Just curious before I attempt to write a routine to do this...has anyone come up with a generic method to write an entire structure to eeprom?

Regards,
Bob

User avatar
Steven
BETA Tester
Posts: 406
Joined: Tue Oct 03, 2006 8:32 pm
Location: Cumbria, UK

Post by Steven » Sun Dec 20, 2009 7:06 pm

Hi Bob,

I've not done what you are attempting, but the database module I wrote for use with SD might be vaguely helpful - it reads and writes structures.
http://www.sfcompiler.co.uk/wiki/pmwiki ... r.Database

Steve

User avatar
rocketbob
Registered User
Registered User
Posts: 51
Joined: Sun Apr 01, 2007 1:36 am
Location: Indiana USA

Post by rocketbob » Sun Dec 20, 2009 11:49 pm

Hi Steve,

Yes that is helpful, thank you. Just wondering if there's there a better way to determine the length of a structure than computing it manually..?

Regards,
Bob

Post Reply