Structures and enumerations for the driver api, Ldvdriverinfo structure, Ee structures and enumerations for the driver – Echelon OpenLDV User Manual

Page 50: Ee structures and enumerations for the driver api, Ee structures and enumerations for the, Driver api, Structures and, Enumerations for the driver api

Advertising
background image

42

Using the OpenLDV API

Device Capability

Numeric

Value

Description

LDV_DEVCAP_CURRENTLY_AVAILABLE 0x40000000 The device is currently not in

use by any process on this

computer. If it is not is use by

another computer, the device

is available for use.

Structures and Enumerations for the Driver API

This section describes the structure and enumerations defined for the OpenLDV

driver API.

LDVDriverInfo Structure

The driver API functions refer to the LDVDriverInfo structured data type:

typedef struct LDVDriverInfo

{

DWORD size;

LDVDriverID id;

LDVDriverType type;

LPCSTR name;

LPCSTR desc;

} LDVDriverInfo;

/* (read-only) */

typedef const LDVDriverInfo* LDVDriverInfoPtr;

The LDVDriverInfo structure contains information that describes a specific

L

ON

W

ORKS

interface device driver (identified by its driver ID). Table 26

describes the LDVDriverInfo structure’s fields.

Table 26. LDVDriverInfo Structure

Field

Description

size

The size (in bytes) of this structure. This field must be set

before calling any of the set functions that pass this structure as

a parameter.

id

The L

ON

W

ORKS

interface device driver ID. See LdvDriverID

Enumeration on page 43.

type

The device driver type. See LdvDriverType Enumeration on

page 44.

name

A string that contains the name of the device driver.

desc

A string that contains the description of the device driver, if

available.

Advertising