⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 visa.h

📁 MTK 手机软件开发 META 源代码,开发环境: C++ Builder
💻 H
📖 第 1 页 / 共 3 页
字号:
#define VI_TRIG_ECL0                (8)
#define VI_TRIG_ECL1                (9)
#define VI_TRIG_PANEL_IN           (27)
#define VI_TRIG_PANEL_OUT          (28)

#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_IO_IN_BUF               (16)
#define VI_IO_OUT_BUF              (32)
#define VI_IO_IN_BUF_DISCARD       (64)
#define VI_IO_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             (0xFFFFFFFFUL)

#define VI_NO_LOCK                  (0)
#define VI_EXCLUSIVE_LOCK           (1)
#define VI_SHARED_LOCK              (2)
#define VI_LOAD_CONFIG              (4)

#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_ONE5           (15)
#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_FLOW_DTR_DSR        (4)

#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)

#define VI_STATE_ASSERTED           (1)
#define VI_STATE_UNASSERTED         (0)
#define VI_STATE_UNKNOWN            (-1)

#define VI_BIG_ENDIAN               (0)
#define VI_LITTLE_ENDIAN            (1)

#define VI_DATA_PRIV                (0)
#define VI_DATA_NPRIV               (1)
#define VI_PROG_PRIV                (2)
#define VI_PROG_NPRIV               (3)
#define VI_BLCK_PRIV                (4)
#define VI_BLCK_NPRIV               (5)
#define VI_D64_PRIV                 (6)
#define VI_D64_NPRIV                (7)

#define VI_WIDTH_8                  (1)
#define VI_WIDTH_16                 (2)
#define VI_WIDTH_32                 (4)

#define VI_GPIB_REN_DEASSERT        (0)
#define VI_GPIB_REN_ASSERT          (1)
#define VI_GPIB_REN_DEASSERT_GTL    (2)
#define VI_GPIB_REN_ASSERT_ADDRESS  (3)
#define VI_GPIB_REN_ASSERT_LLO      (4)
#define VI_GPIB_REN_ASSERT_ADDRESS_LLO (5)
#define VI_GPIB_REN_ADDRESS_GTL     (6)

#define VI_GPIB_ATN_DEASSERT           (0)
#define VI_GPIB_ATN_ASSERT             (1)
#define VI_GPIB_ATN_DEASSERT_HANDSHAKE (2)
#define VI_GPIB_ATN_ASSERT_IMMEDIATE   (3)

#define VI_GPIB_HS488_DISABLED      (0)
#define VI_GPIB_HS488_NIMPL        (-1)
#define VI_GPIB_UNADDRESSED         (0)
#define VI_GPIB_TALKER              (1)
#define VI_GPIB_LISTENER            (2)

#define VI_VXI_CMD16                (0x0200)
#define VI_VXI_CMD16_RESP16         (0x0202)
#define VI_VXI_RESP16               (0x0002)
#define VI_VXI_CMD32                (0x0400)
#define VI_VXI_CMD32_RESP16         (0x0402)
#define VI_VXI_CMD32_RESP32         (0x0404)
#define VI_VXI_RESP32               (0x0004)

#define VI_ASSERT_SIGNAL        (-1)
#define VI_ASSERT_USE_ASSIGNED   (0)
#define VI_ASSERT_IRQ1           (1)
#define VI_ASSERT_IRQ2           (2)
#define VI_ASSERT_IRQ3           (3)
#define VI_ASSERT_IRQ4           (4)
#define VI_ASSERT_IRQ5           (5)
#define VI_ASSERT_IRQ6           (6)
#define VI_ASSERT_IRQ7           (7)

#define VI_UTIL_ASSERT_SYSRESET  (1)
#define VI_UTIL_ASSERT_SYSFAIL   (2)
#define VI_UTIL_DEASSERT_SYSFAIL (3)

#define VI_VXI_CLASS_MEMORY      (0)
#define VI_VXI_CLASS_EXTENDED    (1)
#define VI_VXI_CLASS_MESSAGE     (2)
#define VI_VXI_CLASS_REGISTER    (3)
#define VI_VXI_CLASS_OTHER       (4)

/*- Backward Compatibility Macros --------------------------------------------*/

#define viGetDefaultRM(vi)      viOpenDefaultRM(vi)
#define VI_ERROR_INV_SESSION    (VI_ERROR_INV_OBJECT)
#define VI_INFINITE             (VI_TMO_INFINITE)
#define VI_ASRL488              (VI_PROT_4882_STRS)
#define VI_ASRL_IN_BUF          (VI_IO_IN_BUF)
#define VI_ASRL_OUT_BUF         (VI_IO_OUT_BUF)
#define VI_ASRL_IN_BUF_DISCARD  (VI_IO_IN_BUF_DISCARD)
#define VI_ASRL_OUT_BUF_DISCARD (VI_IO_OUT_BUF_DISCARD)

/*- Start of AGVISA Extensions Section ---------------------------------------*/

