|I think I finally outdone myself.
#1 <strike>In have class member function to assign pointer to structure from another class. No matter what I do I cannot make the compiler happy.
Closes to "solution" was "need to use static" than when using static I got incomplete type, again. Originally this function was global and the pointer in question was also globally accessible ( function); The pointer ends up in globally accessible struct, so this exercise may be futile anyway. One solution may be to move the assigning function, but I am not sure of its use down the line, I am not there yet,
I am about to give up and make the function global and be done with it. </strike>
OK that one is fixed moved the pointer assinge,t function DONE
#2 I access a class function via pointer however the function calls the calling call method in sort of circular fashion. Again because originally the app was classless , flat.
Any suggestion how to solve this issue?
I really like to keep the functions / methods in relations to hardware , each in its own class.
Sorry for being such pest.
void HCD_SetEnumerationStartFunction(void (*ResetEnd)(void))
hcd_ControlStructure.ResetEnd = ResetEnd;
-- modified 14-Oct-16 13:26pm.