home *** CD-ROM | disk | FTP | other *** search
- /*---------------------------------------------------------------------------*/
- /* Distributed by VXIplug&play Systems Alliance */
- /* */
- /* Do not modify the contents of this file. */
- /*---------------------------------------------------------------------------*/
- /* */
- /* Title : VISA.H */
- /* Date : 01-01-96 */
- /* Purpose : Include file for the VISA Library 1.0 specification */
- /* */
- /*---------------------------------------------------------------------------*/
-
- #ifndef __VISA_HEADER__
- #define __VISA_HEADER__
-
- #include <stdarg.h>
- #include "visatype.h"
-
- #define VI_SPEC_VERSION (0x00100000L)
-
- #if defined(__cplusplus) || defined(__cplusplus__)
- extern "C" {
- #endif
-
- #if defined(_CVI_)
- #pragma EnableLibraryRuntimeChecking
- #endif
-
- /*- VISA Types --------------------------------------------------------------*/
-
- typedef ViObject ViEvent;
- typedef ViEvent _VI_PTR ViPEvent;
- typedef ViObject ViFindList;
- typedef ViFindList _VI_PTR ViPFindList;
-
- typedef ViUInt32 ViEventType;
- typedef ViEventType _VI_PTR ViPEventType;
- typedef ViUInt32 ViAttrState;
- typedef void _VI_PTR ViPAttrState;
-
- typedef ViString ViKeyId;
- typedef ViPString ViPKeyId;
- typedef ViUInt32 ViJobId;
- typedef ViJobId _VI_PTR ViPJobId;
- typedef ViUInt32 ViAccessMode;
- typedef ViUInt32 ViBusAddress;
- typedef ViBusAddress _VI_PTR ViPBusAddress;
- typedef ViUInt32 ViBusSize;
- typedef ViUInt32 ViAttr;
- typedef ViUInt32 ViEventFilter;
-
- typedef va_list ViVAList;
-
- typedef ViStatus (_VI_FUNCH _VI_PTR ViHndlr)
- (ViSession vi, ViEventType eventType, ViEvent event, ViAddr userHandle);
-
- /*- Resource Manager Functions and Operations -------------------------------*/
-
- ViStatus _VI_FUNC viOpenDefaultRM (ViPSession vi);
- #define viGetDefaultRM(vi) viOpenDefaultRM(vi)
-
- ViStatus _VI_FUNC viFindRsrc (ViSession sesn, ViString expr, ViPFindList vi,
- ViPUInt32 retCnt, ViPRsrc desc);
- ViStatus _VI_FUNC viFindNext (ViFindList vi, ViPRsrc desc);
-
- ViStatus _VI_FUNC viOpen (ViSession sesn, ViRsrc name, ViAccessMode mode,
- ViUInt32 timeout, ViPSession vi);
-
- /*- Resource Template Operations --------------------------------------------*/
-
- ViStatus _VI_FUNC viClose (ViObject vi);
- ViStatus _VI_FUNC viSetAttribute (ViObject vi, ViAttr attrName, ViAttrState attrValue);
- ViStatus _VI_FUNC viGetAttribute (ViObject vi, ViAttr attrName, ViPAttrState attrValue);
- ViStatus _VI_FUNC viStatusDesc (ViObject vi, ViStatus status, ViPString desc);
- ViStatus _VI_FUNC viTerminate (ViObject vi, ViUInt16 degree, ViJobId jobId);
-
- ViStatus _VI_FUNC viLock (ViSession vi, ViAccessMode lockType, ViUInt32 timeout,
- ViKeyId requestedKey, ViPKeyId accessKey);
- ViStatus _VI_FUNC viUnlock (ViSession vi);
- ViStatus _VI_FUNC viEnableEvent (ViSession vi, ViEventType eventType, ViUInt16 mechanism,
- ViEventFilter context);
- ViStatus _VI_FUNC viDisableEvent (ViSession vi, ViEventType eventType, ViUInt16 mechanism);
- ViStatus _VI_FUNC viDiscardEvents (ViSession vi, ViEventType eventType, ViUInt16 mechanism);
- ViStatus _VI_FUNC viWaitOnEvent (ViSession vi, ViEventType inEventType, ViUInt32 timeout,
- ViPEventType outEventType, ViPEvent outContext);
- ViStatus _VI_FUNC viInstallHandler(ViSession vi, ViEventType eventType, ViHndlr handler,
- ViAddr userHandle);
- ViStatus _VI_FUNC viUninstallHandler(ViSession vi, ViEventType eventType, ViHndlr handler,
- ViAddr userHandle);
-
- /*- Basic I/O Operations ----------------------------------------------------*/
-
- ViStatus _VI_FUNC viRead (ViSession vi, ViPBuf buf, ViUInt32 cnt, ViPUInt32 retCnt);
- ViStatus _VI_FUNC viReadAsync (ViSession vi, ViPBuf buf, ViUInt32 cnt, ViPJobId jobId);
- ViStatus _VI_FUNC viWrite (ViSession vi, ViBuf buf, ViUInt32 cnt, ViPUInt32 retCnt);
- ViStatus _VI_FUNC viWriteAsync (ViSession vi, ViBuf buf, ViUInt32 cnt, ViPJobId jobId);
- ViStatus _VI_FUNC viAssertTrigger (ViSession vi, ViUInt16 protocol);
- ViStatus _VI_FUNC viReadSTB (ViSession vi, ViPUInt16 status);
- ViStatus _VI_FUNC viClear (ViSession vi);
-
- /*- Formatted I/O Operations ------------------------------------------------*/
-
- ViStatus _VI_FUNC viSetBuf (ViSession vi, ViUInt16 mask, ViUInt32 size);
- ViStatus _VI_FUNC viFlush (ViSession vi, ViUInt16 mask);
- ViStatus _VI_FUNCC viPrintf (ViSession vi, ViString writeFmt, ...);
- ViStatus _VI_FUNC viVPrintf (ViSession vi, ViString writeFmt, ViVAList params);
- ViStatus _VI_FUNCC viScanf (ViSession vi, ViString readFmt, ...);
- ViStatus _VI_FUNC viVScanf (ViSession vi, ViString readFmt, ViVAList params);
- ViStatus _VI_FUNCC viQueryf (ViSession vi, ViString writeFmt, ViString readFmt, ...);
- ViStatus _VI_FUNC viVQueryf (ViSession vi, ViString writeFmt, ViString readFmt,
- ViVAList params);
-
- /*- Memory I/O Operations ---------------------------------------------------*/
-
- ViStatus _VI_FUNC viIn8 (ViSession vi, ViUInt16 space,
- ViBusAddress offset, ViPUInt8 val8);
- ViStatus _VI_FUNC viOut8 (ViSession vi, ViUInt16 space,
- ViBusAddress offset, ViUInt8 val8);
- ViStatus _VI_FUNC viIn16 (ViSession vi, ViUInt16 space,
- ViBusAddress offset, ViPUInt16 val16);
- ViStatus _VI_FUNC viOut16 (ViSession vi, ViUInt16 space,
- ViBusAddress offset, ViUInt16 val16);
- ViStatus _VI_FUNC viIn32 (ViSession vi, ViUInt16 space,
- ViBusAddress offset, ViPUInt32 val32);
- ViStatus _VI_FUNC viOut32 (ViSession vi, ViUInt16 space,
- ViBusAddress offset, ViUInt32 val32);
-
- ViStatus _VI_FUNC viMoveIn8 (ViSession vi, ViUInt16 space, ViBusAddress offset,
- ViBusSize length, ViAUInt8 buf8);
- ViStatus _VI_FUNC viMoveOut8 (ViSession vi, ViUInt16 space, ViBusAddress offset,
- ViBusSize length, ViAUInt8 buf8);
- ViStatus _VI_FUNC viMoveIn16 (ViSession vi, ViUInt16 space, ViBusAddress offset,
- ViBusSize length, ViAUInt16 buf16);
- ViStatus _VI_FUNC viMoveOut16 (ViSession vi, ViUInt16 space, ViBusAddress offset,
- ViBusSize length, ViAUInt16 buf16);
- ViStatus _VI_FUNC viMoveIn32 (ViSession vi, ViUInt16 space, ViBusAddress offset,
- ViBusSize length, ViAUInt32 buf32);
- ViStatus _VI_FUNC viMoveOut32 (ViSession vi, ViUInt16 space, ViBusAddress offset,
- ViBusSize length, ViAUInt32 buf32);
-
- ViStatus _VI_FUNC viMapAddress (ViSession vi, ViUInt16 mapSpace, ViBusAddress mapOffset,
- ViBusSize mapSize, ViBoolean access,
- ViAddr suggested, ViPAddr address);
- ViStatus _VI_FUNC viUnmapAddress (ViSession vi);
-
- void _VI_FUNC viPeek8 (ViSession vi, ViAddr address, ViPUInt8 val8);
- void _VI_FUNC viPoke8 (ViSession vi, ViAddr address, ViUInt8 val8);
- void _VI_FUNC viPeek16 (ViSession vi, ViAddr address, ViPUInt16 val16);
- void _VI_FUNC viPoke16 (ViSession vi, ViAddr address, ViUInt16 val16);
- void _VI_FUNC viPeek32 (ViSession vi, ViAddr address, ViPUInt32 val32);
- void _VI_FUNC viPoke32 (ViSession vi, ViAddr address, ViUInt32 val32);
-
- /*- Shared Memory Operations ------------------------------------------------*/
-
- ViStatus _VI_FUNC viMemAlloc (ViSession vi, ViBusSize size, ViPBusAddress offset);
- ViStatus _VI_FUNC viMemFree (ViSession vi, ViBusAddress offset);
-
- /*- Attributes --------------------------------------------------------------*/
-
- #define VI_ATTR_RSRC_NAME (0xBFFF0002L)
- #define VI_ATTR_RSRC_IMPL_VERSION (0x3FFF0003L)
- #define VI_ATTR_RSRC_LOCK_STATE (0x3FFF0004L)
- #define VI_ATTR_MAX_QUEUE_LENGTH (0x3FFF0005L)
- #define VI_ATTR_USER_DATA (0x3FFF0007L)
- #define VI_ATTR_FDC_CHNL (0x3FFF000DL)
- #define VI_ATTR_FDC_MODE (0x3FFF000FL)
- #define VI_ATTR_FDC_GEN_SIGNAL_EN (0x3FFF0011L)
- #define VI_ATTR_FDC_USE_PAIR (0x3FFF0013L)
- #define VI_ATTR_SEND_END_EN (0x3FFF0016L)
- #define VI_ATTR_TERMCHAR (0x3FFF0018L)
- #define VI_ATTR_TMO_VALUE (0x3FFF001AL)
- #define VI_ATTR_IO_PROT (0x3FFF001CL)
- #define VI_ATTR_ASRL_BAUD (0x3FFF0021L)
- #define VI_ATTR_ASRL_DATA_BITS (0x3FFF0022L)
- #define VI_ATTR_ASRL_PARITY (0x3FFF0023L)
- #define VI_ATTR_ASRL_STOP_BITS (0x3FFF0024L)
- #define VI_ATTR_ASRL_FLOW_CNTRL (0x3FFF0025L)
- #define VI_ATTR_RD_BUF_OPER_MODE (0x3FFF002AL)
- #define VI_ATTR_WR_BUF_OPER_MODE (0x3FFF002DL)
- #define VI_ATTR_SUPPRESS_END_EN (0x3FFF0036L)
- #define VI_ATTR_TERMCHAR_EN (0x3FFF0038L)
- #define VI_ATTR_SRC_INCREMENT (0x3FFF0040L)
- #define VI_ATTR_DEST_INCREMENT (0x3FFF0041L)
- #define VI_ATTR_CMDR_LA (0x3FFF006BL)
- #define VI_ATTR_MAINFRAME_LA (0x3FFF0070L)
- #define VI_ATTR_WIN_BASE_ADDR (0x3FFF0098L)
- #define VI_ATTR_WIN_SIZE (0x3FFF009AL)
- #define VI_ATTR_ASRL_AVAIL_NUM (0x3FFF00ACL)
- #define VI_ATTR_MEM_BASE (0x3FFF00ADL)
- #define VI_ATTR_ASRL_END_IN (0x3FFF00B3L)
- #define VI_ATTR_ASRL_END_OUT (0x3FFF00B4L)
- #define VI_ATTR_WIN_ACCESS (0x3FFF00C3L)
- #define VI_ATTR_RM_SESSION (0x3FFF00C4L)
- #define VI_ATTR_VXI_LA (0x3FFF00D5L)
- #define VI_ATTR_MANF_ID (0x3FFF00D9L)
- #define VI_ATTR_MEM_SIZE (0x3FFF00DDL)
- #define VI_ATTR_MEM_SPACE (0x3FFF00DEL)
- #define VI_ATTR_MODEL_CODE (0x3FFF00DFL)
- #define VI_ATTR_SLOT (0x3FFF00E8L)
- #define VI_ATTR_IMMEDIATE_SERV (0x3FFF0100L)
- #define VI_ATTR_INTF_PARENT_NUM (0x3FFF0101L)
- #define VI_ATTR_RSRC_SPEC_VERSION (0x3FFF0170L)
- #define VI_ATTR_INTF_TYPE (0x3FFF0171L)
- #define VI_ATTR_GPIB_PRIMARY_ADDR (0x3FFF0172L)
- #define VI_ATTR_GPIB_SECONDARY_ADDR (0x3FFF0173L)
- #define VI_ATTR_RSRC_MANF_NAME (0xBFFF0174L)
- #define VI_ATTR_RSRC_MANF_ID (0x3FFF0175L)
- #define VI_ATTR_INTF_NUM (0x3FFF0176L)
- #define VI_ATTR_TRIG_ID (0x3FFF0177L)
- #define VI_ATTR_JOB_ID (0x3FFF4006L)
- #define VI_ATTR_EVENT_TYPE (0x3FFF4010L)
- #define VI_ATTR_SIGP_STATUS_ID (0x3FFF4011L)
- #define VI_ATTR_RECV_TRIG_ID (0x3FFF4012L)
- #define VI_ATTR_STATUS (0x3FFF4025L)
- #define VI_ATTR_RET_COUNT (0x3FFF4026L)
- #define VI_ATTR_BUFFER (0x3FFF4027L)
-
- /*- Event Types -------------------------------------------------------------*/
-
- #define VI_EVENT_IO_COMPLETION (0x3FFF2009L)
- #define VI_EVENT_TRIG (0xBFFF200AL)
- #define VI_EVENT_SERVICE_REQ (0x3FFF200BL)
- #define VI_EVENT_VXI_SIGP (0x3FFF2020L)
-
- #define VI_ALL_ENABLED_EVENTS (0x3FFF7FFFL)
-
- /*- Completion and Error Codes ----------------------------------------------*/
-
- #define VI_SUCCESS_EVENT_EN (0x3FFF0002L) /* 3FFF0002, 1073676290 */
- #define VI_SUCCESS_EVENT_DIS (0x3FFF0003L) /* 3FFF0003, 1073676291 */
- #define VI_SUCCESS_QUEUE_EMPTY (0x3FFF0004L) /* 3FFF0004, 1073676292 */
- #define VI_SUCCESS_TERM_CHAR (0x3FFF0005L) /* 3FFF0005, 1073676293 */
- #define VI_SUCCESS_MAX_CNT (0x3FFF0006L) /* 3FFF0006, 1073676294 */
- #define VI_SUCCESS_QUEUE_NEMPTY (0x3FFF0080L) /* 3FFF0080, 1073676416 */
- #define VI_SUCCESS_NESTED_SHARED (0x3FFF0099L) /* 3FFF0099, 1073676441 */
- #define VI_SUCCESS_NESTED_EXCLUSIVE (0x3FFF009AL) /* 3FFF009A, 1073676442 */
- #define VI_SUCCESS_SYNC (0x3FFF009BL) /* 3FFF009B, 1073676443 */
- #define VI_WARN_NSUP_ATTR_STATE (0x3FFF0084L) /* 3FFF0084, 1073676420 */
- #define VI_WARN_UNKNOWN_STATUS (0x3FFF0085L) /* 3FFF0085, 1073676421 */
- #define VI_WARN_NSUP_BUF (0x3FFF0088L) /* 3FFF0088, 1073676424 */
-
- #define VI_ERROR_SYSTEM_ERROR (_VI_ERROR+0x3FFF0000L) /* BFFF0000, -1073807360 */
- #define VI_ERROR_INV_OBJECT (_VI_ERROR+0x3FFF000EL) /* BFFF000E, -1073807346 */
- #define VI_ERROR_RSRC_LOCKED (_VI_ERROR+0x3FFF000FL) /* BFFF000F, -1073807345 */
- #define VI_ERROR_INV_EXPR (_VI_ERROR+0x3FFF0010L) /* BFFF0010, -1073807344 */
- #define VI_ERROR_RSRC_NFOUND (_VI_ERROR+0x3FFF0011L) /* BFFF0011, -1073807343 */
- #define VI_ERROR_INV_RSRC_NAME (_VI_ERROR+0x3FFF0012L) /* BFFF0012, -1073807342 */
- #define VI_ERROR_INV_ACC_MODE (_VI_ERROR+0x3FFF0013L) /* BFFF0013, -1073807341 */
- #define VI_ERROR_TMO (_VI_ERROR+0x3FFF0015L) /* BFFF0015, -1073807339 */
- #define VI_ERROR_CLOSING_FAILED (_VI_ERROR+0x3FFF0016L) /* BFFF0016, -1073807338 */
- #define VI_ERROR_INV_DEGREE (_VI_ERROR+0x3FFF001BL) /* BFFF001B, -1073807333 */
- #define VI_ERROR_INV_JOB_ID (_VI_ERROR+0x3FFF001CL) /* BFFF001C, -1073807332 */
- #define VI_ERROR_NSUP_ATTR (_VI_ERROR+0x3FFF001DL) /* BFFF001D, -1073807331 */
- #define VI_ERROR_NSUP_ATTR_STATE (_VI_ERROR+0x3FFF001EL) /* BFFF001E, -1073807330 */
- #define VI_ERROR_ATTR_READONLY (_VI_ERROR+0x3FFF001FL) /* BFFF001F, -1073807329 */
- #define VI_ERROR_INV_LOCK_TYPE (_VI_ERROR+0x3FFF0020L) /* BFFF0020, -1073807328 */
- #define VI_ERROR_INV_ACCESS_KEY (_VI_ERROR+0x3FFF0021L) /* BFFF0021, -1073807327 */
- #define VI_ERROR_INV_EVENT (_VI_ERROR+0x3FFF0026L) /* BFFF0026, -1073807322 */
- #define VI_ERROR_INV_MECH (_VI_ERROR+0x3FFF0027L) /* BFFF0027, -1073807321 */
- #define VI_ERROR_HNDLR_NINSTALLED (_VI_ERROR+0x3FFF0028L) /* BFFF0028, -1073807320 */
- #define VI_ERROR_INV_HNDLR_REF (_VI_ERROR+0x3FFF0029L) /* BFFF0029, -1073807319 */
- #define VI_ERROR_INV_CONTEXT (_VI_ERROR+0x3FFF002AL) /* BFFF002A, -1073807318 */
- #define VI_ERROR_ABORT (_VI_ERROR+0x3FFF0030L) /* BFFF0030, -1073807312 */
- #define VI_ERROR_RAW_WR_PROT_VIOL (_VI_ERROR+0x3FFF0034L) /* BFFF0034, -1073807308 */
- #define VI_ERROR_RAW_RD_PROT_VIOL (_VI_ERROR+0x3FFF0035L) /* BFFF0035, -1073807307 */
- #define VI_ERROR_OUTP_PROT_VIOL (_VI_ERROR+0x3FFF0036L) /* BFFF0036, -1073807306 */
- #define VI_ERROR_INP_PROT_VIOL (_VI_ERROR+0x3FFF0037L) /* BFFF0037, -1073807305 */
- #define VI_ERROR_BERR (_VI_ERROR+0x3FFF0038L) /* BFFF0038, -1073807304 */
- #define VI_ERROR_INV_SETUP (_VI_ERROR+0x3FFF003AL) /* BFFF003A, -1073807302 */
- #define VI_ERROR_QUEUE_ERROR (_VI_ERROR+0x3FFF003BL) /* BFFF003B, -1073807301 */
- #define VI_ERROR_ALLOC (_VI_ERROR+0x3FFF003CL) /* BFFF003C, -1073807300 */
- #define VI_ERROR_INV_MASK (_VI_ERROR+0x3FFF003DL) /* BFFF003D, -1073807299 */
- #define VI_ERROR_IO (_VI_ERROR+0x3FFF003EL) /* BFFF003E, -1073807298 */
- #define VI_ERROR_INV_FMT (_VI_ERROR+0x3FFF003FL) /* BFFF003F, -1073807297 */
- #define VI_ERROR_NSUP_FMT (_VI_ERROR+0x3FFF0041L) /* BFFF0041, -1073807295 */
- #define VI_ERROR_LINE_IN_USE (_VI_ERROR+0x3FFF0042L) /* BFFF0042, -1073807294 */
- #define VI_ERROR_SRQ_NOCCURRED (_VI_ERROR+0x3FFF004AL) /* BFFF004A, -1073807286 */
- #define VI_ERROR_INV_SPACE (_VI_ERROR+0x3FFF004EL) /* BFFF004E, -1073807282 */
- #define VI_ERROR_INV_OFFSET (_VI_ERROR+0x3FFF0051L) /* BFFF0051, -1073807279 */
- #define VI_ERROR_NSUP_OFFSET (_VI_ERROR+0x3FFF0054L) /* BFFF0054, -1073807276 */
- #define VI_ERROR_WINDOW_NMAPPED (_VI_ERROR+0x3FFF0057L) /* BFFF0057, -1073807273 */
- #define VI_ERROR_NLISTENERS (_VI_ERROR+0x3FFF005FL) /* BFFF005F, -1073807265 */
- #define VI_ERROR_NCIC (_VI_ERROR+0x3FFF0060L) /* BFFF0060, -1073807264 */
- #define VI_ERROR_NSUP_OPER (_VI_ERROR+0x3FFF0067L) /* BFFF0067, -1073807257 */
- #define VI_ERROR_ASRL_PARITY (_VI_ERROR+0x3FFF006AL) /* BFFF006A, -1073807254 */
- #define VI_ERROR_ASRL_FRAMING (_VI_ERROR+0x3FFF006BL) /* BFFF006B, -1073807253 */
- #define VI_ERROR_ASRL_OVERRUN (_VI_ERROR+0x3FFF006CL) /* BFFF006C, -1073807252 */
- #define VI_ERROR_NSUP_WIDTH (_VI_ERROR+0x3FFF0076L) /* BFFF0076, -1073807242 */
- #define VI_ERROR_INV_PARAMETER (_VI_ERROR+0x3FFF0078L) /* BFFF0078, -1073807240 */
- #define VI_ERROR_INV_PROT (_VI_ERROR+0x3FFF0079L) /* BFFF0079, -1073807239 */
- #define VI_ERROR_INV_SIZE (_VI_ERROR+0x3FFF007BL) /* BFFF007B, -1073807237 */
- #define VI_ERROR_WINDOW_MAPPED (_VI_ERROR+0x3FFF0080L) /* BFFF0080, -1073807232 */
- #define VI_ERROR_NIMPL_OPER (_VI_ERROR+0x3FFF0081L) /* BFFF0081, -1073807231 */
- #define VI_ERROR_INV_LENGTH (_VI_ERROR+0x3FFF0083L) /* BFFF0083, -1073807229 */
- #define VI_ERROR_SESN_NLOCKED (_VI_ERROR+0x3FFF009CL) /* BFFF009C, -1073807204 */
- #define VI_ERROR_MEM_NSHARED (_VI_ERROR+0x3FFF009DL) /* BFFF009D, -1073807203 */
-
- /*- Other VISA Definitions --------------------------------------------------*/
-
- #define VI_VERSION_MAJOR(ver) ((((ViVersion)ver) & 0xFFF00000UL) >> 20)
- #define VI_VERSION_MINOR(ver) ((((ViVersion)ver) & 0x000FFF00UL) >> 8)
- #define VI_VERSION_SUBMINOR(ver) ((((ViVersion)ver) & 0x000000FFUL) )
-
- #define VI_ERROR_INV_SESSION (VI_ERROR_INV_OBJECT)
-
- #define VI_FIND_BUFLEN (256)
-
- #define VI_INTF_GPIB (1)
- #define VI_INTF_VXI (2)
- #define VI_INTF_GPIB_VXI (3)
- #define VI_INTF_ASRL (4)
-
- #define VI_NORMAL (1)
- #define VI_FDC (2)
- #define VI_HS488 (3)
-
- #define VI_FDC_NORMAL (1)
- #define VI_FDC_STREAM (2)
-
- #define VI_A16_SPACE (1)
- #define VI_A24_SPACE (2)
- #define VI_A32_SPACE (3)
-
- #define VI_UNKNOWN_LA (-1)
- #define VI_UNKNOWN_SLOT (-1)
-
- #define VI_QUEUE (1)
- #define VI_HNDLR (2)
- #define VI_SUSPEND_HNDLR (4)
- #define VI_ALL_MECH (0xFFFF)
-
- #define VI_ANY_HNDLR (0)
-
- #define VI_TRIG_SW (-1)
- #define VI_TRIG_TTL0 (0)
- #define VI_TRIG_TTL1 (1)
- #define VI_TRIG_TTL2 (2)
- #define VI_TRIG_TTL3 (3)
- #define VI_TRIG_TTL4 (4)
- #define VI_TRIG_TTL5 (5)
- #define VI_TRIG_TTL6 (6)
- #define VI_TRIG_TTL7 (7)
- #define VI_TRIG_ECL0 (8)
- #define VI_TRIG_ECL1 (9)
-
- #define VI_TRIG_PROT_DEFAULT (0)
- #define VI_TRIG_PROT_ON (1)
- #define VI_TRIG_PROT_OFF (2)
- #define VI_TRIG_PROT_SYNC (5)
-
- #define VI_READ_BUF (1)
- #define VI_WRITE_BUF (2)
- #define VI_READ_BUF_DISCARD (4)
- #define VI_WRITE_BUF_DISCARD (8)
- #define VI_ASRL_IN_BUF (16)
- #define VI_ASRL_OUT_BUF (32)
- #define VI_ASRL_IN_BUF_DISCARD (64)
- #define VI_ASRL_OUT_BUF_DISCARD (128)
-
- #define VI_FLUSH_ON_ACCESS (1)
- #define VI_FLUSH_WHEN_FULL (2)
- #define VI_FLUSH_DISABLE (3)
-
- #define VI_NMAPPED (1)
- #define VI_USE_OPERS (2)
- #define VI_DEREF_ADDR (3)
-
- #define VI_TMO_IMMEDIATE (0L)
- #define VI_TMO_INFINITE (0xFFFFFFFFL)
- #define VI_INFINITE (VI_TMO_INFINITE)
-
- #define VI_NO_LOCK (0)
- #define VI_EXCLUSIVE_LOCK (1)
- #define VI_SHARED_LOCK (2)
-
- #define VI_NO_SEC_ADDR (0xFFFF)
-
- #define VI_ASRL_PAR_NONE (0)
- #define VI_ASRL_PAR_ODD (1)
- #define VI_ASRL_PAR_EVEN (2)
- #define VI_ASRL_PAR_MARK (3)
- #define VI_ASRL_PAR_SPACE (4)
-
- #define VI_ASRL_STOP_ONE (10)
- #define VI_ASRL_STOP_TWO (20)
-
- #define VI_ASRL_FLOW_NONE (0)
- #define VI_ASRL_FLOW_XON_XOFF (1)
- #define VI_ASRL_FLOW_RTS_CTS (2)
-
- #define VI_ASRL_END_NONE (0)
- #define VI_ASRL_END_LAST_BIT (1)
- #define VI_ASRL_END_TERMCHAR (2)
- #define VI_ASRL_END_BREAK (3)
-
- #if defined(__cplusplus) || defined(__cplusplus__)
- }
- #endif
-
- #endif
-
- /*- The End -----------------------------------------------------------------*/
-
-