Lines Matching refs:phase
225 unsigned short phase; /* current input phase */
610 if ( msg_buf->phase == MBG_NONE )
618 msg_buf->phase = MBG_HEADER; /* receiving header */
625 msg_buf->phase = MBG_STRING; /* prepare to receive ASCII ETX delimited message */
643 if ((msg_buf->phase == MBG_STRING) &&
651 msg_buf->phase = MBG_NONE; /* buffer overflow - discard */
658 switch (msg_buf->phase)
667 parseprintf(DD_PARSE, ("gps_input: %s complete\n", (msg_buf->phase == MBG_DATA) ? "data" : "header"));
674 msg_buf->phase = MBG_NONE;
690 if ( msg_buf->phase == MBG_HEADER )
708 msg_buf->phase = MBG_NONE; /* back to hunting mode */
715 msg_buf->phase = MBG_NONE; /* back to hunting mode */
722 msg_buf->phase = MBG_DATA; /* flag header already complete */
731 msg_buf->phase = MBG_NONE; /* back to hunting mode */