/*
* /src/NTP/ntp4-dev/libparse/clk_rcc8000.c,v 4.9 2004/11/14 15:29:41 kardel RELEASE_20050508_A
*
* clk_rcc8000.c,v 4.9 2004/11/14 15:29:41 kardel RELEASE_20050508_A
*
* Radiocode Clocks Ltd RCC 8000 Intelligent Off-Air Master Clock support
*
* Created by R.E.Broughton from clk_trimtaip.c
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
*/
/* Type II Serial Output format
*
* 0000000000111111111122222222223 / char
* 0123456789012345678901234567890 \ posn
* HH:MM:SS.XYZ DD/MM/YY DDD W Prn Actual
* 33 44 55 666 00 11 22 7 Parse
* : : . / / rn Check
* "15:50:36.534 30/09/94 273 5 A\x0d\x0a"
*
* DDD - Day of year number
* W - Day of week number (Sunday is 0)
* P is the Status. See comment below for details.
*/
#define RCCP buffer[28]
/*
* buffer[28] is the ASCII representation of a hex character ( 0 through F )
* The four bits correspond to:
* 8 - Valid Time
* 4 - Reject Code
* 2 - British Summer Time (receiver set to emit GMT all year.)
* 1 - Leap year
*/
#define RCC8000_VALID 0x8
#define RCC8000_REJECT 0x4
#define RCC8000_BST 0x2
#define RCC8000_LEAPY 0x1