Lines Matching refs:buffpp
138 unsigned char **buffpp, in get_mbg_tm() argument
142 tmp->year = get_lsb_int16(buffpp); in get_mbg_tm()
143 tmp->month = *(*buffpp)++; in get_mbg_tm()
144 tmp->mday = *(*buffpp)++; in get_mbg_tm()
145 tmp->yday = get_lsb_int16(buffpp); in get_mbg_tm()
146 tmp->wday = *(*buffpp)++; in get_mbg_tm()
147 tmp->hour = *(*buffpp)++; in get_mbg_tm()
148 tmp->min = *(*buffpp)++; in get_mbg_tm()
149 tmp->sec = *(*buffpp)++; in get_mbg_tm()
150 tmp->frac = get_lsb_long(buffpp); in get_mbg_tm()
151 tmp->offs_from_utc = get_lsb_long(buffpp); in get_mbg_tm()
152 tmp->status = get_lsb_uint16(buffpp); in get_mbg_tm()
157 unsigned char **buffpp, in get_mbg_ttm() argument
161 ttmp->channel = get_lsb_int16(buffpp); in get_mbg_ttm()
162 get_mbg_tgps(buffpp, &ttmp->t); in get_mbg_ttm()
163 get_mbg_tm(buffpp, &ttmp->tm); in get_mbg_ttm()
168 unsigned char **buffpp, in get_mbg_synth() argument
172 synthp->freq = get_lsb_int16(buffpp); in get_mbg_synth()
173 synthp->range = get_lsb_int16(buffpp); in get_mbg_synth()
174 synthp->phase = get_lsb_int16(buffpp); in get_mbg_synth()
179 unsigned char **buffpp, in get_mbg_tzname() argument
183 strlcpy(tznamep, (char *)*buffpp, sizeof(TZ_NAME)); in get_mbg_tzname()
184 *buffpp += sizeof(TZ_NAME); in get_mbg_tzname()
189 unsigned char **buffpp, in get_mbg_tzdl() argument
193 tzdlp->offs = get_lsb_long(buffpp); in get_mbg_tzdl()
194 tzdlp->offs_dl = get_lsb_long(buffpp); in get_mbg_tzdl()
195 get_mbg_tm(buffpp, &tzdlp->tm_on); in get_mbg_tzdl()
196 get_mbg_tm(buffpp, &tzdlp->tm_off); in get_mbg_tzdl()
197 get_mbg_tzname(buffpp, (char *)tzdlp->name[0]); in get_mbg_tzdl()
198 get_mbg_tzname(buffpp, (char *)tzdlp->name[1]); in get_mbg_tzdl()
203 unsigned char **buffpp, in get_mbg_antinfo() argument
207 antinfop->status = get_lsb_int16(buffpp); in get_mbg_antinfo()
208 get_mbg_tm(buffpp, &antinfop->tm_disconn); in get_mbg_antinfo()
209 get_mbg_tm(buffpp, &antinfop->tm_reconn); in get_mbg_antinfo()
210 antinfop->delta_t = get_lsb_long(buffpp); in get_mbg_antinfo()
215 char **buffpp, in mbg_time_status_str() argument
240 start = p = *buffpp; in mbg_time_status_str()
246 if (p != *buffpp) in mbg_time_status_str()
255 *buffpp = p; in mbg_time_status_str()
261 char **buffpp, in mbg_tm_str() argument
267 char *s = *buffpp; in mbg_tm_str()
269 snprintf(*buffpp, size, "%04d-%02d-%02d %02d:%02d:%02d.%07ld (%c%02d%02d) ", in mbg_tm_str()
275 *buffpp += strlen(*buffpp); in mbg_tm_str()
278 mbg_time_status_str(buffpp, tmp->status, size - (*buffpp - s)); in mbg_tm_str()
283 char **buffpp, in mbg_tgps_str() argument
288 snprintf(*buffpp, size, "week %d + %ld days + %ld.%07ld sec", in mbg_tgps_str()
291 *buffpp += strlen(*buffpp); in mbg_tgps_str()
296 unsigned char **buffpp, in get_mbg_cfgh() argument
302 cfghp->csum = (CSUM) get_lsb_short(buffpp); in get_mbg_cfgh()
303 cfghp->valid = get_lsb_int16(buffpp); in get_mbg_cfgh()
304 get_mbg_tgps(buffpp, &cfghp->tot_51); in get_mbg_cfgh()
305 get_mbg_tgps(buffpp, &cfghp->tot_63); in get_mbg_cfgh()
306 get_mbg_tgps(buffpp, &cfghp->t0a); in get_mbg_cfgh()
310 get_mbg_cfg(buffpp, &cfghp->cfg[i]); in get_mbg_cfgh()
315 get_mbg_health(buffpp, &cfghp->health[i]); in get_mbg_cfgh()
321 unsigned char **buffpp, in get_mbg_utc() argument
325 utcp->csum = (CSUM) get_lsb_short(buffpp); in get_mbg_utc()
326 utcp->valid = get_lsb_int16(buffpp); in get_mbg_utc()
328 get_mbg_tgps(buffpp, &utcp->t0t); in get_mbg_utc()
330 if (fetch_ieee754(buffpp, IEEE_DOUBLE, &utcp->A0, mbg_double) != IEEE_OK) in get_mbg_utc()
335 if (fetch_ieee754(buffpp, IEEE_DOUBLE, &utcp->A1, mbg_double) != IEEE_OK) in get_mbg_utc()
340 utcp->WNlsf = get_lsb_uint16(buffpp); in get_mbg_utc()
341 utcp->DNt = get_lsb_int16(buffpp); in get_mbg_utc()
342 utcp->delta_tls = *(*buffpp)++; in get_mbg_utc()
343 utcp->delta_tlsf = *(*buffpp)++; in get_mbg_utc()
348 unsigned char **buffpp, in get_mbg_lla() argument
356 if (fetch_ieee754(buffpp, IEEE_DOUBLE, &lla[i], mbg_double) != IEEE_OK) in get_mbg_lla()
370 unsigned char **buffpp, in get_mbg_xyz() argument
378 if (fetch_ieee754(buffpp, IEEE_DOUBLE, &xyz[i], mbg_double) != IEEE_OK) in get_mbg_xyz()
387 unsigned char **buffpp, in get_mbg_comparam() argument
393 comparamp->baud_rate = get_lsb_long(buffpp); in get_mbg_comparam()
396 comparamp->framing[i] = *(*buffpp)++; in get_mbg_comparam()
398 comparamp->handshake = get_lsb_int16(buffpp); in get_mbg_comparam()
403 unsigned char **buffpp, in get_mbg_portparam() argument
411 get_mbg_comparam(buffpp, &portparamp->com[i]); in get_mbg_portparam()
415 portparamp->mode[i] = *(*buffpp)++; in get_mbg_portparam()
427 unsigned char ** buffpp, in get_mbg_eph() argument
431 ephp->csum = (CSUM) get_lsb_short(buffpp); in get_mbg_eph()
432 ephp->valid = get_lsb_int16(buffpp); in get_mbg_eph()
434 ephp->health = (HEALTH) get_lsb_short(buffpp); in get_mbg_eph()
435 ephp->IODC = (IOD) get_lsb_short(buffpp); in get_mbg_eph()
436 ephp->IODE2 = (IOD) get_lsb_short(buffpp); in get_mbg_eph()
437 ephp->IODE3 = (IOD) get_lsb_short(buffpp); in get_mbg_eph()
439 get_mbg_tgps(buffpp, &ephp->tt); in get_mbg_eph()
440 get_mbg_tgps(buffpp, &ephp->t0c); in get_mbg_eph()
441 get_mbg_tgps(buffpp, &ephp->t0e); in get_mbg_eph()
443 FETCH_DOUBLE(buffpp, &ephp->sqrt_A); in get_mbg_eph()
444 FETCH_DOUBLE(buffpp, &ephp->e); in get_mbg_eph()
445 FETCH_DOUBLE(buffpp, &ephp->M0); in get_mbg_eph()
446 FETCH_DOUBLE(buffpp, &ephp->omega); in get_mbg_eph()
447 FETCH_DOUBLE(buffpp, &ephp->OMEGA0); in get_mbg_eph()
448 FETCH_DOUBLE(buffpp, &ephp->OMEGADOT); in get_mbg_eph()
449 FETCH_DOUBLE(buffpp, &ephp->deltan); in get_mbg_eph()
450 FETCH_DOUBLE(buffpp, &ephp->i0); in get_mbg_eph()
451 FETCH_DOUBLE(buffpp, &ephp->idot); in get_mbg_eph()
452 FETCH_DOUBLE(buffpp, &ephp->crc); in get_mbg_eph()
453 FETCH_DOUBLE(buffpp, &ephp->crs); in get_mbg_eph()
454 FETCH_DOUBLE(buffpp, &ephp->cuc); in get_mbg_eph()
455 FETCH_DOUBLE(buffpp, &ephp->cus); in get_mbg_eph()
456 FETCH_DOUBLE(buffpp, &ephp->cic); in get_mbg_eph()
457 FETCH_DOUBLE(buffpp, &ephp->cis); in get_mbg_eph()
459 FETCH_DOUBLE(buffpp, &ephp->af0); in get_mbg_eph()
460 FETCH_DOUBLE(buffpp, &ephp->af1); in get_mbg_eph()
461 FETCH_DOUBLE(buffpp, &ephp->af2); in get_mbg_eph()
462 FETCH_DOUBLE(buffpp, &ephp->tgd); in get_mbg_eph()
464 ephp->URA = get_lsb_uint16(buffpp); in get_mbg_eph()
466 ephp->L2code = *(*buffpp)++; in get_mbg_eph()
467 ephp->L2flag = *(*buffpp)++; in get_mbg_eph()
472 unsigned char **buffpp, in get_mbg_alm() argument
476 almp->csum = (CSUM) get_lsb_short(buffpp); in get_mbg_alm()
477 almp->valid = get_lsb_int16(buffpp); in get_mbg_alm()
479 almp->health = (HEALTH) get_lsb_short(buffpp); in get_mbg_alm()
480 get_mbg_tgps(buffpp, &almp->t0a); in get_mbg_alm()
483 FETCH_DOUBLE(buffpp, &almp->sqrt_A); in get_mbg_alm()
484 FETCH_DOUBLE(buffpp, &almp->e); in get_mbg_alm()
486 FETCH_DOUBLE(buffpp, &almp->M0); in get_mbg_alm()
487 FETCH_DOUBLE(buffpp, &almp->omega); in get_mbg_alm()
488 FETCH_DOUBLE(buffpp, &almp->OMEGA0); in get_mbg_alm()
489 FETCH_DOUBLE(buffpp, &almp->OMEGADOT); in get_mbg_alm()
490 FETCH_DOUBLE(buffpp, &almp->deltai); in get_mbg_alm()
491 FETCH_DOUBLE(buffpp, &almp->af0); in get_mbg_alm()
492 FETCH_DOUBLE(buffpp, &almp->af1); in get_mbg_alm()
497 unsigned char **buffpp, in get_mbg_iono() argument
501 ionop->csum = (CSUM) get_lsb_short(buffpp); in get_mbg_iono()
502 ionop->valid = get_lsb_int16(buffpp); in get_mbg_iono()
504 FETCH_DOUBLE(buffpp, &ionop->alpha_0); in get_mbg_iono()
505 FETCH_DOUBLE(buffpp, &ionop->alpha_1); in get_mbg_iono()
506 FETCH_DOUBLE(buffpp, &ionop->alpha_2); in get_mbg_iono()
507 FETCH_DOUBLE(buffpp, &ionop->alpha_3); in get_mbg_iono()
509 FETCH_DOUBLE(buffpp, &ionop->beta_0); in get_mbg_iono()
510 FETCH_DOUBLE(buffpp, &ionop->beta_1); in get_mbg_iono()
511 FETCH_DOUBLE(buffpp, &ionop->beta_2); in get_mbg_iono()
512 FETCH_DOUBLE(buffpp, &ionop->beta_3); in get_mbg_iono()