But I'm not going to show you any code.
Because as I was taught to write code you prepare a flow chart first, I can't figure out this one block of my flow chart, and have not written the code yet, as depending on how I approach this problem will impact some of the code before. I can put together some psueo code from my flow chart.
On interrupt (caused by message reception interrupt on CAN control chip (MCP 2515) {
Byte Variable= GetCANVariable();
Byte DataType=GetCANDataType();
If Datatype ==
byte value=GetCANByte();
if Variable==1
variable1=value;
else if Variable==2
variable2=value
...Repeat for each data type and varaiable
But, I'm not going to tell you what they are.
Right now I have 35 different variables (why I want to not use if statements, or even switch statements if I can avoid it). I have floats, Booleans, ints, Unsigned ints, bytes, and unsigned longs.
I'd suggest that you put your hands in your pockets while talking. The handwaving adds nothing since we can't see it. Details, man!
Sorry for asking a question without having lost of details worked out, I have applied the principals of preliminary design, which I use all the time at my job, to this hobby project. I am not a programmer by trade and apparently approach projects from a different perspective.