Bb-electronics PCRTC User Manual Page 11

  • Download
  • Add to my manuals
  • Print
  • Page
    / 17
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 10
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.
Page view 10
1 2 ... 6 7 8 9 10 11 12 13 14 15 16 17

Comments to this Manuals

No comments