I would like to read a binary data that coming on serial port in stream format.
The stream data is a reading data from 6 channels of sensor and for one channel data is represented as 2 bytes. So, the stream data will be 14bytes and the start of a new message will be two words 0xF0, 0xF0 to indicate this is the right data that I want following by 16-bit words organized as LSB and then MSB for one channel.
Is there any QNX API/function that I can use to parse/extract this data byte by byte? Hopefully somebody can help and give me some advice.