User`s guide

C/C++ Library 51
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.
_9111_Initial()
.
All functions in PCI-9111 driver are with 9111 as {hardware_model}. But they
can be used by PCI-9111DG, PCI-9111HR.
In order to recognize the difference between a DOS library and a Windows 95
library, a capital "
W
" placed at the start of each function name for Windows 95
DLL drivers, e.g.
W_9111_Initial()
.
5.2.2 Data Types
We have defined some data type in Pci_9111.h (DOS) and Acl_pci.h
(Windows 95). These data types are used by NuDAQ Cards’ library. We
suggest 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-bits ASCII character 0 to 255
I16 16-bits signed integer -32768 to 32767
U16
16-bits unsigned
integer
0 to 65535
I32 32-bits signed integer -2147483648 to 2147483647
U32
32-bits unsigned
integer
0 to 4294967295
F32
32-bits single-
precision
floating-point
-3.402823E38 to 3.402823E38
F64
64-bits
double-precision
floating-point
-1.797683134862315E308 to
1.797683134862315E309
Boolean Boolean logic value TRUE, FALSE
Table 5: Data types and corresponding range.