FreeBSD/contrib/ntp/util/tg2.c
/*
 * Generate WWV/H 0 or 1 data pulse, with no tick, for 29th and 59th seconds
 */
Generate WWV/H 0 or 1 data pulse, with no tick, for 29th and 59th seconds
Generate WWV / H 0 or 1 data pulse with no tick for 29th and 59th seconds
void WWV_SecondNoTick(
	int	code,		
	int Rate		
	)
{
	peep(30, tone, OFF);		
	peep(code - 30, 100, LOW);	
	if  (Rate < 0)
		{
		peep( 990 - code, 100, OFF);
		TotalCyclesRemoved += 10;
		if  (Debug)
			printf ("\n* Shorter Second: ");
		}
	else
		{
		if  (Rate > 0)
			{
			peep(1010 - code, 100, OFF);
			TotalCyclesAdded += 10;
			if  (Debug)
				printf ("\n* Longer Second: ");
			}
		else
			peep(1000 - code, 100, OFF);
		}
}
void WWV_SecondNoTick ( int code , int Rate ) { peep ( 30 , tone , OFF ) ; peep ( code - 30 , 100 , LOW ) ; if ( Rate < 0 ) { peep ( 990 - code , 100 , OFF ) ; TotalCyclesRemoved += 10 ; if ( Debug ) printf ( " \n " ) ; } else { if ( Rate > 0 ) { peep ( 1010 - code , 100 , OFF ) ; TotalCyclesAdded += 10 ; if ( Debug ) printf ( " \n " ) ; } else peep ( 1000 - code , 100 , OFF ) ; } }
Generate WWV/H 0 or 1 data pulse, with no tick, for 29th and 59th seconds
Generate WWV / H 0 or 1 data pulse with no tick for 29th and 59th seconds
/* DATA0, DATA1, PI */ /* <0 -> do a short second, 0 -> normal second, >0 -> long second */ /*
	 * The WWV data pulse begins with 5 ms of 1000 Hz follwed by a
	 * guard time of 25 ms. The data pulse is 170, 570 or 770 ms at
	 * 100 Hz corresponding to 0, 1 or position indicator (PI),
	 * respectively. Note the 100-Hz data pulses are transmitted 6
	 * dB below the 1000-Hz sync pulses. Originally the data pulses
	 * were transmited 10 dB below the sync pulses, but the station
	 * engineers increased that to 6 dB because the Heath GC-1000
	 * WWV/H radio clock worked much better.
	 */ /* send seconds non-tick */ /* send data */ /* The quiet time is shortened or lengthened to get us back on time */