Documentation Number PCRTC2095 Manual 7
B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350
PH (815) 433-5100 -- FAX (815) 433-5105
Start_RTC_API
Purpose: Initializes API, must be the first PCRTC function called
in the program.
C: int Start_RTC_API(unsigned int address);
Pascal: FUNCTION Start_RTC_API(address: WORD): WORD;
BASIC: FUNCTION StartRTCAPI% (BYVAL address AS
INTEGER)
Remarks: Start_RTC_API takes the address at which the PCRTC
is installed at. The device driver must be installed.
Returns: 0 = device driver is not installed.
non zero = address of PCRTC.
Example: See below.
Battery_RTC
Purpose: Check battery status of PCRTC
C: int Battery_RTC(void);
Pascal: FUNCTION Battery_RTC: WORD;
BASIC: FUNCTION BatteryRTC%
Returns: 1 if battery is good
0 if battery is low
Example: See below.