Anyone know...
I have an interrupt service routine, declared as C code (I don't know how to do an ISR in a class)...
That ISR needs to access a variable in a C++ class.
All I can figure to do is make the variable a global but within the class' dot h file. That doesn't protect it and seems wrong.
And... one variable is a void * pointer which will, at run-time, contain the address of a function to call from the ISR, and that function ideally is a class member. The class name isn't known at compile-time, but the type will be void * and the params are void.
I'm learning; bear with me.