B&B Electronics PCRTC manual StartRTCAPI, BatteryRTC

Models: PCRTC

1 17
Download 17 pages 43.85 Kb
Page 9
Image 9
Start_RTC_API

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.

Documentation Number PCRTC2095 Manual

7

B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350

PH (815) 433-5100 -- FAX (815) 433-5105

Page 9
Image 9
B&B Electronics PCRTC manual StartRTCAPI, BatteryRTC