• struct: uvision describe char as short
    I've one strange error. I define a struct with unsigned short and one unsigned char variable. typedef struct struct1{ unsigned short a; unsigned short b; unsigned char c; unsigned short d; }MsStruct;...
  • Link list in keil uvision simulator
    Hello friends, I am trying to write down link list program given below but, it is not working. Instead of using struct pointer I am able to access structure member. But, why struct pointer is not working...
  • Unsigned short subtraction
    I don't know what the ANSI/ISO C standard says about this, but I would expect the if block in the example below to be executed when a is 0 and b is 65535: /* a and b are unsigned short (16 bits)...
  • problem with shorts in packed structures
    Hi I am using an analog ADuc7022 with the Keil CARM compiler. With a packed structure containing bytes and shorts, I cant access the short data values correctly. For example if I have a short in...
  • Type conversion(short to Q15)
    Dear all I have sampled some data using a 16bit ADC the data is in short(16-bit int) format, now I want to use the Cortex CMSIS DSP library to do some calculations like calculating rms values.I have...