Hello-
The callback will run when 0x55 is received, but ComRd will return all the data contained in the serial buffer at that time. This includes data sent to the serial port before 0x55. Since this buffer is a first-in-first-out (FIFO), the 0x55 will probably be the last character read from the buffer.
This technique can be used to set the termination character of the serial bus. So, when data is received, the application will retrieve the incoming data only after it receives the termination character.
Randy Solomonson
Application Engineer
National Instruments