Command reference, 9l. command reference, Status structure – Measurement Computing Personal488 rev.3.0 For DOS & Windows 3.Xi User Manual
Page 206: Miscellaneous constants, Completion code bit masks

II. SOFTWARE GUIDES - 9. Driver488/SUB
9L. Command Reference
Personal488 User’s Manual, Rev. 3.0
II-191
Status Structure
Structure used by
Status
:
typedef struct {
/* These flags are TRUE (non-zero) if: */
bool SC;
/* we are System Controller */
bool CA;
/* we are Active Controller */
char Primaddr;
/* our primary bus address */
char Secaddr;
/* our secondary bus address */
bool SRQ;
/* SRQ is active (CA) or rsv is active (-CA) */
bool addrChange;
/* we detected an address status change */
bool talker;
/* we are an active talker */
bool listener;
/* we are an active listener */
bool triggered;
/* we have been triggered */
bool cleared;
/* we have been cleared */
bool transfer;
/* we have a transfer in progress */
bool byteIn;
/* we have an input byte to read */
bool byteOut;
/* we may be able to output a byte */
} IeeeStatusT;
typedef IeeeStatusT*IeeeStatusPT;
Miscellaneous Constants
The following constants are defined and are required as parameters in several functions:
IN
OUT
ON
OFF
FILL_OFF
FILL_ERROR
9L. Command Reference
For Driver488/SUB, W31, W95, & WNT
To obtain a detailed description of the command references for Driver488/SUB and Driver488/W31,
turn to Section III in this manual entitled “Command References.” The commands for Driver488/W95
and Driver488/WNT are provided as guides, pending current software revisions. Refer to your
operating system header file for the latest available information specific to your application. The
commands are presented in alphabetical order for ease of use.
Completion Code Bit Masks
Structure used by all the
Enter
and
Output
functions:
typedef enum {
ccCount = 0x0001
/* specified number of characters transferred */
ccBuffer = 0x0002
/* buffer count exhausted */
ccTerm = 0x0004
/* terminator character(s) detected */
ccEnd = 0x0008
/* End signal (EOI) detected */
ccChange = 0x0010
/* unexpected change of I/O signals */
ccStop = 0x0020
/* transfer terminated by program cmd */
ccDone = 0x4000
/* transfer has terminated */
ccError = 0x8000
/* details in error code field */
} CompCodeT;
typedef CompCodeT far *CompCodePT;