• Converting 'short' to 'unsigned char'
    Hi, I've to debug an application written by someone else (...) An 'unsigned char' is used to be filled with data from a 'short'. If I change the source 'short' variabele type (filled somewhere...
  • difference between short and char
    Hi all, What is the difference between the data types char and short? According to the book, they are both 8 bits and have the exact same range. Thanks, Steve
  • how would be a char / short variable stored?
    If I've got a struct like: struct mystruct { unsigned char first; unsigned short second; }; How would this be stored in the memory if I'm working with a 32Bit ARM7 microcontroller (SAM serie...
  • 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...
  • 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)...