Lines Matching refs:mb

479 		event = (unsigned short) (getint((u_char *) &mb(1)) & 0xffff);
484 switch (mb(0) & 0xff) {
500 lat = getdbl((u_char *) &mb(42)) * R2D;
501 lon = getdbl((u_char *) &mb(50)) * R2D;
502 alt = getdbl((u_char *) &mb(58));
509 if (mb(st)) {
510 if (mb(st) > 0) ts++;
511 printf(" %02d", mb(st));
517 GPS_UTC_Offset = getint((u_char *) &mb(16));
525 secs = getdbl((u_char *) &mb(3));
538 if ((pp->day = day_of_year(&mb(11))) < 0) break;
540 pp->year = getint((u_char *) &mb(13));
545 up->unit, mb(0) & 0xff, event, pp->hour, pp->minute,
546 pp->second, pp->nsec, mb(12), mb(11), pp->year, GPS_UTC_Offset);
566 up->leap_status = mb(19);
572 st = mb(18);
601 mb(19));
608 pp->nsec = (long) (getdbl((u_char *) &mb(3))
611 if ((pp->day = day_of_year(&mb(14))) < 0)
613 pp->year = getint((u_char *) &mb(16));
614 pp->hour = mb(11);
615 pp->minute = mb(12);
616 pp->second = mb(13);
621 up->unit, mb(0) & 0xff, event, pp->hour, pp->minute,
622 pp->second, pp->nsec, mb(15), mb(14), pp->year,
623 mb(19), *Tracking_Status[st]);
638 lat = getdbl((u_char *) &mb(36)) * R2D;
639 lon = getdbl((u_char *) &mb(44)) * R2D;
640 alt = getdbl((u_char *) &mb(52));
647 if (getint((u_char *) &mb(10)) & 0x80)
655 up->unit, mb(0) & 0xff, pp->leap);
657 printf("Receiver MODE: 0x%02X\n", (u_char)mb(1));
658 if (mb(1) == 0x00)
660 if (mb(1) == 0x01)
662 if (mb(1) == 0x03)
664 if (mb(1) == 0x04)
666 if (mb(1) == 0x05)
668 if (mb(1) == 0x06)
670 if (mb(1) == 0x07)
673 printf("\n** Disciplining MODE 0x%02X:\n", (u_char)mb(2));
674 if (mb(2) == 0x00)
676 if (mb(2) == 0x01)
678 if (mb(2) == 0x02)
680 if (mb(2) == 0x03)
682 if (mb(2) == 0x04)
684 if (mb(2) == 0x06)
700 GPS_UTC_Offset = getint((u_char *) &mb(7));
710 if ((mb(9) & 0x1d) == 0x0) {
723 printf("Timing flag value is: 0x%X\n", mb(9));
724 if ((mb(9) & 0x01) != 0)
728 if ((mb(9) & 0x02) != 0)
732 if ((mb(9) & 0x04) != 0)
736 if ((mb(9) & 0x08) != 0)
740 if ((mb(9) & 0x10) != 0)
746 if ((pp->day = day_of_year(&mb(13))) < 0)
748 tow = getlong((u_char *) &mb(1));
753 printf("DAY: %d\n", mb(13));
756 pp->year = getint((u_char *) &mb(15));
757 pp->hour = mb(12);
758 pp->minute = mb(11);
759 pp->second = mb(10);
764 printf("TSIP_decode: unit %d: %02X #%d %02d:%02d:%02d.%06ld %02d/%02d/%04d ",up->unit, mb(0) & 0xff, event, pp->hour, pp->minute, pp->second, pp->nsec, mb(14), mb(13), pp->year);
789 printf("GPS TOW: %ld\n", getlong((u_char *) &mb(0)));
790 printf("GPS WN: %d\n", getint((u_char *) &mb(4)));
791 printf("GPS UTC-GPS Offser: %ld\n", getlong((u_char *) &mb(6)));
801 switch (mb(0)) {
829 if (mb(1) != 0) {
835 if (mb(1) && 0x01)
837 if (mb(1) && 0x02)
839 if (mb(1) && 0x03)
841 if (mb(1) && 0x04)
843 if (mb(1) && 0x05)
858 if ((mb(0) & 0x01) && (mb(0) & 0x02))
860 if (mb(0) & 0x04)
863 if (mb(0) & 0x08)
868 sats = mb(0) & 0xF0;
878 up->unit, up->rpt_buf[0] & 0xff, mb(0) & 0xff,
1076 mb(up->rpt_cnt++) = *c;
1082 mb(up->rpt_cnt++) =