home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 September / CHIP_CD_1997_09_PL.iso / software / testsoft / labwind / demo.6 / main / include / sysint.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-08-02  |  4.0 KB  |  111 lines

  1. /**************************************************************************/
  2. /*                                                                        */
  3. /*             National Instruments NI-VXI Software Interface             */
  4. /*                   (C) 1996,  National Instruments                      */
  5. /*                                                                        */
  6. /*          System Interrupt and VXIbus Extender Include File             */
  7. /*                                                                        */
  8. /**************************************************************************/
  9. /*                       DO NOT MODIFY THIS FILE                          */
  10. /**************************************************************************/
  11. /* The following file contains all the necessary System Interrupt and
  12.  * VXIbus Extender information for use of the National Instruments NI-VXI
  13.  * Software Interface functions.
  14.  */
  15.  
  16. #if !defined(sysint_h)
  17. #define sysint_h
  18.  
  19. /*****************************************************************************
  20.  *   The following are return codes for all of the System Interrupt
  21.  * functions.
  22.  */
  23.  
  24. /* General defines for all VXI interrupt and signal functions */
  25. #define INT_SRC_NOT_SUPPORTED       NO_HARDWARE_SUPPORT
  26.  
  27. /**************
  28.      ACfail
  29.  **************/
  30.  
  31. /* EnableACfail, DisableACfail */
  32. #define ACFAIL_OK                   NIVXI_OK       /* zero */
  33. #define ACFAIL_UNSUP                INT_SRC_NOT_SUPPORTED
  34. #define ACFAIL_INVCONT              INVALID_CONTROLLER
  35.  
  36. /* SetACfailHandler return codes */
  37. #define ACFAIL_SET_OK               NIVXI_OK       /* zero */
  38. #define ACFAIL_SET_UNSUP            INT_SRC_NOT_SUPPORTED
  39.  
  40. /* GetACfailHandler "func" return codes */
  41. #define ACFAIL_GET_INVLA            0L
  42.  
  43. /**************
  44.    Soft Reset
  45.  **************/
  46.  
  47. /* EnableSoftReset, DisableSoftReset */
  48. #define SOFTR_OK                    NIVXI_OK       /* zero */
  49. #define SOFTR_UNSUP                 INT_SRC_NOT_SUPPORTED
  50.  
  51. /* SetSoftResetHandler return codes */
  52. #define SOFTR_SET_OK                NIVXI_OK       /* zero */
  53. #define SOFTR_SET_UNSUP             INT_SRC_NOT_SUPPORTED
  54.  
  55. /* GetSoftResetHandler "func" return codes */
  56. #define SOFTR_GET_INVLA             0L
  57.  
  58. /**************
  59.      Sysfail
  60.  **************/
  61.  
  62. /* EnableSysfail, DisableSysfail */
  63. #define SYSF_OK                     NIVXI_OK       /* zero */
  64. #define SYSF_UNSUP                  INT_SRC_NOT_SUPPORTED
  65. #define SYSF_INVCONT                INVALID_CONTROLLER
  66.  
  67. /* SetSysfailHandler return codes */
  68. #define SYSF_SET_OK                 NIVXI_OK       /* zero */
  69. #define SYSF_SET_UNSUP              INT_SRC_NOT_SUPPORTED
  70.  
  71. /* GetSysfailHandler "func" return codes */
  72. #define SYSF_GET_INVLA              0L
  73.  
  74. /**************
  75.     Sysreset
  76.  **************/
  77.  
  78. /* EnableSysreset, DisableSysreset */
  79. #define SYSR_OK                     NIVXI_OK       /* zero */
  80. #define SYSR_UNSUP                  INT_SRC_NOT_SUPPORTED
  81.  
  82. /* SetSysresetHandler return codes */
  83. #define SYSR_SET_OK                 NIVXI_OK       /* zero */
  84. #define SYSR_SET_UNSUP              INT_SRC_NOT_SUPPORTED
  85.  
  86. /* GetSysresetHandler "func" return codes */
  87. #define SYSR_GET_INVLA              0L
  88.  
  89. /* AssertSysreset mode parameters */
  90. #define SYSR_RST_ASSERT             0U
  91. #define SYSR_RST_ALL                1U
  92. #define SYSR_RST_OTHERS             2U
  93.  
  94. /* AssertSysreset return codes */
  95. #define SYSR_RST_OK                 NIVXI_OK       /* zero */
  96. #define SYSR_RST_UNSUP              INT_SRC_NOT_SUPPORTED
  97. #define SYSR_RST_INVCONT            INVALID_CONTROLLER
  98. #define SYSR_RST_INVMODE            (-10)
  99.  
  100. /*****************************************************************************
  101.  *   The following are return codes for all of the VXIbus Extender functions
  102.  */
  103.  
  104. /* MapECLtrig, MapTTLtrig, MapUtilBus, MapVXIint */
  105. #define MAP_OK                     NIVXI_OK       /* zero */
  106. #define MAP_UNSUP                  (-1)
  107. #define MAP_INV_EXTENDER           (-2)
  108.  
  109. #endif
  110.  
  111.