Lines Matching full:epoch

84 #define WWV_SEC		8000	/* second epoch (sample rate) (Hz) */
85 #define WWV_MIN (WWV_SEC * 60) /* minute epoch */
133 #define MSYNC 0x0001 /* minute epoch sync */
134 #define SSYNC 0x0002 /* second epoch sync */
481 double epoch; /* accumulated epoch differences */ member
486 long mepoch; /* minute synch epoch */
536 int yepoch; /* sync epoch */
537 int repoch; /* buffered sync epoch */
896 * quadrature phase. The routine also determines the minute synch epoch,
900 * logical clock samples spanning exactly one second. The epoch ramp
903 * during the epoch ramp.
969 static int epopos; /* epoch second sync position buffer */ in wwv_rf()
972 int epoch; /* comb filter index */ in wwv_rf() local
1091 * while the second counter (epoch) counts the samples in the in wwv_rf()
1095 epoch = up->mphase % WWV_SEC; in wwv_rf()
1174 * If the leap bit is set, set the minute epoch in wwv_rf()
1188 * counter matches the minute epoch within the second, the in wwv_rf()
1190 * the remaining seconds until the next minute epoch, while the in wwv_rf()
1191 * sync epoch is zero. Watch out for the first second; if in wwv_rf()
1192 * already synchronized to the second, the buffered sync epoch in wwv_rf()
1205 if (sp->metric >= TTHR && epoch == sp->mepoch % WWV_SEC) in wwv_rf()
1212 up->repoch = up->yepoch = epoch; in wwv_rf()
1246 dtemp = (epobuf[epoch] += (mfsync - epobuf[epoch]) / in wwv_rf()
1252 epopos = epoch; in wwv_rf()
1253 j = epoch - 6 * MS; in wwv_rf()
1258 if (epoch == 0) { in wwv_rf()
1289 * difference between the current and previous epoch must be less than
1292 * epoch.
1304 long epoch; in wwv_qrz() local
1311 * epoch. Accumulate all samples to determine the total noise in wwv_qrz()
1314 epoch = up->mphase - pdelay - SYNSIZ; in wwv_qrz()
1315 if (epoch < 0) in wwv_qrz()
1316 epoch += WWV_MIN; in wwv_qrz()
1319 sp->pos = epoch; in wwv_qrz()
1324 * At the end of the minute, determine the epoch of the minute in wwv_qrz()
1336 epoch = (sp->pos - sp->lastpos) % WWV_MIN; in wwv_qrz()
1341 if (labs(epoch) < AWND * MS) { in wwv_qrz()
1358 sp->synsnr, sp->pos % WWV_SEC, epoch); in wwv_qrz()
1374 * determines the second sync epoch position within the second and
1385 int epopos /* epoch max position */ in wwv_endpoc()
1390 static int epoch_mf[3]; /* epoch median filter */ in wwv_endpoc()
1391 static int tepoch; /* current second epoch */ in wwv_endpoc()
1392 static int xepoch; /* last second epoch */ in wwv_endpoc()
1393 static int zepoch; /* last run epoch */ in wwv_endpoc()
1398 static int mepoch; /* longest run end epoch */ in wwv_endpoc()
1432 * epoch. in wwv_endpoc()
1455 * If the epoch candidate is the same as the last one, increment in wwv_endpoc()
1456 * the run counter. If not, save the length, epoch and end in wwv_endpoc()
1458 * The epoch is considered valid if the run is at least SCMP in wwv_endpoc()
1460 * last epoch is not greater than the averaging interval. Thus, in wwv_endpoc()
1502 * interval the candidate epoch at the end of the longest run is in wwv_endpoc()
1504 * interval are different, so the candidate epoch is the current in wwv_endpoc()
1505 * epoch. The frequency update is computed from the candidate in wwv_endpoc()
1506 * epoch difference (125-us units) and time difference (seconds) in wwv_endpoc()
1595 * wwv_epoch - epoch scanner
1598 * scans the receiver second epoch to determine the signal amplitudes
1629 * and station mitigation. Also set the seconds epoch at 800 ms in wwv_epoch()
1631 * the epoch backwards. in wwv_epoch()
1642 * Use the signal amplitude at epoch 15 ms as the noise floor. in wwv_epoch()
1648 * epoch is not exact. in wwv_epoch()
1685 * adjust the codec gain. Note the epoch is buffered from the in wwv_epoch()
1687 * seconds synch is diddling the epoch. Then, determine the true in wwv_epoch()
2043 * loss, the minute sync epoch will be in the same second. This requires