CP380
Function Reference
ID 19313, Rev. 0100
Page 5 - 3
®
PEP Modular Computers GmbH
5. Function Reference
5.1 Functional Overview of the 32 Bit Driver
The 32-bit driver for the boards of the CP380 family was developed for Windows NT 4.0
and consists of the following components:
•
Kernel driver (
ME9x_32.SYS
) for Windows NT, loaded automatically on power up.
•
API-DLL (
ME9x_32.DLL
) with the driver functions for the CP380 family.
•
Dialogue DLL (
MEDLG32.DLL
) with dialogue functions.
The installation program for the CP380 family registers every new board with the operat-
ing system. Upon every startup, the driver searches for a registered CompactPCI board
and checks that it physically exists. After the driver is successfully loaded, the board can
be accessed via the API functions.
The API functions allow convenient access to the hardware. Every function that
accesses a CP380 board requires an integer value for identification of the board. In the
following description of the functions this parameter is referred to as
iBoardNumber
.
5.2 Naming Conventions
These functions were written specifically for the CP380 board family. For Visual C and
Delphi (Pascal) every API function starts with an underscore “_“ (this is not so in Borland
C and BASIC). The function names were selected to be as descriptive as possible. Each
function name consists of a board type specific prefix and several elements which stand
for the corresponding sections (e. g. "DI" for "Digital In").
5.3 Definitions
All pre-defined constants and macros for Visual C++ will be found in the file
MEDEFS.H
,
for Delphi in the file
MEDEFS.PAS
and for Visual Basic in the file
MEDEFS.BAS
. By linking
the appropriate definition file into your project you can pass many parameters in the
form of predefined constants (e. g.
MEINPUT, AO_PLUS_10
). As an alternative, you can
pass the matching Hex value at any time.
_me94…
Function valid for board CP380-I
_me95…
Function valid for board CP380-O
_me96…
Function valid for board CP380-I/O
_me9x…
Function valid for the boards CP380-I, CP380-O,
CP380-I/O
Summary of Contents for CP380
Page 2: ... PEP Modular Computers GmbH This page was intentionally left blank ...
Page 12: ... PEP Modular Computers GmbH This page was intentionally left blank ...
Page 26: ... PEP Modular Computers GmbH This page was intentionally left blank ...
Page 28: ... PEP Modular Computers GmbH This page was intentionally left blank ...
Page 34: ... PEP Modular Computers GmbH This page was intentionally left blank ...
Page 38: ... PEP Modular Computers GmbH This page was intentionally left blank ...
Page 42: ... PEP Modular Computers GmbH This page was intentionally left blank ...
Page 44: ... PEP Modular Computers GmbH This page was intentionally left blank ...
Page 68: ... PEP Modular Computers GmbH This page was intentionally left blank ...