DEFINITION MODULE PCPItime;

(* 

a MODULE for reading PCPI w/DS1216E from Turbo Modula-2

The PROCEDUREs in this MODULE are comptible with those in DStime,
the version for reading DateStamper except that here we can read
hundredth's of a second, unlike DS which doesn't support that resolution

Revison 1.0,  Jim Lill,  8/29/87 

*)

PROCEDURE CLOCK(): BOOLEAN;
  (* does actual read so must be done before any of the following
     functions will return current data. TRUE if time has changed 
     since last read.                                             *)

PROCEDURE YEAR() : CARDINAL;
  (* 00-99 year as DS does not handle century *)

PROCEDURE MONTH() : CARDINAL;
  (* 1-12 month *)

PROCEDURE DAY() : CARDINAL;
  (* 1-31 day *)

PROCEDURE HOUR() : CARDINAL;
  (* 0-24 hour *)

PROCEDURE MIN() : CARDINAL;
  (* 0-60 minute *)

PROCEDURE SEC() : CARDINAL;
  (* 0-60 second *)
 
PROCEDURE HSEC(): CARDINAL;
  (* 0-100 hundredth's of a second*)

END PCPItime.