segment and offset addresses of the integer array where the results of the A/D conversion will be stored.
Returns: FALSE (zero) if the function fails, otherwise it returns TRUE
B232OPSDA_ReadDigital
Purpose: This function reads the states of all the digital I/O lines.
Syntax: C:
Pascal:
BASIC:
BOOL B232OPSDA_ReadDigital (WORD hComDev, BYTE modAddr, WORD* data);
function B232OPSDA_ReadDigital (hComDev : word; modAddr : byte; data : Pword);
FUNCTION B232OPSDAReadDigital (BYVAL hComDev AS INTEGER, BYVAL modAddr AS INTEGER, BYVAL wdataseg AS INTEGER, BYVAL wdataoff AS INTEGER)
Remarks: hComDev is the handle to a serial port where the module is connected. This is the value returned by initComPort. modAddr is the module address. This is always 30H (48 decimal) for the 232OSPSDA module. data is the address of the
For QuickBASIC users: wdataseg and wdataoff are the segment and offset addresses of the integer the digital I/O values will be stored.
Returns: FALSE (zero) if the function fails, otherwise it returns TRUE
20Documentation Number 232OPSDA1397 Manual
B&B Electronics
PH (815)