diff options
Diffstat (limited to 'isgps.c')
-rw-r--r-- | isgps.c | 31 |
1 files changed, 0 insertions, 31 deletions
@@ -318,34 +318,3 @@ enum isgpsstat_t isgps_decode(struct gps_packet_t *session, } /*@ +usereleased +compdef @*/ - -#ifdef __UNUSED__ -void isgps_output_magnavox(isgps30bits_t * ip, unsigned int len, FILE * fp) -/* ship an IS-GPS-200 message to standard output in Magnavox format */ -{ - isgps30bits_t w = 0; - - while (len-- > 0) { - w <<= 30; - w |= *ip++ & W_DATA_MASK; - - w |= isgps_parity(w); - - /* weird-assed inversion */ - if (w & P_30_MASK) - w ^= W_DATA_MASK; - - /* - * Write each 30-bit IS-GPS-200 data word as 5 Magnavox-format bytes - * with data in the low 6-bits of the byte. MSB first. - */ - /*@ -type @*/ - (void)fputc(MAG_TAG_DATA | reverse_bits[(w >> 24) & 0x3f], fp); - (void)fputc(MAG_TAG_DATA | reverse_bits[(w >> 18) & 0x3f], fp); - (void)fputc(MAG_TAG_DATA | reverse_bits[(w >> 12) & 0x3f], fp); - (void)fputc(MAG_TAG_DATA | reverse_bits[(w >> 6) & 0x3f], fp); - (void)fputc(MAG_TAG_DATA | reverse_bits[(w) & 0x3f], fp); - /*@ +type @*/ - } -} -#endif /* __UNUSED__ */ |