This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Representation of 24-bit and 40 bit values

Hi,

I am trying to develop models using the Specifications. I came across generic battery model which was using 24-bit values, time model which was using 15-bit and 40-bit values, scheduler model uses 4-bit and 76 bit values. 

In the stdint.h, there are representations for 8,16, 32 and 64 bit values.

For the 15-bit parameter, I can use 16-bit integer. Should I use the 8-bit integer for the 4-bit parameter then?

Also for the 24 bit, 40-bit and 76-bit, should I define the limits in the stdint.h or should I use the 32 bit integer for 24-bit, 64 bit integer for 40-bit?

Regards.

Parents Reply Children
No Data
Related