wiki:news:10oct2013
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
wiki:news:10oct2013 [2013/09/22 20:39] – pmueller | wiki:news:10oct2013 [2013/09/22 20:50] – pmueller | ||
---|---|---|---|
Line 3: | Line 3: | ||
Sometimes you want to run the same state machine multiple times. E.g. processing three serial interfaces with the same state machine. In object orient languages this is easy as the concept of objects is the basis of these languages. You would simply instantiate the class three times. | Sometimes you want to run the same state machine multiple times. E.g. processing three serial interfaces with the same state machine. In object orient languages this is easy as the concept of objects is the basis of these languages. You would simply instantiate the class three times. | ||
- | Luckily in C there there is also a well known concept to do this. Instead of defining objects you define | + | Luckily in C there is also a well known concept to do this. Instead of defining objects you define |
In this example we will show you how to " | In this example we will show you how to " | ||
Line 23: | Line 23: | ||
You can now simply declare multiple variables of type TESTCASE_INSTANCEDATA_T which contains the data per instance. When calling the state machine just point to one of these variables. | You can now simply declare multiple variables of type TESTCASE_INSTANCEDATA_T which contains the data per instance. When calling the state machine just point to one of these variables. | ||
- | To let the state machine | + | Sometimes it is necessary that a state machine |
<code c> | <code c> |
wiki/news/10oct2013.txt · Last modified: 2022/08/17 19:44 by pmueller