I got some modules containing enumerations. (they contain signals that are used in the state machine).
moduleAsignals.h:
enum ModuleASignals {
modASig1,
modASig2,
...
modASigN,
};
moduleBsignals.h:
enum ModuleBSignals {
modBSig1,
modBSig2,
...
modBSigM,
};
Each module has an arbitrary number of signals.
Now I would like to combine a random selection of modules in one application. The problem is that all signals must be globally visible and that the signals must remain unique. There is also a limit on the size of one signal (8 bits), so I can’t just give unique offsets for the enumerations of individual modules.
enums ? - ( "enum... {" ) , , IDE , .