• Problem passing nested struct with pointer on the stack
    The following code (part of a simple GUI running on a 251 platform with an LCD) attempts to pass a struct which is a member of another struct on the stack. A pointer to the container struct is dereferenced...
  • pointer passing
    I don't know if this is me or the compiler. I have a declaration PSD_SIGNAL_DEF far psd_temp_def = {CS_TEMPERATURE_PSD_ADDRESS,CS_TEMPERATURE_PORT,CS_TEMPERATURE_PIN,0}; and a call psd_temp_def...
  • 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...
  • Problems with Passing Pointers as Parameters
    Okay, I'm trying to pass a pointer to a char buffer to a function. It works fine in the Keil simulator/debugger, but not on the target hardware. // Variable Declaration #define MAX_RX_SIZE 100 static...
  • passing function pointers as parameters
    Hi, I have written a simple 8051-application using uVision2 V2.37. I have defined a function which expects a pointer to a function which is then saved in an array of function pointers: int registerFunction...