processInputByte

Process a single incoming byte through the stream framing state machine.

Call this repeatedly with bytes from the transport (serial, TCP, etc). When a complete packet is decoded, onPacketReceived is invoked.