Lines Matching refs:mb

589 		event = (unsigned short) (getint((u_char *) &mb(1)) & 0xffff);
594 switch (mb(0) & 0xff) {
608 lat = getdbl((u_char *) &mb(42)) * R2D;
609 lon = getdbl((u_char *) &mb(50)) * R2D;
610 alt = getdbl((u_char *) &mb(58));
617 if (mb(st)) {
618 if (mb(st) > 0) ts++;
619 printf(" %02d", mb(st));
625 GPS_UTC_Offset = getint((u_char *) &mb(16));
633 secs = getdbl((u_char *) &mb(3));
646 mmday = decode_date(pp, &mb(11));
653 up->unit, mb(0) & 0xff, event, pp->hour, pp->minute,
674 up->leap_status = mb(19);
680 st = mb(18);
694 mmday = decode_date(pp, &mb(14));
716 mb(19));
723 pp->nsec = (long) (getdbl((u_char *) &mb(3))
726 pp->hour = mb(11);
727 pp->minute = mb(12);
728 pp->second = mb(13);
733 up->unit, mb(0) & 0xff, event, pp->hour, pp->minute,
735 mb(19), *Tracking_Status[st]);
750 lat = getdbl((u_char *) &mb(36)) * R2D;
751 lon = getdbl((u_char *) &mb(44)) * R2D;
752 alt = getdbl((u_char *) &mb(52));
759 if ( (getint((u_char *) &mb(10)) & 0x80) &&
769 up->unit, mb(0) & 0xff, pp->leap);
771 printf("Receiver MODE: 0x%02X\n", (u_char)mb(1));
772 if (mb(1) == 0x00)
774 if (mb(1) == 0x01)
776 if (mb(1) == 0x03)
778 if (mb(1) == 0x04)
780 if (mb(1) == 0x05)
782 if (mb(1) == 0x06)
784 if (mb(1) == 0x07)
787 printf("\n** Disciplining MODE 0x%02X:\n", (u_char)mb(2));
788 if (mb(2) == 0x00)
790 if (mb(2) == 0x01)
792 if (mb(2) == 0x02)
794 if (mb(2) == 0x03)
796 if (mb(2) == 0x04)
798 if (mb(2) == 0x06)
814 GPS_UTC_Offset = getint((u_char *) &mb(7));
824 if ((mb(9) & 0x1d) == 0x0) {
837 printf("Timing flag value is: 0x%X\n", mb(9));
838 if ((mb(9) & 0x01) != 0)
842 if ((mb(9) & 0x02) != 0)
846 if ((mb(9) & 0x04) != 0)
850 if ((mb(9) & 0x08) != 0)
854 if ((mb(9) & 0x10) != 0)
860 mmday = decode_date(pp, &mb(13));
863 tow = getlong((u_char *) &mb(1));
871 pp->hour = mb(12);
872 pp->minute = mb(11);
873 pp->second = mb(10);
879 up->unit, mb(0) & 0xff, event, pp->hour, pp->minute, pp->second,
905 printf("GPS TOW: %ld\n", (long)getlong((u_char *) &mb(0)));
906 printf("GPS WN: %d\n", getint((u_char *) &mb(4)));
907 printf("GPS UTC-GPS Offset: %ld\n", (long)getlong((u_char *) &mb(6)));
932 tow = (long)getsingle((u_char *) &mb(0));
933 wn = (uint16_t)getint((u_char *) &mb(4));
934 GPS_UTC_Offset = (int)getsingle((u_char *) &mb(6));
965 up->unit, mb(0) & 0xff, event, pp->hour, pp->minute, pp->second,
978 switch (mb(0)) {
1006 if (mb(1) != 0) {
1012 if (mb(1) & 0x01)
1014 if (mb(1) & 0x02)
1016 if (mb(1) & 0x03)
1018 if (mb(1) & 0x04)
1020 if (mb(1) & 0x05)
1034 switch (mb(0)) {
1062 if ((mb(1) & 0x3E) != 0) { /* Don't regard bits 0 and 6 as errors */
1067 if ((mb(1) & 0x18) == 0x08)
1069 if ((mb(1) & 0x18) == 0x18)
1102 if ((mb(0) & 0x01) && (mb(0) & 0x02))
1104 if (mb(0) & 0x04)
1107 if (mb(0) & 0x08)
1112 sats = mb(0) & 0xF0;
1122 up->unit, up->rpt_buf[0] & 0xff, mb(0) & 0xff,
1355 mb(up->rpt_cnt++) = *c;
1361 mb(up->rpt_cnt++) =