• Help Me with string funcitons
    I have a buffer which contains bunch of data. I want to take out the index at some desired string stored on which line number in that buffer. for ex buffer A = {'0','1',0x0D,0x0A,0, '2','3',0x0D...
  • 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...
  • 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...
  • compose a Long of two Ints
    Hello Forum, I want to compose two int variables, which contains the LSW and MSW, respective, into one unsigned long variable. The following code does the right thing: int lo, hi; unsigned long longvar;...