Units
Class Hierarchy
Classes, Interfaces and Objects
Types
Enumerations
Variables
Constants
Functions and Procedures
Identifiers

Class TkdFrameworkAssistant

Unit

kdframeworkassistant

Declaration

type TkdFrameworkAssistant = class(TObject)

Description

Complementary class TkdFrameworkAssistant brings the KylixDriver Application Library to a more pragmatic interface functionality especially for run-time purposes.

Methods

Overview

Publicconstructor Create (AuxDevicePath: String);
Publicfunction AutodetectLptIrq (LptBaseAddr: String): Integer;
Publicprocedure ConstructPciCardResources ( pPciConfig: pPciCfg ;pCard: TkdCustomCard );
Publicfunction EnumeratePciCards : Boolean;
Publicfunction PrintPciCardInfo(pPciConfig: pPciCfg): WideString;

Description

Publicconstructor Create (AuxDevicePath: String);

Constructor Create with aforementioned syntax should be called to create an instance of object. The only parameter passed is the path to the directory where the auxiliary device file of the GDD is located. Assistant object always operates through kdmodule1 file - auxiliary device file of the GDD. By default, this is /dev directory. Create establishes all necessary IOCTL codes to communicate with the GDD and performs additional initialization work.

Publicfunction AutodetectLptIrq (LptBaseAddr: String): Integer;

AutodetectLptIrq method automatically detects the IRQ of a PC parallel printer port whose base address is specified as the argument.

Publicprocedure ConstructPciCardResources ( pPciConfig: pPciCfg ;pCard: TkdCustomCard );

ConstructPciCardResources method constructs all resources on PCI hardware device specified by pCard argument on the basis of the information specified by configurational pPciConfig argument. The configuration involved is usually obtained via PciConfig or PciVidDidConfig property.

Publicfunction EnumeratePciCards : Boolean;

EnumeratePciCards method passes through all non-bridge PCI devices detected in system and fills an internal buffer with the configuration information about each of these devices. Use this method to refresh information about PCI for the moment.

Publicfunction PrintPciCardInfo(pPciConfig: pPciCfg): WideString;

PrintPciCardInfo method arranges the parts of general configuration information about non-bridge PCI device specified by the argument. Use this method to monitor the most important data about PCI requested by its configuration. The configuration involved is usually obtained via PciConfig or PciVidDidConfig property.

Properties

Overview

Publicproperty PciConfig[Index: Byte]: pPciCfg;
Publicproperty PciCount: Byte;
Publicproperty PciDid: Word;
Publicproperty PciVid: Word;
Publicproperty PciVidDidConfig[Index: Byte]: pPciCfg;
Publicproperty PciVidDidCount: Byte;

Description

Publicproperty PciConfig[Index: Byte]: pPciCfg;

PciConfig property is an accessor for obtaining the non-bridge PCI configuration by its 1-based index in an internal buffer previously filled with EnumeratePciCards method.

Publicproperty PciCount: Byte;

PciCount property is an accessor for obtaining the whole number of non-bridge PCI devices detected in system.

Publicproperty PciDid: Word;

PciDid property specifies the non-bridge PCI device identifier (DeviceId) on which team up with PciVid property it is required to obtain the information through PciVidDidCount property and PciVidDidConfig property.

Publicproperty PciVid: Word;

PciVid property specifies the non-bridge PCI device identifier (VendorId) on which team up with PciDid property it is required to obtain the information through PciVidDidCount property and PciVidDidConfig property.

Publicproperty PciVidDidConfig[Index: Byte]: pPciCfg;

PciVidDidConfig property is an accessor for obtaining the non-bridge PCI configuration of a device whose VendorId value is specified by PciVid property and DeviceId value is specified by PciDid property. Index parameter determines the 1-based index of this device in an internal buffer previously filled with EnumeratePciCards method in assumption that only cards with the same VendorId and DeviceId values were enumerated.

Publicproperty PciVidDidCount: Byte;

PciVidDidCount property is an accessor for obtaining the number of non-bridge PCI devices whose VendorId value is specified by PciVid property and DeviceId value is specified by PciDid property.