B&B Electronics ATRWDT, ATXWDT manual Command Reference, BBPCWDTStartup, BBPCWDTShutdown

Page 17

Command Reference

BBPCWDT_Startup

Purpose:

Begin communications with the watchdog timer.

C Syntax:

HANDLE BBPCWDT_Startup(void);

BASIC

Function BBPCWDTStartup () As Long

Syntax:

 

Remarks:

This function reads the watchdog timer’s I/O port

 

value that the setup program stored in the registry

 

for Windows 95 / NT or in the file, PCWDT.INI, for

 

Windows 3.11. The Windows NT version of this

 

function establishes communications with the

 

PCWDT device driver. The Windows 3.11 / 95

 

version of this function just returns a handle that is

 

used with the other functions in this section to

 

communicate with the watchdog timer.

Return Value:

On error, INVALID_HANDLE_VALUE is returned

 

otherwise a handle to the watchdog timer is

 

returned.

BBPCWDT_Shutdown

Purpose:

Terminate communications with the watchdog

 

timer.

C Syntax:

BOOL BBPCWDT_Shutdown(HANDLE hDev);

BASIC

Function BBPCWDTShutdown (ByVal hDev

Syntax:

As Long) As Byte

Remarks:

hDev is the handle to the watchdog timer that was

 

returned by BBPCWDT_Startup. The Windows NT

 

version of this function closes the communications

 

to the PCWDT device driver.

Return Value:

TRUE (non-zero) if successful, otherwise FALSE

 

(zero).

16

Documentation Number ATxWDT-1303

B&B Electronics Mfg Co – 707 Dayton Rd - PO Box 1040 - Ottawa IL 61350 - Ph 815-433-5100 - Fax 815-433-5104 B&B Electronics Ltd – Westlink Comm. Pk – Oranmore, Galway, Ireland – Ph +353 91-792444 – Fax +353 91-792445

Image 17
Contents PC Watchdog Timer Card CE Table of Contents General Information Introduction FeaturesSpecifications Address Switch Setup Setup and Installation InspectionATRWDT/ATXWDT PCB Silk Screen Weight Hex Weight Address Switches S1 Position BusConnection Decimal 200Installation Relay SetupConnecting the Atrwdt Motherboard Reset Option Installing the Software Connecting the ATX Reset Option for the AtxwdtDocumentation Number ATxWDT-1303 Operation Communicating with the WDT Registers PinoutsOutput Schematic Windows NT and Windows SoftwareChanging the I/O Port Address WindowsDisk Caching Existing DOS ProgramsParameters IoPortAddress=0x0200 IoPortCount=0x0001 BBPCWDTShutdown Command ReferenceBBPCWDTStartup Value hex Timeout BBPCWDTResetBool BBPCWDTReadRegisterHANDLE hDev BBPCWDTReadRegisterBYTE* value As Long, value As Byte As ByteSdlc Appendix a Hardware I/O MapsParallel printer on monochrome adapter Map of AT Class MachinesDo While INKEY$ = Appendix B QuickBASIC ExampleDeclaration of Conformity Appendix C Declaration of Conformity Statement