PROGRAMING WITH THE PAMUX DRIVER
Pamux User’s Guide
3-33
DIGITAL BANK OPERATIONS
The term “bank” refers to groups of eight digital I/O points. A 32-channel Pamux board with a B4 brain
board has four banks. It is faster to read a bank all at once rather than to read each point individually.
Note that channel 0 corresponds to the least significant bit. For example when reading a bank with
channels 0, 3, and 4 on and all other channels off, the returned value would be 19 hex (11001 binary, or
25 decimal).
PamuxDigBankConfig
P
ROTOTYPES
:
int PamuxDigBankConfig(int hAc28, int Bank, int OutputMask);
int PamuxDigBank16Config(int hAc28, int Bank, UINT OutputMask);
int PamuxDigBank32Config(int hAc28, int Bank, long OutputMask);
D
ESCRIPTION
:
Configures a bank of digital I/O points as either inputs or outputs. A “1” in the mask indicates an
output. Use
PamuxDigBankConfig
for configuring eight points,
PamuxDigBank16Config
for 16 points, or
PamuxDigBank32Config
for 32
points.
PamuxDigBankRead
P
ROTOTYPES
:
int PamuxDigBankRead(int hAc28, int Bank, int far* pData);
int PamuxDigBank16Read(int hAc28, int Bank, int far* pData);
int PamuxDigBank32Read(int hAc28, int Bank, long far* pData);
D
ESCRIPTION
:
Reads inputs and outputs and places the result in
pData.
Use
PamuxDigBankRead
for
reading eight points,
PamuxDigBank16Read
for 16 points, or
PamuxDigBank32Read
for 32 points.
Summary of Contents for PAMUX
Page 10: ...TABLE OF CONTENTS x Pamux User s Guide...
Page 14: ...TABLE OF CONTENTS xiv Pamux User s Guide...
Page 103: ...PROGRAMING WITH THE PAMUX DRIVER 3 42 Pamux User s Guide...
Page 121: ...PROGRAMING WITHOUT THE PAMUX DRIVER 4 18 Pamux User s Guide...
Page 125: ...TROUBLESHOOTING AND TIPS A 4 A 4 A 4 A 4 A 4 Pamux User s Guide...
Page 135: ...SPECIFICATIONS B 10 Pamux User s Guide...
Page 141: ...TEMPERATURE CONVERSIONS ROUTINES C 6 Pamux User s Guide...
Page 143: ...PRODUCT SUPPORT D 2 Pamux User s Guide...
Page 149: ...GLOSSARY E 6 Pamux User s Guide...