Quote:
Originally Posted by
reborg
If I understood this correctly you are getting messages from an embedded device presumable in some kind of encoded struct but you are not actually coding on/for the embedded device.
That's right.
Quote:
Originally Posted by
reborg
If you are post-processing this on an "normal" PC you should just be decoding the messages and using the decoded content to do your processing. For example if you have an 8 bit float of some kind coming out from the device you would convert that and use a standard 32 bit float on your pc and ignore the fact that the data type is much bigger than you actually need.
I'm not actually processing the data. I just have to display them (for analyzing),
but still I need a variable to contain them when I read the data from the file.
Quote:
Originally Posted by
reborg
Likewise is you need to send the information back to the device, you would need to reencode the message into a sequence of bytes and send that.
Adapting/converting the messages rather than reimplmenting the basic functionality will give you much better mileage.
I don't need to resend it anywhere. I just need to contain them, and eventually display them.
I'm actually having the same problem with the integer being 128 bits long. stdint.h is
only able to handle up to uint64_t .
Thanks,
S.