Hi Mark,
I need to modify the uParameterSystem for my project. The parameter system is quite complex, and I've had some trouble getting familiar with the architecture. I understand that there are essentially four locations for parameters: two in RAM (working and temporary) and two in FLASH (valid and swap).
Here is my understanding, please correct me if I am wrong: you can use the RAM-temp parameters to make changes, and then commit them to the RAM-working and/or FLASH-swap. When the FLASH-swap are validated (in case of critical--ie: ethernet changes), they are moved to the FLASH-working section and deleted.
Also, I'm a little confused on the valid / validated bytes at the beginning of the block(s). ie: why would we have a valid+validated SWAP block?
I read the uFileSystem document that talks about fnSaveNewPars, fnGetPar, fnSetPar and fnDelPar.
However, I also see that there are other functions that deal with the parameters not described in this document. This includes:
fnGetOurParameters()
fnGetOurParameters_1()
fnGetEthernetPars()
fnRetreiveAllParameters()
At first glace, it appears there is some redundancy here, but I'm sure there is a reason???