• Packed structure is not packed
    I would like to have a packed structure (because I'm gonna store those data in flash, and need it as small as possible). I'm using Keil 5.22 on nRF51822. typedef struct { uint16_t packedValue;...
  • pragma pack structure in vxworks
    Hi, I am facing a problem in vxWorks. The problem is: I hava a pragma packed structure like below: struct C { float aaa; float bbb; } __attribute__((__packed__)) var3; struct B {...
  • Problem with structures containing structures
    Hello, I have a problem with the following structure declaration: typedef struct { HDEntriesTYPE HDWindowStartSTRUCT; } actualPlayerStatusTYPE; typedef struct { unsigned long StartClusterUL;...
  • 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)...
  • 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...