I am unable to understand some portion of code in a header file and it's usage. I have a header file called xxx.h with a type defined structure and some member variables inside it like this :
typedef Struct{ 
int x,y,z;      //members inside structure
}myStruct;
#define base 0x02300  // must be a RAM address
#define access ((myStruct *) base)
I am unable to find out what the definition #define access ((myStruct *) base) actually does in my code. also in my source file yyy.c, I could access the structure variables using this line:
#include "xxx.h"    
void main()
  {
    access->x = 23;
  }
What i really understand after referring the "pointer to structure " section in C language is I could create a new pointer variable of type myStruct and access the variables inside the structure with that variable using the "->" operator. Please help me to understand this code. thank you
 
    