Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/19/08 23:56
Read: times


 
#153725 - Issue with function pointer in xdata struct
Perhaps just brain fade but can someone double check me on this. I am using Keil on an 8052. I have a function pointer saved in a xdata structure. While I see the 3-byte pointer being saved, when I try to use the function the compiler goes to 0x000.


The pointer is saved like this:

pLongTrimSwitch->process = tr_process;


I can confirm the address of tr_process() is saved inside the xdata struct 'network.process' which pLongTrimSwitch was pointing to.

But when I call:

(*network.process)((unsigned int*)network.ca.cdata);


I get a lcall to 0x0000??





List of 2 messages in thread
TopicAuthorDate
Issue with function pointer in xdata struct            01/01/70 00:00      
   Never mind            01/01/70 00:00      

Back to Subject List