B&B Electronics PCRTC Clock User Manual


 
Documentation Number PCRTC2095 Manual 9
B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350
PH (815) 433-5100 -- FAX (815) 433-5105
Last_Power_Down_RTC
Purpose: Returns date and time of last power down within a
structure.
C: struct TimeSave_T {
unsigned int month;
unsigned int day;
unsigned int hour;
unsigned int minute;
unsigned int second;
};
int Last_Power_Down_RTC(TimeSave_T far *ts);
Pascal: TYPE TimeSave_T = RECORD
month: WORD;
day: WORD;
hour: WORD;
minute: WORD;
second: WORD;
END;
TYPE TimeSave_Ptr = ^TimeSave_T;
FUNCTION Last_Power_Down_RTC(timeSave:
TimeSave_Ptr): WORD;
BASIC: TYPE TimeSaveT
month AS INTEGER
day AS INTEGER
hour AS INTEGER
minute AS INTEGER
second AS INTEGER
END TYPE
FUNCTION LastPowerDownRTC% (BYVAL Offs AS
INTEGER, BYVAL Segm AS INTEGER)
Remarks: Last_Power_Down requires a far pointer to the
TimeSave_T structure to be past as the argument.
Returns: The TimeSave_T structure with the appropriate values.
Example: See below.