Instantiating the world of FSMs, signals, conditions, states, etc., etc.
The Arduino Host context needed to make this source usable are left as an exercise for the reader. This FSM uses the simple int and boolean types.
State machines require memory that exists over Time
A necessary software style while implementing state machines is the use of “global” variables in the C language. In a basic Arduino application, everything is one file and global variables are manageable. Software development in industry is always bound by conventions and standards learned the hard way. One thing every software developer knows: global variables must be managed.
In embedded systems, the question of where a variable is located in memory is a key question for almost every variable, or category of similar variables.
What is the App?
This App waits for data to be transferred here over the Bit Bus. When the data is completely transferred by the signal using the carrier, the result is passed to the App. No consideration is made for error conditions or timing requirements.
SimpleSal apologizes here for the minimal Data Access implementation. A full implementation would include access through the Mesa to connected devices. This software does implement one minimal cycle of the FSM. Or does it not?





