• struct pointer
    struct A { . . . }; struct B { struct A xdata *structA; . . . }; void test(struct B xdata *structB) { struct A xdata *structA = structB->structA; } structA is a pointer to xdata...
  • void pointer to struct pointer cast
    I declared a void pointer void *ptr; and a typedef struct named testStructure, with a member 'unsigned int a'. Now I will cast this pointer to a struct pointer: ptr=(testStructure*)malloc...
  • about struct pointer for CortexMx
    Enhance struct pointer access, by placing scalars at the beginning and arrays as sub-sequent struct members. Thumb2 instructions encode a limited displacement for memory access. When a struct is...
  • Type struct pointer issue
    Hello, I'm stuck with hardfault handler. When I try to execute read value from pointer address: struct S2E_Packet { uint8_t module_type[3]; uint8_t fw_ver[3]; } __attribute__((packed)) S2E_Packet;...
  • overlaying struct pointers
    as many others, I'm sure, I am DATA space starved. We have, for backwards compatibility to process 'old files" (E1 format) which have the structures with the following pointers: E1_SEIN xdata *E1_SEINp;...