|
Software na iPAQu byl „o něco” složitější. Vyrůstal postupně metodou zdola nahoru, takže první část, která byla implementovaná, bylo schování komunikace se základní deskou. To umožnovala třída AbstractHardware, která měla úplně stejné parametry jako struktura posílaná po seriové lince tam a zpět.
|
|
Software for the iPAQ was “slightly” more complex. It grew bottom-up, so the very first thing that was implemented was an encapsulation of the communication with the main board. This was handled by a class AbstractHardware, which had exactly the same parameters as the structure sent over the serial line. It had only one extra pure virtual function synchronize. It probably does not have any sense to go into more detail, so let's rather talk about what it was good for: this solution allowed very simple switching inputs and outputs of the whole program. It could be direct communication with the AVR chip or it could be a simple simulator or a binary log file. The program would not recognize it.
|