120 #define canINVALID_HANDLE (-1) 123 #define CanHandle int 126 #define WM__CANLIB (WM_USER+16354) 150 #define canOPEN_EXCLUSIVE 0x0008 163 #define canOPEN_REQUIRE_EXTENDED 0x0010 172 #define canOPEN_ACCEPT_VIRTUAL 0x0020 182 #define canOPEN_OVERRIDE_EXCLUSIVE 0x0040 200 #define canOPEN_REQUIRE_INIT_ACCESS 0x0080 213 #define canOPEN_NO_INIT_ACCESS 0x0100 226 #define canOPEN_ACCEPT_LARGE_DLC 0x0200 // DLC can be greater than 8 234 #define canOPEN_CAN_FD 0x0400 249 #define canOPEN_CAN_FD_NONISO 0x0800 255 #define canOPEN_INTERNAL_L 0x1000 268 #define canFILTER_ACCEPT 1 269 #define canFILTER_REJECT 2 271 #define canFILTER_SET_CODE_STD 3 273 #define canFILTER_SET_MASK_STD 4 275 #define canFILTER_SET_CODE_EXT 5 277 #define canFILTER_SET_MASK_EXT 6 279 #define canFILTER_NULL_MASK 0L 296 #define canDRIVER_NORMAL 4 304 #define canDRIVER_SILENT 1 309 #define canDRIVER_SELFRECEPTION 8 314 #define canDRIVER_OFF 0 338 #define canBITRATE_1M (-1) 340 #define canBITRATE_500K (-2) 342 #define canBITRATE_250K (-3) 344 #define canBITRATE_125K (-4) 346 #define canBITRATE_100K (-5) 348 #define canBITRATE_62K (-6) 350 #define canBITRATE_50K (-7) 352 #define canBITRATE_83K (-8) 354 #define canBITRATE_10K (-9) 360 #define canFD_BITRATE_500K_80P (-1000) 364 #define canFD_BITRATE_1M_80P (-1001) 368 #define canFD_BITRATE_2M_80P (-1002) 372 #define canFD_BITRATE_2M_60P (-1007) 376 #define canFD_BITRATE_4M_80P (-1003) 380 #define canFD_BITRATE_8M_60P (-1004) 384 #define canFD_BITRATE_8M_80P (-1005) 388 #define canFD_BITRATE_8M_70P (-1006) 393 #define BAUD_500K (-2) 395 #define BAUD_250K (-3) 397 #define BAUD_125K (-4) 399 #define BAUD_100K (-5) 401 #define BAUD_62K (-6) 403 #define BAUD_50K (-7) 405 #define BAUD_83K (-8) 415 # define CANLIBAPI __stdcall 416 # define DLLIMPORT __declspec(dllimport) 417 # define DLLEXPORT __declspec(dllexport) 600 unsigned int syncmode);
703 unsigned int tseg1_brs,
704 unsigned int tseg2_brs,
705 unsigned int sjw_brs);
774 unsigned int *noSamp,
775 unsigned int *syncmode);
823 unsigned int *tseg1_brs,
824 unsigned int *tseg2_brs,
825 unsigned int *sjw_brs);
876 const unsigned int drivertype);
913 unsigned int *drivertype);
959 const unsigned int flag);
985 unsigned long *
const flags);
1024 unsigned int *txErr,
1025 unsigned int *rxErr,
1026 unsigned int *ovErr);
1162 unsigned long *time);
1220 unsigned long *time,
1221 unsigned long timeout);
1275 unsigned int *dlc,
unsigned int *flag,
1276 unsigned long *time);
1343 unsigned long timeout);
1395 unsigned long *time);
1438 unsigned int aNotifyFlags);
1476 unsigned int *
const tseg1,
1477 unsigned int *
const tseg2,
1478 unsigned int *
const sjw,
1479 unsigned int *
const nosamp,
1480 unsigned int *
const syncMode);
1626 unsigned int buflen);
1721 #define kvREMOTE_TYPE_NOT_REMOTE 0 1722 #define kvREMOTE_TYPE_WLAN 1 1723 #define kvREMOTE_TYPE_LAN 2 1733 #define kvLOGGER_TYPE_NOT_A_LOGGER 0 1734 #define kvLOGGER_TYPE_V1 1 1735 #define kvLOGGER_TYPE_V2 2 1769 canStatus CANLIBAPI canGetChannelData(int channel, 1792 #define canCHANNELDATA_CHANNEL_CAP 1 1803 #define canCHANNELDATA_TRANS_CAP 2 1813 #define canCHANNELDATA_CHANNEL_FLAGS 3 // available, etc 1823 #define canCHANNELDATA_CARD_TYPE 4 1834 #define canCHANNELDATA_CARD_NUMBER 5 1843 #define canCHANNELDATA_CHAN_NO_ON_CARD 6 1854 #define canCHANNELDATA_CARD_SERIAL_NO 7 1865 #define canCHANNELDATA_TRANS_SERIAL_NO 8 1877 #define canCHANNELDATA_CARD_FIRMWARE_REV 9 1889 #define canCHANNELDATA_CARD_HARDWARE_REV 10 1900 #define canCHANNELDATA_CARD_UPC_NO 11 1912 #define canCHANNELDATA_TRANS_UPC_NO 12 1931 #define canCHANNELDATA_CHANNEL_NAME 13 1948 #define canCHANNELDATA_DLL_FILE_VERSION 14 1965 #define canCHANNELDATA_DLL_PRODUCT_VERSION 15 1982 #define canCHANNELDATA_DLL_FILETYPE 16 1992 #define canCHANNELDATA_TRANS_TYPE 17 2017 #define canCHANNELDATA_DEVICE_PHYSICAL_POSITION 18 2031 #define canCHANNELDATA_UI_NUMBER 19 2056 #define canCHANNELDATA_TIMESYNC_ENABLED 20 2072 #define canCHANNELDATA_DRIVER_FILE_VERSION 21 2088 #define canCHANNELDATA_DRIVER_PRODUCT_VERSION 22 2098 #define canCHANNELDATA_MFGNAME_UNICODE 23 2107 #define canCHANNELDATA_MFGNAME_ASCII 24 2117 #define canCHANNELDATA_DEVDESCR_UNICODE 25 2126 #define canCHANNELDATA_DEVDESCR_ASCII 26 2138 #define canCHANNELDATA_DRIVER_NAME 27 2152 #define canCHANNELDATA_CHANNEL_QUALITY 28 2162 #define canCHANNELDATA_ROUNDTRIP_TIME 29 2172 #define canCHANNELDATA_BUS_TYPE 30 2186 #define canCHANNELDATA_DEVNAME_ASCII 31 2198 #define canCHANNELDATA_TIME_SINCE_LAST_SEEN 32 2209 #define canCHANNELDATA_REMOTE_OPERATIONAL_MODE 33 2219 #define canCHANNELDATA_REMOTE_PROFILE_NAME 34 2229 #define canCHANNELDATA_REMOTE_HOST_NAME 35 2239 #define canCHANNELDATA_REMOTE_MAC 36 2249 #define canCHANNELDATA_MAX_BITRATE 37 2261 #define canCHANNELDATA_CHANNEL_CAP_MASK 38 2274 #define canCHANNELDATA_CUST_CHANNEL_NAME 39 2285 #define canCHANNELDATA_IS_REMOTE 40 2295 #define canCHANNELDATA_REMOTE_TYPE 41 2305 #define canCHANNELDATA_LOGGER_TYPE 42 2316 #define canCHANNELDATA_HW_STATUS 43 2327 #define canCHANNELDATA_FEATURE_EAN 44 2335 #define canCHANNELDATA_BUS_PARAM_LIMITS 45 2343 #define canCHANNELDATA_CLOCK_INFO 46 2365 #define canCHANNELDATA_CHANNEL_CAP_EX 47 2419 #define canCHANNEL_IS_EXCLUSIVE 0x0001 2422 #define canCHANNEL_IS_OPEN 0x0002 2426 #define canCHANNEL_IS_CANFD 0x0004 2432 #define canCHANNEL_IS_LIN 0x0010 2436 #define canCHANNEL_IS_LIN_MASTER 0x0020 2440 #define canCHANNEL_IS_LIN_SLAVE 0x0040 2461 #define canHWTYPE_NONE 0 2462 #define canHWTYPE_VIRTUAL 1 2463 #define canHWTYPE_LAPCAN 2 2464 #define canHWTYPE_CANPARI 3 2465 #define canHWTYPE_PCCAN 8 2466 #define canHWTYPE_PCICAN 9 2467 #define canHWTYPE_USBCAN 11 2468 #define canHWTYPE_PCICAN_II 40 2469 #define canHWTYPE_USBCAN_II 42 2470 #define canHWTYPE_SIMULATED 44 2471 #define canHWTYPE_ACQUISITOR 46 2472 #define canHWTYPE_LEAF 48 2473 #define canHWTYPE_PC104_PLUS 50 2474 #define canHWTYPE_PCICANX_II 52 2475 #define canHWTYPE_MEMORATOR_II 54 2476 #define canHWTYPE_MEMORATOR_PRO 54 2477 #define canHWTYPE_USBCAN_PRO 56 2478 #define canHWTYPE_IRIS 58 2479 #define canHWTYPE_BLACKBIRD 58 2480 #define canHWTYPE_MEMORATOR_LIGHT 60 2481 #define canHWTYPE_MINIHYDRA 62 2482 #define canHWTYPE_EAGLE 62 2483 #define canHWTYPE_BAGEL 64 2484 #define canHWTYPE_BLACKBIRD_V2 64 2485 #define canHWTYPE_MINIPCIE 66 2486 #define canHWTYPE_USBCAN_KLINE 68 2487 #define canHWTYPE_ETHERCAN 70 2488 #define canHWTYPE_USBCAN_LIGHT 72 2489 #define canHWTYPE_USBCAN_PRO2 74 2490 #define canHWTYPE_PCIE_V2 76 2491 #define canHWTYPE_MEMORATOR_PRO2 78 2492 #define canHWTYPE_LEAF2 80 2493 #define canHWTYPE_MEMORATOR_V2 82 2494 #define canHWTYPE_CANLINHYBRID 84 2495 #define canHWTYPE_DINRAIL 86 2496 #define canHWTYPE_U100 88 2497 #define canHWTYPE_LEAF3 90 2507 #define canCHANNEL_CAP_EXTENDED_CAN 0x00000001L 2508 #define canCHANNEL_CAP_BUS_STATISTICS 0x00000002L 2509 #define canCHANNEL_CAP_ERROR_COUNTERS 0x00000004L 2510 #define canCHANNEL_CAP_RESERVED_2 0x00000008L 2511 #define canCHANNEL_CAP_GENERATE_ERROR 0x00000010L 2512 #define canCHANNEL_CAP_GENERATE_OVERLOAD 0x00000020L 2513 #define canCHANNEL_CAP_TXREQUEST 0x00000040L 2514 #define canCHANNEL_CAP_TXACKNOWLEDGE 0x00000080L 2515 #define canCHANNEL_CAP_VIRTUAL 0x00010000L 2516 #define canCHANNEL_CAP_SIMULATED 0x00020000L 2517 #define canCHANNEL_CAP_RESERVED_1 0x00040000L 2518 #define canCHANNEL_CAP_CAN_FD 0x00080000L 2519 #define canCHANNEL_CAP_CAN_FD_NONISO 0x00100000L 2520 #define canCHANNEL_CAP_SILENT_MODE 0x00200000L 2521 #define canCHANNEL_CAP_SINGLE_SHOT 0x00400000L 2522 #define canCHANNEL_CAP_LOGGER 0x00800000L 2523 #define canCHANNEL_CAP_REMOTE_ACCESS 0x01000000L 2524 #define canCHANNEL_CAP_SCRIPT 0x02000000L 2525 #define canCHANNEL_CAP_LIN_HYBRID 0x04000000L 2526 #define canCHANNEL_CAP_IO_API 0x08000000L 2527 #define canCHANNEL_CAP_CANTEGRITY 0x10000000L 2535 #define canCHANNEL_CAP_EX_BUSPARAMS_TQ 0x0000000000000001L 2549 #define canCHANNEL_OPMODE_NONE 1 2554 #define canCHANNEL_OPMODE_INFRASTRUCTURE 2 2559 #define canCHANNEL_OPMODE_RESERVED 3 2564 #define canCHANNEL_OPMODE_ADHOC 4 2575 #define canDRIVER_CAP_HIGHSPEED 0x00000001L 2602 #define canIOCTL_PREFER_EXT 1 2616 #define canIOCTL_PREFER_STD 2 2634 #define canIOCTL_CLEAR_ERROR_COUNTERS 5 2649 #define canIOCTL_SET_TIMER_SCALE 6 2670 #define canIOCTL_SET_TXACK 7 2684 #define canIOCTL_GET_RX_BUFFER_LEVEL 8 2698 #define canIOCTL_GET_TX_BUFFER_LEVEL 9 2709 #define canIOCTL_FLUSH_RX_BUFFER 10 2720 #define canIOCTL_FLUSH_TX_BUFFER 11 2730 #define canIOCTL_GET_TIMER_SCALE 12 2747 #define canIOCTL_SET_TXRQ 13 2776 #define canIOCTL_GET_EVENTHANDLE 14 2784 #define canIOCTL_SET_BYPASS_MODE 15 2791 #define canIOCTL_SET_WAKEUP 16 2802 #define canIOCTL_GET_DRIVERHANDLE 17 2809 #define canIOCTL_MAP_RXQUEUE 18 2816 #define canIOCTL_GET_WAKEUP 19 2829 #define canIOCTL_SET_REPORT_ACCESS_ERRORS 20 2838 #define canIOCTL_GET_REPORT_ACCESS_ERRORS 21 2849 #define canIOCTL_CONNECT_TO_VIRTUAL_BUS 22 2860 #define canIOCTL_DISCONNECT_FROM_VIRTUAL_BUS 23 2871 #define canIOCTL_SET_USER_IOPORT 24 2883 #define canIOCTL_GET_USER_IOPORT 25 2890 #define canIOCTL_SET_BUFFER_WRAPAROUND_MODE 26 2908 #define canIOCTL_SET_RX_QUEUE_SIZE 27 2915 #define canIOCTL_SET_USB_THROTTLE 28 2922 #define canIOCTL_GET_USB_THROTTLE 29 2938 #define canIOCTL_SET_BUSON_TIME_AUTO_RESET 30 2951 #define canIOCTL_GET_TXACK 31 2967 #define canIOCTL_SET_LOCAL_TXECHO 32 2984 #define canIOCTL_SET_ERROR_FRAMES_REPORTING 33 2999 #define canIOCTL_GET_CHANNEL_QUALITY 34 3012 #define canIOCTL_GET_ROUNDTRIP_TIME 35 3022 #define canIOCTL_GET_BUS_TYPE 36 3036 #define canIOCTL_GET_DEVNAME_ASCII 37 3049 #define canIOCTL_GET_TIME_SINCE_LAST_SEEN 38 3064 #define canIOCTL_GET_TREF_LIST 39 3087 #define canIOCTL_TX_INTERVAL 40 3100 #define canIOCTL_SET_BRLIMIT 43 3107 #define canIOCTL_SET_USB_THROTTLE_SCALED 41 3123 #define canIOCTL_SET_THROTTLE_SCALED 41 3130 #define canIOCTL_GET_USB_THROTTLE_SCALED 42 3146 #define canIOCTL_GET_THROTTLE_SCALED 42 3155 #define canIOCTL_RESET_OVERRUN_COUNT 44 3165 #define canIOCTL_LIN_MODE 45 3185 #define canIOCTL_SET_LOCAL_TXACK 46 3363 #define canVERSION_CANLIB32_VERSION 0 3375 #define canVERSION_CANLIB32_PRODVER 1 3388 #define canVERSION_CANLIB32_PRODVER32 2 3400 #define canVERSION_CANLIB32_BETA 3 3631 unsigned int *tseg1,
3632 unsigned int *tseg2,
3634 unsigned int *noSamp);
3720 unsigned int noSamp);
3793 #define canOBJBUF_TYPE_AUTO_RESPONSE 0x01 3794 #define canOBJBUF_TYPE_PERIODIC_TX 0x02 3817 canStatus CANLIBAPI canObjBufFree(const CanHandle hnd, int idx); 3851 unsigned int flags);
3905 unsigned int flags);
3924 #define canOBJBUF_AUTO_RESPONSE_RTR_ONLY 0x01 3949 unsigned int period);
3973 unsigned int count);
4042 unsigned int burstlen);
4060 #define canVERSION_DONT_ACCEPT_LATER 0x01 4068 #define canVERSION_DONT_ACCEPT_BETAS 0x02 4111 unsigned int flags);
4182 unsigned long timeout);
4354 int *resultingChannel);
4379 unsigned int duration);
4410 #define kvLED_ACTION_ALL_LEDS_ON 0 4411 #define kvLED_ACTION_ALL_LEDS_OFF 1 4412 #define kvLED_ACTION_LED_0_ON 2 4413 #define kvLED_ACTION_LED_0_OFF 3 4414 #define kvLED_ACTION_LED_1_ON 4 4415 #define kvLED_ACTION_LED_1_OFF 5 4416 #define kvLED_ACTION_LED_2_ON 6 4417 #define kvLED_ACTION_LED_2_OFF 7 4418 #define kvLED_ACTION_LED_3_ON 8 4419 #define kvLED_ACTION_LED_3_OFF 9 4420 #define kvLED_ACTION_LED_4_ON 10 4421 #define kvLED_ACTION_LED_4_OFF 11 4422 #define kvLED_ACTION_LED_5_ON 12 4423 #define kvLED_ACTION_LED_5_OFF 13 4424 #define kvLED_ACTION_LED_6_ON 14 4425 #define kvLED_ACTION_LED_6_OFF 15 4426 #define kvLED_ACTION_LED_7_ON 16 4427 #define kvLED_ACTION_LED_7_OFF 17 4428 #define kvLED_ACTION_LED_8_ON 18 4429 #define kvLED_ACTION_LED_8_OFF 19 4430 #define kvLED_ACTION_LED_9_ON 20 4431 #define kvLED_ACTION_LED_9_OFF 21 4432 #define kvLED_ACTION_LED_10_ON 22 4433 #define kvLED_ACTION_LED_10_OFF 23 4434 #define kvLED_ACTION_LED_11_ON 24 4435 #define kvLED_ACTION_LED_11_OFF 25 4887 unsigned int notifyFlags);
4902 #define kvBUSTYPE_NONE 0 4908 #define kvBUSTYPE_PCI 1 4914 #define kvBUSTYPE_PCMCIA 2 4920 #define kvBUSTYPE_USB 3 4926 #define kvBUSTYPE_WLAN 4 4932 #define kvBUSTYPE_PCI_EXPRESS 5 4938 #define kvBUSTYPE_ISA 6 4944 #define kvBUSTYPE_VIRTUAL 7 4950 #define kvBUSTYPE_PC104_PLUS 8 4956 #define kvBUSTYPE_LAN 9 4973 #define kvBUSTYPE_GROUP_VIRTUAL 1 4979 #define kvBUSTYPE_GROUP_LOCAL 2 4985 #define kvBUSTYPE_GROUP_REMOTE 3 4990 #define kvBUSTYPE_GROUP_INTERNAL 4 5094 #define kvENVVAR_TYPE_INT 1 5101 #define kvENVVAR_TYPE_FLOAT 2 5108 #define kvENVVAR_TYPE_STRING 3 5125 #define kvEVENT_TYPE_KEY 1 5163 #define kvSCRIPT_STOP_NORMAL 0 5164 #define kvSCRIPT_STOP_FORCED -9 5188 kvStatus CANLIBAPI kvScriptStop(const CanHandle hnd, int slotNo, int mode); 5266 const char *envvarName,
5501 char *filePathOnPC);
5517 #define kvSCRIPT_REQUEST_TEXT_UNSUBSCRIBE 1 5522 #define kvSCRIPT_REQUEST_TEXT_SUBSCRIBE 2 5527 #define kvSCRIPT_REQUEST_TEXT_ALL_SLOTS 255 5554 unsigned int request);
5582 unsigned long *time,
5583 unsigned int *flags,
5593 #define kvSCRIPT_STATUS_LOADED 1 5594 #define kvSCRIPT_STATUS_RUNNING 2 5615 kvStatus CANLIBAPI kvScriptStatus(const CanHandle hnd, 5617 unsigned int *status);
5673 unsigned int *bufsize);
5700 #define canTXEDATA_FILE_VERSION 1 5717 #define canTXEDATA_COMPILER_VERSION 2 5737 #define canTXEDATA_DATE 3 5749 #define canTXEDATA_DESCRIPTION 4 5764 #define canTXEDATA_SOURCE 5 5775 #define canTXEDATA_SIZE_OF_CODE 6 5786 #define canTXEDATA_IS_ENCRYPTED 7 5817 char *deviceFileName);
5842 char *deviceFileName,
5843 char *hostFileName);
5979 #define kvDEVICE_MODE_INTERFACE 0x00 5985 #define kvDEVICE_MODE_LOGGER 0x01 6056 unsigned int *requestTime);
6076 unsigned int *requestTime,
6077 unsigned int *pingTime);
6092 #if defined(_CANEVT_H_) 6097 void CANLIBAPI canSetDebug(
int d);
6101 unsigned int flags);
6107 #define canTIMER_CYCLIC 0x01 6109 #define canTIMER_EXPENSIVE 0x02 6111 int CANLIBAPI canSplitHandle(
CanHandle hnd,
int channel);
6113 int CANLIBAPI canOpenMultiple(DWORD bitmask,
int flags);
6193 #define kvIO_INFO_GET_MODULE_TYPE 1 6200 #define kvIO_INFO_GET_DIRECTION 2 6207 #define kvIO_INFO_GET_PIN_TYPE 4 6214 #define kvIO_INFO_GET_NUMBER_OF_BITS 5 6223 #define kvIO_INFO_GET_RANGE_MIN 6 6232 #define kvIO_INFO_GET_RANGE_MAX 7 6241 #define kvIO_INFO_GET_DI_LOW_HIGH_FILTER 8 6250 #define kvIO_INFO_GET_DI_HIGH_LOW_FILTER 9 6259 #define kvIO_INFO_GET_AI_LP_FILTER_ORDER 10 6269 #define kvIO_INFO_GET_AI_HYSTERESIS 11 6276 #define kvIO_INFO_GET_MODULE_NUMBER 14 6283 #define kvIO_INFO_GET_SERIAL_NUMBER 15 6292 #define kvIO_INFO_GET_FW_VERSION 16 6314 #define kvIO_INFO_SET_DI_LOW_HIGH_FILTER 8 6323 #define kvIO_INFO_SET_DI_HIGH_LOW_FILTER 9 6332 #define kvIO_INFO_SET_AI_LP_FILTER_ORDER 10 6342 #define kvIO_INFO_SET_AI_HYSTERESIS 11 6360 #define kvIO_MODULE_TYPE_DIGITAL 1 6365 #define kvIO_MODULE_TYPE_ANALOG 2 6370 #define kvIO_MODULE_TYPE_RELAY 3 6375 #define kvIO_MODULE_TYPE_INTERNAL 4 6391 #define kvIO_PIN_TYPE_DIGITAL 1 6396 #define kvIO_PIN_TYPE_ANALOG 2 6401 #define kvIO_PIN_TYPE_RELAY 3 6417 #define kvIO_PIN_DIRECTION_IN 4 6422 #define kvIO_PIN_DIRECTION_OUT 8 kvStatus kvTimeDomainAddHandle(kvTimeDomain domain, const int hnd)
unsigned long stdData
Number of received standard (11-bit identifiers) data frames.
Definition: canlib.h:4524
canStatus canSetBusParamsFdTq(const int hnd, const kvBusParamsTq arbitration, const kvBusParamsTq data)
kvStatus kvFileGetName(const int hnd, int fileNo, char *name, int namelen)
kvStatus kvScriptEnvvarGetData(kvEnvHandle eHnd, void *buf, int start_index, int data_len)
canStatus canParamGetChannelNumber(int index)
kvBusParamsTq arbitration_max
Definition: canlib.h:2404
canStatus canBusOn(const int hnd)
unsigned char DO
Definition: canlib.h:6718
canStatus kvBeep(const int hnd, int freq, unsigned int duration)
canStatus canSetDriverMode(const int hnd, int lineMode, int resNet)
kvStatus kvScriptSendEvent(const int hnd, int slotNo, int eventType, int eventNo, unsigned int data)
unsigned char RO6
Definition: canlib.h:6736
kvBusParamsTq data_min
Definition: canlib.h:2405
int version
Definition: canlib.h:2380
canStatus canClose(const int hnd)
canStatus
Definition: canstat.h:33
kvBusParamsTq arbitration_min
Definition: canlib.h:2403
kvStatus kvFileDiskFormat(const int hnd)
canStatus kvBitrateToBusParamsFdTq(const canHandle hnd, int freqA, int freqD, kvBusParamsTq *arbitration, kvBusParamsTq *data)
kvStatus kvFileCopyToDevice(const int hnd, char *hostFileName, char *deviceFileName)
int nNonMagiSyncCards
number of non MagiSync™ interfaces
Definition: canlib.h:4671
kvStatus kvPingRequest(const int hnd, unsigned int *requestTime)
kvStatus kvReadTimer64(const int hnd, int64_t *time)
unsigned long extRemote
Number of received extended (29-bit identifiers) remote frames.
Definition: canlib.h:4527
struct canBusStatistics_s canBusStatistics
unsigned char DO3
Definition: canlib.h:6678
canStatus canFlushReceiveQueue(const int hnd)
canStatus canBusOff(const int hnd)
int tq
Definition: canlib.h:632
canStatus canEnumHardwareEx(int *channelCount)
canStatus canGetBusParams(const int hnd, long *freq, unsigned int *tseg1, unsigned int *tseg2, unsigned int *sjw, unsigned int *noSamp, unsigned int *syncmode)
canStatus kvGetApplicationMapping(int busType, char *appName, int appChannel, int *resultingChannel)
int sjw
Definition: canlib.h:635
unsigned char DO11
Definition: canlib.h:6686
canStatus canObjBufFreeAll(const int hnd)
canStatus canGetNumberOfChannels(int *channelCount)
unsigned char DI10
Definition: canlib.h:6701
canStatus canParamFindByName(const char *name)
int nMagiSyncedMembers
number of MagiSync™ members
Definition: canlib.h:4670
int phase2
Definition: canlib.h:634
canStatus kvIoPinSetInfo(const int hnd, unsigned int pin, int item, const void *buffer, const unsigned int bufsize)
canStatus canSetAcceptanceFilter(const int hnd, unsigned int code, unsigned int mask, int is_extended)
kvStatus kvScriptEnvvarClose(kvEnvHandle eHnd)
kvStatus kvScriptEnvvarSetInt(kvEnvHandle eHnd, int val)
kvStatus kvDeviceGetMode(const int hnd, int *result)
unsigned int canGetVersionEx(unsigned int itemCode)
canStatus kvStatus
Definition: canlib.h:4662
Definitions which are retained for compatibility.
canStatus canObjBufAllocate(const int hnd, int type)
unsigned long extData
Number of received extended (29-bit identifiers) data frames.
Definition: canlib.h:4526
unsigned char DO5
Definition: canlib.h:6680
canStatus kvIoPinGetOutputAnalog(const int hnd, unsigned int pin, float *value)
canStatus canTranslateBaud(long *const freq, unsigned int *const tseg1, unsigned int *const tseg2, unsigned int *const sjw, unsigned int *const nosamp, unsigned int *const syncMode)
canStatus canWriteWait(const int hnd, long id, void *msg, unsigned int dlc, unsigned int flag, unsigned long timeout)
unsigned char DO12
Definition: canlib.h:6687
unsigned char DI13
Definition: canlib.h:6704
kvStatus kvTimeDomainDelete(kvTimeDomain domain)
unsigned char RO5
Definition: canlib.h:6735
unsigned char RO7
Definition: canlib.h:6737
canStatus canReadErrorCounters(const int hnd, unsigned int *txErr, unsigned int *rxErr, unsigned int *ovErr)
kvStatus kvPingGetLatest(const int hnd, unsigned int *requestTime, unsigned int *pingTime)
kvEnvHandle kvScriptEnvvarOpen(const int hnd, const char *envvarName, int *envvarType, int *envvarSize)
canStatus canParamSwapEntries(int index1, int index2)
canStatus canSetNotify(const int hnd, HWND aHWnd, unsigned int aNotifyFlags)
canStatus canResetBus(const int hnd)
void(__stdcall * kvCallback_t)(int hnd, void *context, unsigned int notifyEvent)
Definition: canlib.h:4850
canStatus kvIoPinGetOutputDigital(const int hnd, unsigned int pin, unsigned int *value)
canStatus canObjBufSetMsgCount(const int hnd, int idx, unsigned int count)
#define CanHandle
Definition: canlib.h:123
unsigned char DI11
Definition: canlib.h:6702
kvStatus kvFileGetCount(const int hnd, int *count)
unsigned char DI
Definition: canlib.h:6719
canStatus canRead(const int hnd, long *id, void *msg, unsigned int *dlc, unsigned int *flag, unsigned long *time)
canStatus canSetBitrate(const int hnd, int bitrate)
canStatus canGetHandleData(const int hnd, int item, void *buffer, size_t bufsize)
canStatus canReadSpecific(const int hnd, long id, void *msg, unsigned int *dlc, unsigned int *flag, unsigned long *time)
unsigned char RO4
Definition: canlib.h:6734
canStatus canWriteSync(const int hnd, unsigned long timeout)
unsigned char DI15
Definition: canlib.h:6706
Definition: canlib.h:4523
float AI1
Definition: canlib.h:6761
BOOL canProbeVersion(const int hnd, int major, int minor, int oem_id, unsigned int flags)
kvStatus kvFileCopyFromDevice(const int hnd, char *deviceFileName, char *hostFileName)
kvStatus kvScriptEnvvarSetData(kvEnvHandle eHnd, const void *buf, int start_index, int data_len)
kvStatus kvFileDelete(const int hnd, char *deviceFileName)
canStatus canSetBusParams(const int hnd, long freq, unsigned int tseg1, unsigned int tseg2, unsigned int sjw, unsigned int noSamp, unsigned int syncmode)
unsigned char DI8
Definition: canlib.h:6699
unsigned char DO2
Definition: canlib.h:6677
canStatus canAccept(const int hnd, const long envelope, const unsigned int flag)
canStatus canIoCtl(const int hnd, unsigned int func, void *buf, unsigned int buflen)
unsigned short canGetVersion(void)
unsigned char RO3
Definition: canlib.h:6733
kvStatus kvReadTimer(const int hnd, unsigned int *time)
unsigned char DO9
Definition: canlib.h:6684
kvStatus kvScriptLoadFile(const int hnd, int slotNo, char *filePathOnPC)
canStatus canGetBusParamsFdTq(const int hnd, kvBusParamsTq *nominal, kvBusParamsTq *data)
kvStatus kvTimeDomainGetData(kvTimeDomain domain, kvTimeDomainData *data, size_t bufsiz)
kvStatus kvTimeDomainCreate(kvTimeDomain *domain)
unsigned int portValue
Port value used in e.g. canIOCTL_SET_USER_IOPORT.
Definition: canlib.h:3191
int nMagiSyncGroups
number of MagiSync™ groups
Definition: canlib.h:4669
Definition: canlib.h:2401
canStatus canReadStatus(const int hnd, unsigned long *const flags)
int accuracy_ppm
Definition: canlib.h:2384
unsigned char DI14
Definition: canlib.h:6705
canStatus canGetBusParamsTq(const int hnd, kvBusParamsTq *nominal)
float AI3
Definition: canlib.h:6763
canStatus canRequestChipStatus(const int hnd)
canStatus kvIoConfirmConfig(const int hnd)
unsigned char RO1
Definition: canlib.h:6731
Definition: canlib.h:6729
kvStatus kvReadDeviceCustomerData(const int hnd, int userNumber, int itemNumber, void *data, size_t bufsiz)
canStatus kvIoPinSetRelay(const int hnd, unsigned int pin, unsigned int value)
__int64 kvEnvHandle
Definition: canlib.h:5134
kvStatus kvScriptTxeGetData(const char *filePathOnPC, int item, void *buffer, unsigned int *bufsize)
unsigned char DI7
Definition: canlib.h:6698
canStatus canParamGetBusParams(int index, long *bitrate, unsigned int *tseg1, unsigned int *tseg2, unsigned int *sjw, unsigned int *noSamp)
struct kvTimeDomainData_s kvTimeDomainData
int prescaler
Definition: canlib.h:637
unsigned char DO4
Definition: canlib.h:6679
canStatus kvIoGetNumberOfPins(const int hnd, unsigned int *pinCount)
float AO2
Definition: canlib.h:6758
float AI2
Definition: canlib.h:6762
kvStatus kvGetSupportedInterfaceInfo(int index, char *hwName, size_t nameLen, int *hwType, int *hwBusType)
canStatus canReadSpecificSkip(const int hnd, long id, void *msg, unsigned int *dlc, unsigned int *flag, unsigned long *time)
canStatus canGetBusParamsFd(const int hnd, long *freq_brs, unsigned int *tseg1_brs, unsigned int *tseg2_brs, unsigned int *sjw_brs)
int denominator
Definition: canlib.h:2382
canStatus kvIoPinSetDigital(const int hnd, unsigned int pin, unsigned int value)
Definition: canlib.h:3189
unsigned long errFrame
Number of error frames.
Definition: canlib.h:4528
kvStatus kvDeviceSetMode(const int hnd, int mode)
int type
Definition: canlib.h:6675
canStatus canReadWait(const int hnd, long *id, void *msg, unsigned int *dlc, unsigned int *flag, unsigned long *time, unsigned long timeout)
int power_of_ten
Definition: canlib.h:2383
unsigned long busLoad
Definition: canlib.h:4534
Definition: canlib.h:6755
int phase1
Definition: canlib.h:633
kvStatus kvScriptUnload(const int hnd, int slotNo)
canStatus canParamCommitChanges(void)
float AO4
Definition: canlib.h:6760
canStatus kvIoPinGetInfo(const int hnd, unsigned int pin, int item, void *buffer, const unsigned int bufsize)
struct kvBusParamLimits kvBusParamLimits
canStatus canObjBufSendBurst(const int hnd, int idx, unsigned int burstlen)
unsigned char DO1
Definition: canlib.h:6676
canStatus canRequestBusStatistics(const int hnd)
kvStatus kvSetNotifyCallback(const int hnd, kvCallback_t callback, void *context, unsigned int notifyFlags)
struct kvClockInfo kvClockInfo
canStatus canGetDriverMode(const int hnd, int *lineMode, int *resNet)
kvStatus kvScriptGetText(const int hnd, int *slot, unsigned long *time, unsigned int *flags, char *buf, size_t bufsize)
float AO1
Definition: canlib.h:6757
canStatus canReadSync(const int hnd, unsigned long timeout)
struct kvBusParamsTq kvBusParamsTq
kvStatus kvTimeDomainRemoveHandle(kvTimeDomain domain, const int hnd)
canStatus canFlushTransmitQueue(const int hnd)
canStatus canParamGetCount(void)
unsigned char DI4
Definition: canlib.h:6695
canStatus canReadSyncSpecific(const int hnd, long id, unsigned long timeout)
int nNonMagiSyncedMembers
number of non MagiSync™ members
Definition: canlib.h:4672
canStatus kvIoSetModulePins(const int hnd, unsigned int module, const void *buffer, const unsigned int bufsize)
unsigned char RO8
Definition: canlib.h:6738
unsigned char DI2
Definition: canlib.h:6693
canStatus canUnloadLibrary(void)
Definitions for the CANLIB API.
canStatus kvSelfTest(const int hnd, unsigned long *presults)
canStatus canSetBusParamsC200(const int hnd, unsigned char btr0, unsigned char btr1)
canStatus canParamSetName(int index, const char *buffer)
canStatus canWaitForEvent(const int hnd, DWORD timeout)
canStatus canParamSetBusParams(int index, long bitrate, unsigned int tseg1, unsigned int tseg2, unsigned int sjw, unsigned int noSamp)
unsigned char DO7
Definition: canlib.h:6682
unsigned char DO13
Definition: canlib.h:6688
float AI4
Definition: canlib.h:6764
canStatus kvIoPinGetOutputRelay(const int hnd, unsigned int pin, unsigned int *value)
unsigned char DI3
Definition: canlib.h:6694
canStatus canObjBufSetFlags(const int hnd, int idx, unsigned int flags)
int prop
Definition: canlib.h:636
canStatus canSetBusOutputControl(const int hnd, const unsigned int drivertype)
unsigned char RO2
Definition: canlib.h:6732
Definition: canlib.h:6716
canStatus canObjBufEnable(const int hnd, int idx)
Definition: canlib.h:4668
canStatus kvFlashLeds(const int hnd, int action, int timeout)
Definition: canlib.h:2379
canStatus kvAnnounceIdentity(const int hnd, void *buf, size_t bufsiz)
canStatus kvIoGetModulePins(const int hnd, unsigned int module, void *buffer, const unsigned int bufsize)
unsigned char DO10
Definition: canlib.h:6685
unsigned char DI16
Definition: canlib.h:6707
unsigned char DO14
Definition: canlib.h:6689
unsigned char DI12
Definition: canlib.h:6703
canStatus canWrite(const int hnd, long id, void *msg, unsigned int dlc, unsigned int flag)
canStatus canParamGetName(int index, char *buffer, int maxlen)
void canInitializeLibrary(void)
canStatus canGetBusStatistics(const int hnd, canBusStatistics *stat, size_t bufsiz)
unsigned long canReadTimer(const int hnd)
canStatus kvBitrateToBusParamsTq(const canHandle hnd, int freq, kvBusParamsTq *nominal)
unsigned long overruns
The number of overruns detected by the hardware, firmware or driver.
Definition: canlib.h:4535
kvBusParamsTq data_max
Definition: canlib.h:2406
kvStatus kvScriptLoadFileOnDevice(const int hnd, int slotNo, char *localFile)
canStatus canSetBusParamsFd(const int hnd, long freq_brs, unsigned int tseg1_brs, unsigned int tseg2_brs, unsigned int sjw_brs)
canStatus kvIoPinSetAnalog(const int hnd, unsigned int pin, float value)
canStatus kvAnnounceIdentityEx(const int hnd, int type, void *buf, size_t bufsiz)
kvStatus kvScriptStart(const int hnd, int slotNo)
kvStatus kvTimeDomainResetTime(kvTimeDomain domain)
canStatus kvIoPinGetDigital(const int hnd, unsigned int pin, unsigned int *value)
canStatus canParamSetChannelNumber(int index, int channel)
int canOpenChannel(int channel, int flags)
canStatus kvIoPinGetAnalog(const int hnd, unsigned int pin, float *value)
unsigned char DI1
Definition: canlib.h:6692
unsigned char DO15
Definition: canlib.h:6690
canStatus canObjBufSetPeriod(const int hnd, int idx, unsigned int period)
unsigned char DO6
Definition: canlib.h:6681
Definition: canlib.h:6674
canStatus canGetBusOutputControl(const int hnd, unsigned int *drivertype)
float AO3
Definition: canlib.h:6759
unsigned long stdRemote
Number of received standard (11-bit identifiers) remote frames.
Definition: canlib.h:4525
unsigned char DI9
Definition: canlib.h:6700
kvStatus kvScriptGetMaxEnvvarSize(int hnd, int *envvarSize)
kvStatus kvScriptRequestText(const int hnd, unsigned int slot, unsigned int request)
unsigned char DO8
Definition: canlib.h:6683
unsigned char DO16
Definition: canlib.h:6691
unsigned char DI6
Definition: canlib.h:6697
kvStatus kvScriptEnvvarSetFloat(kvEnvHandle eHnd, float val)
kvStatus kvFileGetSystemData(const int hnd, int itemCode, int *result)
canStatus canGetErrorText(canStatus err, char *buf, unsigned int bufsiz)
canStatus canParamDeleteEntry(int index)
void * kvTimeDomain
Definition: canlib.h:4659
int numerator
Definition: canlib.h:2381
unsigned int portNo
Port number used in e.g. canIOCTL_SET_USER_IOPORT.
Definition: canlib.h:3190
unsigned char DI5
Definition: canlib.h:6696
int canHandle
Definition: canlib.h:118
canStatus canObjBufDisable(const int hnd, int idx)
canStatus canObjBufWrite(const int hnd, int idx, int id, void *msg, unsigned int dlc, unsigned int flags)
canStatus canParamCreateNewEntry(void)
kvStatus kvScriptEnvvarGetFloat(kvEnvHandle eHnd, float *val)
canStatus canSetBusParamsTq(const int hnd, const kvBusParamsTq nominal)
canStatus canObjBufSetFilter(const int hnd, int idx, unsigned int code, unsigned int mask)
kvStatus kvScriptEnvvarGetInt(kvEnvHandle eHnd, int *val)