Intel LPCI-7200S manual Programming Guide, Naming Convention, Data Types, 38 C/C++ Libraries

Models: LPCI-7200S

1 71
Download 71 pages 46.71 Kb
Page 46
Image 46
5.2Programming Guide

5.2Programming Guide

5.2.1Naming Convention

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

In DOS:

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

All functions in the PCI-7200 driver are named with 7200 as {hardware_model}. But they can be used by PCI-7200, cPCI-7200 and LPCI-7200S.

In order to recognize the difference between DOS library and Windows 95 library, a capital "W" is put on the head of each function name of the Windows 95 DLL driver (e.g. W_7200_Initial()).

5.2.2 Data Types

Some data types are definded in Pci_7200.h (DOS) and Acl_pci.h (Windows 95). These data types are used by NuDAQ Cards’ library. We suggest using these data types. 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 single-precision

0 to 4294967295

 

floating point

 

F32

32-bit single-precision

-3.402823E38 to 3.402823E38

 

floating point

 

 

 

 

F64

64-bit double-precision

-1.797683134862315E308 to

 

floating point

1.797683134862315E309

Boolean

Boolean logic value

TRUE, FALSE

38 C/C++ Libraries

Page 46
Image 46
Intel LPCI-7200S manual Programming Guide, Naming Convention, Data Types, 38 C/C++ Libraries