25 #if defined(_WIN32) || defined(LABVIEW64_IMPORT) || defined(LABVIEW32_IMPORT) || defined(MATLAB_IMPORT)
26 #define XIMC_API __stdcall
28 #ifdef LIBXIMC_EXPORTS
29 #define XIMC_API __attribute__((visibility("default")))
43 #if defined(_WIN32) || defined(LABVIEW64_IMPORT) || defined(LABVIEW32_IMPORT) || defined(MATLAB_IMPORT)
44 #define XIMC_CALLCONV __stdcall
57 #if defined(_WIN32) || defined(LABVIEW64_IMPORT) || defined(LABVIEW32_IMPORT) || defined(MATLAB_IMPORT)
58 #define XIMC_RETTYPE unsigned int
60 #define XIMC_RETTYPE void*
64 #if !defined(XIMC_NO_STDINT)
66 #if ( (defined(_MSC_VER) && (_MSC_VER < 1600)) || defined(LABVIEW64_IMPORT) || defined(LABVIEW32_IMPORT)) && !defined(MATLAB_IMPORT)
68 typedef __int8 int8_t;
69 typedef __int16 int16_t;
70 typedef __int32 int32_t;
71 typedef __int64 int64_t;
72 typedef unsigned __int8 uint8_t;
73 typedef unsigned __int16 uint16_t;
74 typedef unsigned __int32 uint32_t;
75 typedef unsigned __int64 uint64_t;
81 #if defined(LABVIEW64_IMPORT) || defined(LABVIEW32_IMPORT)
82 typedef unsigned __int64 ulong_t;
83 typedef __int64 long_t;
85 typedef unsigned long long ulong_t;
86 typedef long long long_t;
93 #if defined(__cplusplus)
127 #if defined(_WIN64) || defined(__LP64__) || defined(LABVIEW64_IMPORT)
142 #define device_undefined -1
171 #define result_error -1
181 #define result_not_implemented -2
191 #define result_value_error -3
201 #define result_nodevice -4
222 #define LOGLEVEL_ERROR 0x01
231 #define LOGLEVEL_WARNING 0x02
240 #define LOGLEVEL_INFO 0x03
249 #define LOGLEVEL_DEBUG 0x04
350 #define LIBXIMC_VERSION 2.14.29
355 #define LIBXIMC_PROTOCOL_VERSION 20.9
376 #define ENUMERATE_PROBE 0x01
377 #define ENUMERATE_ALL_COM 0x02
378 #define ENUMERATE_NETWORK 0x04
398 #define MOVE_STATE_MOVING 0x01
399 #define MOVE_STATE_TARGET_SPEED 0x02
400 #define MOVE_STATE_ANTIPLAY 0x04
419 #define EEPROM_PRECEDENCE 0x01
439 #define PWR_STATE_UNKNOWN 0x00
440 #define PWR_STATE_OFF 0x01
441 #define PWR_STATE_NORM 0x03
442 #define PWR_STATE_REDUCT 0x04
443 #define PWR_STATE_MAX 0x05
465 #define STATE_CONTR 0x000003F
466 #define STATE_ERRC 0x0000001
467 #define STATE_ERRD 0x0000002
468 #define STATE_ERRV 0x0000004
469 #define STATE_EEPROM_CONNECTED 0x0000010
470 #define STATE_IS_HOMED 0x0000020
471 #define STATE_SECUR 0x1B3FFC0
472 #define STATE_ALARM 0x0000040
473 #define STATE_CTP_ERROR 0x0000080
474 #define STATE_POWER_OVERHEAT 0x0000100
475 #define STATE_CONTROLLER_OVERHEAT 0x0000200
476 #define STATE_OVERLOAD_POWER_VOLTAGE 0x0000400
477 #define STATE_OVERLOAD_POWER_CURRENT 0x0000800
478 #define STATE_OVERLOAD_USB_VOLTAGE 0x0001000
479 #define STATE_LOW_USB_VOLTAGE 0x0002000
480 #define STATE_OVERLOAD_USB_CURRENT 0x0004000
481 #define STATE_BORDERS_SWAP_MISSET 0x0008000
482 #define STATE_LOW_POWER_VOLTAGE 0x0010000
483 #define STATE_H_BRIDGE_FAULT 0x0020000
484 #define STATE_WINDING_RES_MISMATCH 0x0100000
485 #define STATE_ENCODER_FAULT 0x0200000
486 #define STATE_ENGINE_RESPONSE_ERROR 0x0800000
487 #define STATE_EXTIO_ALARM 0x1000000
509 #define STATE_DIG_SIGNAL 0xFFFF
510 #define STATE_RIGHT_EDGE 0x0001
511 #define STATE_LEFT_EDGE 0x0002
512 #define STATE_BUTTON_RIGHT 0x0004
513 #define STATE_BUTTON_LEFT 0x0008
514 #define STATE_GPIO_PINOUT 0x0010
515 #define STATE_GPIO_LEVEL 0x0020
516 #define STATE_BRAKE 0x0200
517 #define STATE_REV_SENSOR 0x0400
518 #define STATE_SYNC_INPUT 0x0800
519 #define STATE_SYNC_OUTPUT 0x1000
520 #define STATE_ENC_A 0x2000
521 #define STATE_ENC_B 0x4000
541 #define ENC_STATE_ABSENT 0x00
542 #define ENC_STATE_UNKNOWN 0x01
543 #define ENC_STATE_MALFUNC 0x02
544 #define ENC_STATE_REVERS 0x03
545 #define ENC_STATE_OK 0x04
565 #define WIND_A_STATE_ABSENT 0x00
566 #define WIND_A_STATE_UNKNOWN 0x01
567 #define WIND_A_STATE_MALFUNC 0x02
568 #define WIND_A_STATE_OK 0x03
569 #define WIND_B_STATE_ABSENT 0x00
570 #define WIND_B_STATE_UNKNOWN 0x10
571 #define WIND_B_STATE_MALFUNC 0x20
572 #define WIND_B_STATE_OK 0x30
594 #define MVCMD_NAME_BITS 0x3F
595 #define MVCMD_UKNWN 0x00
596 #define MVCMD_MOVE 0x01
597 #define MVCMD_MOVR 0x02
598 #define MVCMD_LEFT 0x03
599 #define MVCMD_RIGHT 0x04
600 #define MVCMD_STOP 0x05
601 #define MVCMD_HOME 0x06
602 #define MVCMD_LOFT 0x07
603 #define MVCMD_SSTP 0x08
604 #define MVCMD_ERROR 0x40
605 #define MVCMD_RUNNING 0x80
628 #define RPM_DIV_1000 0x01
651 #define ENGINE_REVERSE 0x01
652 #define ENGINE_CURRENT_AS_RMS 0x02
653 #define ENGINE_MAX_SPEED 0x04
654 #define ENGINE_ANTIPLAY 0x08
655 #define ENGINE_ACCEL_ON 0x10
656 #define ENGINE_LIMIT_VOLT 0x20
657 #define ENGINE_LIMIT_CURR 0x40
658 #define ENGINE_LIMIT_RPM 0x80
682 #define MICROSTEP_MODE_FULL 0x01
683 #define MICROSTEP_MODE_FRAC_2 0x02
684 #define MICROSTEP_MODE_FRAC_4 0x03
685 #define MICROSTEP_MODE_FRAC_8 0x04
686 #define MICROSTEP_MODE_FRAC_16 0x05
687 #define MICROSTEP_MODE_FRAC_32 0x06
688 #define MICROSTEP_MODE_FRAC_64 0x07
689 #define MICROSTEP_MODE_FRAC_128 0x08
690 #define MICROSTEP_MODE_FRAC_256 0x09
714 #define ENGINE_TYPE_NONE 0x00
715 #define ENGINE_TYPE_DC 0x01
716 #define ENGINE_TYPE_2DC 0x02
717 #define ENGINE_TYPE_STEP 0x03
718 #define ENGINE_TYPE_TEST 0x04
719 #define ENGINE_TYPE_BRUSHLESS 0x05
743 #define DRIVER_TYPE_DISCRETE_FET 0x01
744 #define DRIVER_TYPE_INTEGRATE 0x02
745 #define DRIVER_TYPE_EXTERNAL 0x03
767 #define POWER_REDUCT_ENABLED 0x01
768 #define POWER_OFF_ENABLED 0x02
769 #define POWER_SMOOTH_CURRENT 0x04
791 #define ALARM_ON_DRIVER_OVERHEATING 0x01
792 #define LOW_UPWR_PROTECTION 0x02
793 #define H_BRIDGE_ALERT 0x04
794 #define ALARM_ON_BORDERS_SWAP_MISSET 0x08
795 #define ALARM_FLAGS_STICKING 0x10
796 #define USB_BREAK_RECONNECT 0x20
797 #define ALARM_WINDING_MISMATCH 0x40
798 #define ALARM_ENGINE_RESPONSE 0x80
819 #define SETPOS_IGNORE_POSITION 0x01
820 #define SETPOS_IGNORE_ENCODER 0x02
839 #define FEEDBACK_ENCODER 0x01
840 #define FEEDBACK_EMF 0x04
841 #define FEEDBACK_NONE 0x05
842 #define FEEDBACK_ENCODER_MEDIATED 0x06
861 #define FEEDBACK_ENC_REVERSE 0x01
862 #define FEEDBACK_ENC_TYPE_BITS 0xC0
863 #define FEEDBACK_ENC_TYPE_AUTO 0x00
864 #define FEEDBACK_ENC_TYPE_SINGLE_ENDED 0x40
865 #define FEEDBACK_ENC_TYPE_DIFFERENTIAL 0x80
882 #define SYNCIN_ENABLED 0x01
883 #define SYNCIN_INVERT 0x02
884 #define SYNCIN_GOTOPOSITION 0x04
901 #define SYNCOUT_ENABLED 0x01
902 #define SYNCOUT_STATE 0x02
903 #define SYNCOUT_INVERT 0x04
904 #define SYNCOUT_IN_STEPS 0x08
905 #define SYNCOUT_ONSTART 0x10
906 #define SYNCOUT_ONSTOP 0x20
907 #define SYNCOUT_ONPERIOD 0x40
926 #define EXTIO_SETUP_OUTPUT 0x01
927 #define EXTIO_SETUP_INVERT 0x02
947 #define EXTIO_SETUP_MODE_IN_BITS 0x0F
948 #define EXTIO_SETUP_MODE_IN_NOP 0x00
949 #define EXTIO_SETUP_MODE_IN_STOP 0x01
950 #define EXTIO_SETUP_MODE_IN_PWOF 0x02
951 #define EXTIO_SETUP_MODE_IN_MOVR 0x03
952 #define EXTIO_SETUP_MODE_IN_HOME 0x04
953 #define EXTIO_SETUP_MODE_IN_ALARM 0x05
954 #define EXTIO_SETUP_MODE_OUT_BITS 0xF0
955 #define EXTIO_SETUP_MODE_OUT_OFF 0x00
956 #define EXTIO_SETUP_MODE_OUT_ON 0x10
957 #define EXTIO_SETUP_MODE_OUT_MOVING 0x20
958 #define EXTIO_SETUP_MODE_OUT_ALARM 0x30
959 #define EXTIO_SETUP_MODE_OUT_MOTOR_ON 0x40
982 #define BORDER_IS_ENCODER 0x01
983 #define BORDER_STOP_LEFT 0x02
984 #define BORDER_STOP_RIGHT 0x04
985 #define BORDERS_SWAP_MISSET_DETECTION 0x08
1008 #define ENDER_SWAP 0x01
1009 #define ENDER_SW1_ACTIVE_LOW 0x02
1010 #define ENDER_SW2_ACTIVE_LOW 0x04
1033 #define BRAKE_ENABLED 0x01
1034 #define BRAKE_ENG_PWROFF 0x02
1057 #define CONTROL_MODE_BITS 0x03
1058 #define CONTROL_MODE_OFF 0x00
1059 #define CONTROL_MODE_JOY 0x01
1060 #define CONTROL_MODE_LR 0x02
1061 #define CONTROL_BTN_LEFT_PUSHED_OPEN 0x04
1062 #define CONTROL_BTN_RIGHT_PUSHED_OPEN 0x08
1083 #define JOY_REVERSE 0x01
1106 #define CTP_ENABLED 0x01
1107 #define CTP_BASE 0x02
1108 #define CTP_ALARM_ON_ERROR 0x04
1109 #define REV_SENS_INV 0x08
1110 #define CTP_ERROR_CORRECTION 0x10
1134 #define HOME_DIR_FIRST 0x001
1135 #define HOME_DIR_SECOND 0x002
1136 #define HOME_MV_SEC_EN 0x004
1137 #define HOME_HALF_MV 0x008
1138 #define HOME_STOP_FIRST_BITS 0x030
1139 #define HOME_STOP_FIRST_REV 0x010
1140 #define HOME_STOP_FIRST_SYN 0x020
1141 #define HOME_STOP_FIRST_LIM 0x030
1142 #define HOME_STOP_SECOND_BITS 0x0C0
1143 #define HOME_STOP_SECOND_REV 0x040
1144 #define HOME_STOP_SECOND_SYN 0x080
1145 #define HOME_STOP_SECOND_LIM 0x0C0
1146 #define HOME_USE_FAST 0x100
1163 #define UART_PARITY_BITS 0x03
1164 #define UART_PARITY_BIT_EVEN 0x00
1165 #define UART_PARITY_BIT_ODD 0x01
1166 #define UART_PARITY_BIT_SPACE 0x02
1167 #define UART_PARITY_BIT_MARK 0x03
1168 #define UART_PARITY_BIT_USE 0x04
1169 #define UART_STOP_BIT 0x08
1186 #define MOTOR_TYPE_UNKNOWN 0x00
1187 #define MOTOR_TYPE_STEP 0x01
1188 #define MOTOR_TYPE_DC 0x02
1189 #define MOTOR_TYPE_BLDC 0x03
1206 #define ENCSET_DIFFERENTIAL_OUTPUT 0x001
1207 #define ENCSET_PUSHPULL_OUTPUT 0x004
1208 #define ENCSET_INDEXCHANNEL_PRESENT 0x010
1209 #define ENCSET_REVOLUTIONSENSOR_PRESENT 0x040
1210 #define ENCSET_REVOLUTIONSENSOR_ACTIVE_HIGH 0x100
1227 #define MB_AVAILABLE 0x01
1228 #define MB_POWERED_HOLD 0x02
1245 #define TS_TYPE_BITS 0x07
1246 #define TS_TYPE_UNKNOWN 0x00
1247 #define TS_TYPE_THERMOCOUPLE 0x01
1248 #define TS_TYPE_SEMICONDUCTOR 0x02
1249 #define TS_AVAILABLE 0x08
1266 #define LS_ON_SW1_AVAILABLE 0x01
1267 #define LS_ON_SW2_AVAILABLE 0x02
1268 #define LS_SW1_ACTIVE_LOW 0x04
1269 #define LS_SW2_ACTIVE_LOW 0x08
1270 #define LS_SHORTED 0x10
1289 #define BACK_EMF_INDUCTANCE_AUTO 0x01
1290 #define BACK_EMF_RESISTANCE_AUTO 0x02
1291 #define BACK_EMF_KM_AUTO 0x04
1433 float AntiplaySpeed;
1807 unsigned int MaxSpeed[10];
1808 unsigned int uMaxSpeed[10];
1809 unsigned int Timeout[9];
1844 unsigned int Timeout[9];
1952 unsigned int IPv4Address[4];
1953 unsigned int SubnetMask[4];
1954 unsigned int DefaultGateway[4];
1972 char UserPassword[21];
2010 char ControllerName[17];
2025 unsigned int UserData[7];
2093 unsigned int Param1;
2296 char Manufacturer[5];
2297 char ManufacturerId[3];
2298 char ProductDescription[9];
2364 unsigned int deprecated;
2382 uint8_t DebugData[128];
2398 uint8_t DebugData[128];
2412 char PositionerName[17];
2428 char Manufacturer[17];
2429 char PartNumber[25];
2469 char Manufacturer[17];
2470 char PartNumber[25];
2524 char Manufacturer[17];
2525 char PartNumber[25];
2562 char Manufacturer[17];
2563 char PartNumber[25];
2599 char Manufacturer[17];
2600 char PartNumber[25];
2638 char MagneticBrakeInfo[25];
2643 char TemperatureSensorInfo[25];
5403 #if !defined(MATLAB_IMPORT) && !defined(LABVIEW64_IMPORT) && !defined(LABVIEW32_IMPORT)
5574 #if defined(__cplusplus)