Bb-electronics PCRTC User Manual Page 10

  • Download
  • Add to my manuals
  • Print
  • Page
    / 17
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 9
8 Documentation Number PCRTC2095 Manual
B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350
PH (815) 433-5100 -- FAX (815) 433-5105
Get_RTC_Time
Purpose : Returns the RTC time within a structure.
C: struct GetTime_T {
unsigned int hours;
unsigned int min;
unsigned int seconds;
unsigned int h_seconds;
};
int Get_RTC_Time(GetTime_T far *gt);
Pascal : TYPE GetTime_T = RECORD
hours: WORD;
min: WORD;
seconds: WORD;
h_seconds: WORD;
END;
TYPE GetTime_Ptr = ^GetTime_T;
FUNCTION Get_RTC_Time(time: GetTime_Ptr):
WORD;
BASIC: TYPE GetTimeT
hours AS INTEGER
min AS INTEGER
seconds AS INTEGER
hseconds AS INTEGER
END TYPE
FUNCTION GetRTCTime%(BYVAL Offs AS INTEGER,
BYVAL Segm AS INTEGER)
Remarks: Get_RTC_Time requires a far pointer to the GetTime_T
structure to be past as the argument.
Returns: The GetTime_T structure with the appropriate values.
Example: See below.
Page view 9
1 2 ... 5 6 7 8 9 10 11 12 13 14 15 16 17

Comments to this Manuals

No comments