[CLOSED] SPI Relay Driver: Whether-or-not-to-fetch Mechanism
Created by: jwoolston
Issue by Matrinica from Thursday Mar 07, 2013 at 17:36 GMT Originally opened as https://github.com/Tenkiv/TekDAQC_Firmware_Old/issues/6
Provide a mechanism so that, when asked for register values, the driver can either get the local copy of the register or fetch the remote copy. It would be something like a switch, that could be implemented as a flag, or a parameter in related functions.
It can be configured to always get the local copy of the registers, so that it works like a cache. Read/Write will be done on the local copy, and the dirty copy due to write will be written to the remote.
Or it can be configured to always fetch the remote copy, so that the copy is always up-to-date. But this would create more traffic in the SPI, and sometimes not necessary.