USING THE SDK ON WINDOWS 2000/XP
PCI-AC51 User’s Guide
22
Pamux Utility Operations
The following utility functions are provided primarily for Visual Basic applications. These are not
Pamux-specific functions.
Bit Operations
Pack/Unpack Utility Operations
Function
Type
Function
Parameter
Type
Parameter
Description
void
PamuxUtilBitSetTo
long
* pData
These bit operations are useful in Visual
Basic applications to access individual bits
within an integer. The BitSetTo function either
sets or clears the specified bit based on the
value of bBitValue. Any non-zero value for
Data turns on the bit. The BitSet and BitClr
functions set and clear the specified bit. Bit
numbers start at zero for the least significant
bit (LSB).
The zero at the end of the parameter name
“BitNumber0” serves as a reminder of this
fact for anyone looking through the function
definitions in either the .BAS file or the .H
header files. PamuxUtilBitTest returns true if
bit number BitNumber0 in Data is set.
long
BitNumber0
long
bBitValue
void
PamuxUtilBitSet
long
* pData
long
BitNumber0
void
PamuxUtilBitClr
long
* pData
long
BitNumber0
long
PamuxUtilBitTest
long
Data
long
BitNumber0
* Note for Visual Basic users: * indicates a “by reference” argument.
Function
Type
Function
Parameter
Type
Parameter
Description
void
PamuxUtilBitPackArray2I
long
* DestInt
Converts an array of boolean (0
or not 0) values to a bit packed
integer.
long
SourceArray[]
long
Qty
void
PamuxUtilBitUnPackI2Array
long
DestArray[]
Converts a bit packed integer to
an array of boolean (1 or 0) val-
ues.
Qty indicates the number of bits
to be packed or unpacked.
long
SourceInt
long
Qty
* Note for Visual Basic users: * indicates a “by reference” argument.
Summary of Contents for PCI-AC51
Page 8: ...FOR HELP PCI AC51 User s Guide 4 ...
Page 30: ...SPECIAL PRECAUTIONS FOR THE SOFTWARE DEVELOPER PCI AC51 User s Guide 26 ...
Page 34: ...ERROR CODES FOR WINDOWS 2000 XP PCI AC51 User s Guide 30 ...
Page 38: ...LEDS PCI AC51 User s Guide 34 ...
Page 40: ...CONVERTING APPLICATIONS THAT USE INP AND OUTP PCI AC51 User s Guide 36 ...