#if defined (AGVISA_ATTRIBUTES)
#pragma message ( "Note: AGVISA_ATTRIBUTES have been enabled" )
/*
  AGVISA specific attributes definitions.
*/
/*
   The following attributes can be used to control the exporting of Agilent VISA
   resources to other VISAs.
   VI_AGATTR_FIND_ONLY_EXPORTED_RSRCS is a resource manager resource that
   defaults to VI_FALSE.  Setting it to true will cause viFindRsrc and
   viParseRsrc to only report resources which have the
   VI_AGATTR_EXPORT_MAPPING_ENABLED set to VI_TRUE.
*/
#define VI_AGATTR_EXPORT_ENABLED           (0x0FFF0020L) /* ViBoolean (R/W resource attribute) */
#define VI_AGATTR_FIND_ONLY_EXPORTED_RSRCS (0x0FFF0021L) /* ViBoolean (R/W rsrcmgr attribute)  */

/*
  The following attribute allows setting and getting the T1 delay on a GPIB INTFC session.
  The value is the time of t1 delay in nanoseconds, and should be:
     - no less than VI_AG_GPIB_T1DELAY_MIN or
     - no greater than VI_AG_GPIB_T1DELAY_MAX.
  Most GPIB interfaces only support a small number of t1 delays, so the actual value used
  by the interface could be different than that specified. You can find out the actual value
  used by calling viGetAttribute().
*/
#define VI_AGATTR_GPIB_T1_DELAY  (0x0FFF0028L) /* ViInt32 (R/W GPIB INTFC resource attribute) */

#define VI_AG_GPIB_T1DELAY_MIN   350
#define VI_AG_GPIB_T1DELAY_MAX  2400

/*
   The VI_AGATTR_LOCKWAIT attribute modifies the behavior of exclusive locks.  
   When a lock-abiding VISA call is made on a session to an exclusively locked resource:
      - If VI_AGATTR_LOCKWAIT  is VI_FALSE, the call will immediately return
        with VI_ERROR_RSRC_LOCKED. 
      - If VI_AGATTR_LOCKWAIT  is VI_TRUE, the call will wait the session timeout
        interval for the lock to be released and then return VI_ERROR_TMO rather
        than VI_ERROR_RSRC_LOCKED. 
   The default value for VI_AGATTR_LOCKWAIT is normally VI_FALSE, but this default
   can be changed from the IO Control (the Agilent VISA Options | Default VISA LockWait menu)
   or from IO Config (the Options | Default VISA LockWait menu). 
*/
#define VI_AGATTR_LOCKWAIT       (0x0FFF002BL) /* ViBoolean (R/W local attribute) */

#endif /* AGVISA specific attributes */

#if defined (AGVISA_EXTENSIONS)
#pragma message ( "Note: AGVISA_EXTENSIONS have been enabled" )

#define VI_AGATTR_REMOTE_INTF_TYPE   (0x0FFF001CL) /* ViUInt16 (Remote Interface type for TCPIP::INSTR interface) */
#define VI_AGATTR_INTERFACE_PROTOCOL (0x0FFF001FL) /* ViUInt32 (Vxi11 protocol = 2, Sicllan protocol = 3)         */

#define VI_AGPROT_VXI11            (2)
#define VI_AGPROT_SICLLAN          (3)
#define VI_AGPROT_UNKNOWN          (0xffffffff)

#endif /* AGVISA Extensions */

#if defined (AGVISA_NONINTEROP_EXTENSIONS)
#pragma message ( "Note: AGVISA_NONINTEROP_EXTENSIONS have been enabled" )

#define VI_WIDTH_64                 (8)

typedef struct {
   ViUInt16     command;
   ViAddr       address;
   ViUInt32     parm1;
   ViUInt32     parm2;
} ViAGMacroElem, *PViAGMacroElem;

#define VI_AGMACRO_DELAY          (0x0001)
#define VI_AGMACRO_POLLSTAT16     (0x0010)
#define VI_AGMACRO_POKE8          (0x0020)
#define VI_AGMACRO_POKE16         (0x0021)
#define VI_AGMACRO_POKE32         (0x0022)
#define VI_AGMACRO_READMODWRITE16 (0x0030)
#define VI_AGMACRO_PEEK8          (0x0040)
#define VI_AGMACRO_PEEK16         (0x0041)
#define VI_AGMACRO_PEEK32         (0x0042)
#define VI_AGMACRO_SESSION        (0xfffe)
#define VI_AGMACRO_END            (0xffff)

#define VI_AGATTR_MACRO_SUPP    (0x0fff0016L)

ViStatus _VI_FUNC  viAGMacro(ViSession vi, ViAGMacroElem macroArray[], ViUInt32 size);

#endif /* AGVISA Non-interop Extensions */

/*- End of AGVISA Extensions Section -----------------------------------------*/

#if defined(__cplusplus) || defined(__cplusplus__)
   }
#endif

#endif

/*- The End -----------------------------------------------------------------*/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -