2 programming guide – ADLINK PCI-7432 User Manual

Page 36

Advertising
background image

28

C/C++ Libraries

5.2 Programming Guide

5.2.1

Naming Convention

The functions of the NuDAQ PCI or NuIPC CompactPCI card software
drivers uses full-names to represent the functions' real meaning. The naming
convention rules are:

In DOS Environment :

_{hardware_model}_{action_name}. e.g. _7432_Initial().

All functions in the PCI-7432 driver have 7432 as {hardware_model} and can
be used by both PCI-7432 and cPCI-7432. All functions in the PCI-7433
driver have 7433 as {hardware_model}. And again can be used by PCI-7433,
cPCI-7433 and cPCI-7433R. All functions in the PCI-7434 driver have 7434
as {hardware_model}. And can be used by PCI-7434, cPCI-7434 and cPCI-
7434R.

In order to recognize the difference between the DOS library and Windows
95 library, a capital "W" is placed at the start of each function name for
Windows 95 DLL drivers. e.g. W_7432_Initial().

5.2.2

Data Types

We have defined some data types in the Pci_743X.h (DOS) and Acl_pci.h
(Windows 95) header files. These data types are used by the NuDAQ Cards’
library. We recommend you use these data types in your application
programs. The following table shows the data type names and their range.

Type

Name

Description

Range

U8

8-bit ASCII character

0 to 255

I16

16-bit signed integer

-32768 to 32767

U16

16-bit unsigned integer

0 to 65535

I32

32-bit signed integer

-2147483648 to 2147483647

U32

32-bit ingle-precision floating-point 0 to 4294967295

F32

32-bit ingle-precision floating-point -3.402823E38 to 3.402823E38

F64

64-bit double-precision floating-point

-1.797683134862315E308 to
1.797683134862315E309

Boolean Boolean logic value

TRUE, FALSE

Table 8.

Function Data Types

Advertising
This manual is related to the following products: