Pamux User’s Guide 95
DIGITAL “FAST” OPERATIONS
For high-speed applications, these APIs can be used to bypass some error-checking and port
calculations. The configure functions should be used to configure outputs.
PamuxDigIoPortGet
PROTOTYPE:
int PamuxDigIoPortGet(int hAc28, int far* pBank, int far* pPoint, int far* pIoPort);
DESCRIPTION:
Provides the I/O port needed given the AC28 handle, the bank number, and the point number.
PamuxDigBankReadFast
PROTOTYPE:
int PamuxDigBankReadFast(int hAc28, int IoPort);
DESCRIPTION:
Reads one byte (eight bits) from the specified I/O port. Does nothing more than call the function
_inp(), and hence may be used in Visual Basic as a general-purpose INP function. The return
value is the value read rather than a Pamux error code.
PamuxDigBankWriteFast
PROTOTYPE:
void PamuxDigBankWriteFast(int hAc28, int IoPort, int Data);
DESCRIPTION:
Writes one byte (eight bits) to the specified port. Does nothing more than call the function
_out(), and hence may be used in Visual Basic as a general-purpose OUT function.
PROGRAMING WITH THE PAMUX DRIVER