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
287 #define LIBXIMC_VERSION 2.14.27
292 #define LIBXIMC_PROTOCOL_VERSION 20.9
313 #define ENUMERATE_PROBE 0x01
314 #define ENUMERATE_ALL_COM 0x02
315 #define ENUMERATE_NETWORK 0x04
335 #define MOVE_STATE_MOVING 0x01
336 #define MOVE_STATE_TARGET_SPEED 0x02
337 #define MOVE_STATE_ANTIPLAY 0x04
356 #define EEPROM_PRECEDENCE 0x01
376 #define PWR_STATE_UNKNOWN 0x00
377 #define PWR_STATE_OFF 0x01
378 #define PWR_STATE_NORM 0x03
379 #define PWR_STATE_REDUCT 0x04
380 #define PWR_STATE_MAX 0x05
402 #define STATE_CONTR 0x000003F
403 #define STATE_ERRC 0x0000001
404 #define STATE_ERRD 0x0000002
405 #define STATE_ERRV 0x0000004
406 #define STATE_EEPROM_CONNECTED 0x0000010
407 #define STATE_IS_HOMED 0x0000020
408 #define STATE_SECUR 0x1B3FFC0
409 #define STATE_ALARM 0x0000040
410 #define STATE_CTP_ERROR 0x0000080
411 #define STATE_POWER_OVERHEAT 0x0000100
412 #define STATE_CONTROLLER_OVERHEAT 0x0000200
413 #define STATE_OVERLOAD_POWER_VOLTAGE 0x0000400
414 #define STATE_OVERLOAD_POWER_CURRENT 0x0000800
415 #define STATE_OVERLOAD_USB_VOLTAGE 0x0001000
416 #define STATE_LOW_USB_VOLTAGE 0x0002000
417 #define STATE_OVERLOAD_USB_CURRENT 0x0004000
418 #define STATE_BORDERS_SWAP_MISSET 0x0008000
419 #define STATE_LOW_POWER_VOLTAGE 0x0010000
420 #define STATE_H_BRIDGE_FAULT 0x0020000
421 #define STATE_WINDING_RES_MISMATCH 0x0100000
422 #define STATE_ENCODER_FAULT 0x0200000
423 #define STATE_ENGINE_RESPONSE_ERROR 0x0800000
424 #define STATE_EXTIO_ALARM 0x1000000
446 #define STATE_DIG_SIGNAL 0xFFFF
447 #define STATE_RIGHT_EDGE 0x0001
448 #define STATE_LEFT_EDGE 0x0002
449 #define STATE_BUTTON_RIGHT 0x0004
450 #define STATE_BUTTON_LEFT 0x0008
451 #define STATE_GPIO_PINOUT 0x0010
452 #define STATE_GPIO_LEVEL 0x0020
453 #define STATE_BRAKE 0x0200
454 #define STATE_REV_SENSOR 0x0400
455 #define STATE_SYNC_INPUT 0x0800
456 #define STATE_SYNC_OUTPUT 0x1000
457 #define STATE_ENC_A 0x2000
458 #define STATE_ENC_B 0x4000
478 #define ENC_STATE_ABSENT 0x00
479 #define ENC_STATE_UNKNOWN 0x01
480 #define ENC_STATE_MALFUNC 0x02
481 #define ENC_STATE_REVERS 0x03
482 #define ENC_STATE_OK 0x04
502 #define WIND_A_STATE_ABSENT 0x00
503 #define WIND_A_STATE_UNKNOWN 0x01
504 #define WIND_A_STATE_MALFUNC 0x02
505 #define WIND_A_STATE_OK 0x03
506 #define WIND_B_STATE_ABSENT 0x00
507 #define WIND_B_STATE_UNKNOWN 0x10
508 #define WIND_B_STATE_MALFUNC 0x20
509 #define WIND_B_STATE_OK 0x30
531 #define MVCMD_NAME_BITS 0x3F
532 #define MVCMD_UKNWN 0x00
533 #define MVCMD_MOVE 0x01
534 #define MVCMD_MOVR 0x02
535 #define MVCMD_LEFT 0x03
536 #define MVCMD_RIGHT 0x04
537 #define MVCMD_STOP 0x05
538 #define MVCMD_HOME 0x06
539 #define MVCMD_LOFT 0x07
540 #define MVCMD_SSTP 0x08
541 #define MVCMD_ERROR 0x40
542 #define MVCMD_RUNNING 0x80
565 #define RPM_DIV_1000 0x01
588 #define ENGINE_REVERSE 0x01
589 #define ENGINE_CURRENT_AS_RMS 0x02
590 #define ENGINE_MAX_SPEED 0x04
591 #define ENGINE_ANTIPLAY 0x08
592 #define ENGINE_ACCEL_ON 0x10
593 #define ENGINE_LIMIT_VOLT 0x20
594 #define ENGINE_LIMIT_CURR 0x40
595 #define ENGINE_LIMIT_RPM 0x80
619 #define MICROSTEP_MODE_FULL 0x01
620 #define MICROSTEP_MODE_FRAC_2 0x02
621 #define MICROSTEP_MODE_FRAC_4 0x03
622 #define MICROSTEP_MODE_FRAC_8 0x04
623 #define MICROSTEP_MODE_FRAC_16 0x05
624 #define MICROSTEP_MODE_FRAC_32 0x06
625 #define MICROSTEP_MODE_FRAC_64 0x07
626 #define MICROSTEP_MODE_FRAC_128 0x08
627 #define MICROSTEP_MODE_FRAC_256 0x09
651 #define ENGINE_TYPE_NONE 0x00
652 #define ENGINE_TYPE_DC 0x01
653 #define ENGINE_TYPE_2DC 0x02
654 #define ENGINE_TYPE_STEP 0x03
655 #define ENGINE_TYPE_TEST 0x04
656 #define ENGINE_TYPE_BRUSHLESS 0x05
680 #define DRIVER_TYPE_DISCRETE_FET 0x01
681 #define DRIVER_TYPE_INTEGRATE 0x02
682 #define DRIVER_TYPE_EXTERNAL 0x03
704 #define POWER_REDUCT_ENABLED 0x01
705 #define POWER_OFF_ENABLED 0x02
706 #define POWER_SMOOTH_CURRENT 0x04
728 #define ALARM_ON_DRIVER_OVERHEATING 0x01
729 #define LOW_UPWR_PROTECTION 0x02
730 #define H_BRIDGE_ALERT 0x04
731 #define ALARM_ON_BORDERS_SWAP_MISSET 0x08
732 #define ALARM_FLAGS_STICKING 0x10
733 #define USB_BREAK_RECONNECT 0x20
734 #define ALARM_WINDING_MISMATCH 0x40
735 #define ALARM_ENGINE_RESPONSE 0x80
756 #define SETPOS_IGNORE_POSITION 0x01
757 #define SETPOS_IGNORE_ENCODER 0x02
776 #define FEEDBACK_ENCODER 0x01
777 #define FEEDBACK_EMF 0x04
778 #define FEEDBACK_NONE 0x05
779 #define FEEDBACK_ENCODER_MEDIATED 0x06
798 #define FEEDBACK_ENC_REVERSE 0x01
799 #define FEEDBACK_ENC_TYPE_BITS 0xC0
800 #define FEEDBACK_ENC_TYPE_AUTO 0x00
801 #define FEEDBACK_ENC_TYPE_SINGLE_ENDED 0x40
802 #define FEEDBACK_ENC_TYPE_DIFFERENTIAL 0x80
819 #define SYNCIN_ENABLED 0x01
820 #define SYNCIN_INVERT 0x02
821 #define SYNCIN_GOTOPOSITION 0x04
838 #define SYNCOUT_ENABLED 0x01
839 #define SYNCOUT_STATE 0x02
840 #define SYNCOUT_INVERT 0x04
841 #define SYNCOUT_IN_STEPS 0x08
842 #define SYNCOUT_ONSTART 0x10
843 #define SYNCOUT_ONSTOP 0x20
844 #define SYNCOUT_ONPERIOD 0x40
863 #define EXTIO_SETUP_OUTPUT 0x01
864 #define EXTIO_SETUP_INVERT 0x02
884 #define EXTIO_SETUP_MODE_IN_BITS 0x0F
885 #define EXTIO_SETUP_MODE_IN_NOP 0x00
886 #define EXTIO_SETUP_MODE_IN_STOP 0x01
887 #define EXTIO_SETUP_MODE_IN_PWOF 0x02
888 #define EXTIO_SETUP_MODE_IN_MOVR 0x03
889 #define EXTIO_SETUP_MODE_IN_HOME 0x04
890 #define EXTIO_SETUP_MODE_IN_ALARM 0x05
891 #define EXTIO_SETUP_MODE_OUT_BITS 0xF0
892 #define EXTIO_SETUP_MODE_OUT_OFF 0x00
893 #define EXTIO_SETUP_MODE_OUT_ON 0x10
894 #define EXTIO_SETUP_MODE_OUT_MOVING 0x20
895 #define EXTIO_SETUP_MODE_OUT_ALARM 0x30
896 #define EXTIO_SETUP_MODE_OUT_MOTOR_ON 0x40
919 #define BORDER_IS_ENCODER 0x01
920 #define BORDER_STOP_LEFT 0x02
921 #define BORDER_STOP_RIGHT 0x04
922 #define BORDERS_SWAP_MISSET_DETECTION 0x08
945 #define ENDER_SWAP 0x01
946 #define ENDER_SW1_ACTIVE_LOW 0x02
947 #define ENDER_SW2_ACTIVE_LOW 0x04
970 #define BRAKE_ENABLED 0x01
971 #define BRAKE_ENG_PWROFF 0x02
994 #define CONTROL_MODE_BITS 0x03
995 #define CONTROL_MODE_OFF 0x00
996 #define CONTROL_MODE_JOY 0x01
997 #define CONTROL_MODE_LR 0x02
998 #define CONTROL_BTN_LEFT_PUSHED_OPEN 0x04
999 #define CONTROL_BTN_RIGHT_PUSHED_OPEN 0x08
1020 #define JOY_REVERSE 0x01
1043 #define CTP_ENABLED 0x01
1044 #define CTP_BASE 0x02
1045 #define CTP_ALARM_ON_ERROR 0x04
1046 #define REV_SENS_INV 0x08
1047 #define CTP_ERROR_CORRECTION 0x10
1071 #define HOME_DIR_FIRST 0x001
1072 #define HOME_DIR_SECOND 0x002
1073 #define HOME_MV_SEC_EN 0x004
1074 #define HOME_HALF_MV 0x008
1075 #define HOME_STOP_FIRST_BITS 0x030
1076 #define HOME_STOP_FIRST_REV 0x010
1077 #define HOME_STOP_FIRST_SYN 0x020
1078 #define HOME_STOP_FIRST_LIM 0x030
1079 #define HOME_STOP_SECOND_BITS 0x0C0
1080 #define HOME_STOP_SECOND_REV 0x040
1081 #define HOME_STOP_SECOND_SYN 0x080
1082 #define HOME_STOP_SECOND_LIM 0x0C0
1083 #define HOME_USE_FAST 0x100
1100 #define UART_PARITY_BITS 0x03
1101 #define UART_PARITY_BIT_EVEN 0x00
1102 #define UART_PARITY_BIT_ODD 0x01
1103 #define UART_PARITY_BIT_SPACE 0x02
1104 #define UART_PARITY_BIT_MARK 0x03
1105 #define UART_PARITY_BIT_USE 0x04
1106 #define UART_STOP_BIT 0x08
1123 #define MOTOR_TYPE_UNKNOWN 0x00
1124 #define MOTOR_TYPE_STEP 0x01
1125 #define MOTOR_TYPE_DC 0x02
1126 #define MOTOR_TYPE_BLDC 0x03
1143 #define ENCSET_DIFFERENTIAL_OUTPUT 0x001
1144 #define ENCSET_PUSHPULL_OUTPUT 0x004
1145 #define ENCSET_INDEXCHANNEL_PRESENT 0x010
1146 #define ENCSET_REVOLUTIONSENSOR_PRESENT 0x040
1147 #define ENCSET_REVOLUTIONSENSOR_ACTIVE_HIGH 0x100
1164 #define MB_AVAILABLE 0x01
1165 #define MB_POWERED_HOLD 0x02
1182 #define TS_TYPE_BITS 0x07
1183 #define TS_TYPE_UNKNOWN 0x00
1184 #define TS_TYPE_THERMOCOUPLE 0x01
1185 #define TS_TYPE_SEMICONDUCTOR 0x02
1186 #define TS_AVAILABLE 0x08
1203 #define LS_ON_SW1_AVAILABLE 0x01
1204 #define LS_ON_SW2_AVAILABLE 0x02
1205 #define LS_SW1_ACTIVE_LOW 0x04
1206 #define LS_SW2_ACTIVE_LOW 0x08
1207 #define LS_SHORTED 0x10
1226 #define BACK_EMF_INDUCTANCE_AUTO 0x01
1227 #define BACK_EMF_RESISTANCE_AUTO 0x02
1228 #define BACK_EMF_KM_AUTO 0x04
1700 unsigned int MaxSpeed[10];
1701 unsigned int uMaxSpeed[10];
1702 unsigned int Timeout[9];
1737 unsigned int Timeout[9];
1837 unsigned int IPv4Address[4];
1838 unsigned int SubnetMask[4];
1839 unsigned int DefaultGateway[4];
1857 char UserPassword[21];
1895 char ControllerName[17];
1910 unsigned int UserData[7];
1978 unsigned int Param1;
2181 char Manufacturer[5];
2182 char ManufacturerId[3];
2183 char ProductDescription[9];
2249 unsigned int deprecated;
2267 uint8_t DebugData[128];
2283 uint8_t DebugData[128];
2297 char PositionerName[17];
2313 char Manufacturer[17];
2314 char PartNumber[25];
2354 char Manufacturer[17];
2355 char PartNumber[25];
2409 char Manufacturer[17];
2410 char PartNumber[25];
2447 char Manufacturer[17];
2448 char PartNumber[25];
2484 char Manufacturer[17];
2485 char PartNumber[25];
2523 char MagneticBrakeInfo[25];
2528 char TemperatureSensorInfo[25];
5284 #if !defined(MATLAB_IMPORT) && !defined(LABVIEW64_IMPORT) && !defined(LABVIEW32_IMPORT)
5455 #if defined(__cplusplus)