Hi,
I have a program that writes to a specific memory location. I can currently read the value doing this:
#define address1 0x000F0000 //this is the memory location
unsigned long *val1 = (void *) address1;
So * val1 contains what I need from the other program.
Now I want to organize these values in a struct, something like this:
struct my_struct{
unsigned long *val1;
unsigned long *val2;
} pt;
struct my_struct *org;
org = &pt;
But somehow, I can't assign the value in address1 to val1.
e.g.
org->val1 = (void *) address1; //or something like that.
Any ideas what is it that I'm missing?
Many thanks,
ibug