157 # define canINVALID_HANDLE (-1) 197 #define canWANT_EXCLUSIVE 0x0008 198 #define canWANT_EXTENDED 0x0010 199 #define canWANT_VIRTUAL 0x0020 214 #define canOPEN_EXCLUSIVE 0x0008 227 #define canOPEN_REQUIRE_EXTENDED 0x0010 236 # define canOPEN_ACCEPT_VIRTUAL 0x0020 246 # define canOPEN_OVERRIDE_EXCLUSIVE 0x0040 264 # define canOPEN_REQUIRE_INIT_ACCESS 0x0080 277 # define canOPEN_NO_INIT_ACCESS 0x0100 290 # define canOPEN_ACCEPT_LARGE_DLC 0x0200 // DLC can be greater than 8 298 # define canOPEN_CAN_FD 0x0400 313 # define canOPEN_CAN_FD_NONISO 0x0800 319 # define canOPEN_INTERNAL_L 0x1000 332 #define canFILTER_ACCEPT 1 333 #define canFILTER_REJECT 2 335 #define canFILTER_SET_CODE_STD 3 337 #define canFILTER_SET_MASK_STD 4 339 #define canFILTER_SET_CODE_EXT 5 341 #define canFILTER_SET_MASK_EXT 6 343 #define canFILTER_NULL_MASK 0L 360 #define canDRIVER_NORMAL 4 368 #define canDRIVER_SILENT 1 373 #define canDRIVER_SELFRECEPTION 8 378 #define canDRIVER_OFF 0 402 #define canBITRATE_1M (-1) 404 #define canBITRATE_500K (-2) 406 #define canBITRATE_250K (-3) 408 #define canBITRATE_125K (-4) 410 #define canBITRATE_100K (-5) 412 #define canBITRATE_62K (-6) 414 #define canBITRATE_50K (-7) 416 #define canBITRATE_83K (-8) 418 #define canBITRATE_10K (-9) 424 #define canFD_BITRATE_500K_80P (-1000) 428 #define canFD_BITRATE_1M_80P (-1001) 432 #define canFD_BITRATE_2M_80P (-1002) 436 #define canFD_BITRATE_4M_80P (-1003) 440 #define canFD_BITRATE_8M_60P (-1004) 445 #define BAUD_500K (-2) 447 #define BAUD_250K (-3) 449 #define BAUD_125K (-4) 451 #define BAUD_100K (-5) 453 #define BAUD_62K (-6) 455 #define BAUD_50K (-7) 457 #define BAUD_83K (-8) 644 unsigned int syncmode);
679 unsigned int tseg1_brs,
680 unsigned int tseg2_brs,
681 unsigned int sjw_brs);
720 unsigned int *noSamp,
721 unsigned int *syncmode);
748 unsigned int *tseg1_brs,
749 unsigned int *tseg2_brs,
750 unsigned int *sjw_brs);
776 const unsigned int drivertype);
813 unsigned int *drivertype);
859 const unsigned int flag);
885 unsigned long *
const flags);
926 unsigned int *ovErr);
1060 unsigned long *
time);
1116 unsigned long *time,
1117 unsigned long timeout);
1171 unsigned int * dlc,
unsigned int * flag,
1172 unsigned long * time);
1239 unsigned long timeout);
1290 unsigned int * flag,
1291 unsigned long * time);
1315 unsigned int notifyFlags,
1368 unsigned int *
const tseg1,
1369 unsigned int *
const tseg2,
1370 unsigned int *
const sjw,
1371 unsigned int *
const nosamp,
1372 unsigned int *
const syncMode);
1460 unsigned int buflen);
1552 #define kvREMOTE_TYPE_NOT_REMOTE 0 1553 #define kvREMOTE_TYPE_WLAN 1 1554 #define kvREMOTE_TYPE_LAN 2 1564 #define kvLOGGER_TYPE_NOT_A_LOGGER 0 1565 #define kvLOGGER_TYPE_V1 1 1566 #define kvLOGGER_TYPE_V2 2 1600 canStatus CANLIBAPI canGetChannelData (int channel, 1623 #define canCHANNELDATA_CHANNEL_CAP 1 1634 #define canCHANNELDATA_TRANS_CAP 2 1644 #define canCHANNELDATA_CHANNEL_FLAGS 3 // available, etc 1654 #define canCHANNELDATA_CARD_TYPE 4 1665 #define canCHANNELDATA_CARD_NUMBER 5 1674 #define canCHANNELDATA_CHAN_NO_ON_CARD 6 1685 #define canCHANNELDATA_CARD_SERIAL_NO 7 1696 #define canCHANNELDATA_TRANS_SERIAL_NO 8 1708 #define canCHANNELDATA_CARD_FIRMWARE_REV 9 1720 #define canCHANNELDATA_CARD_HARDWARE_REV 10 1731 #define canCHANNELDATA_CARD_UPC_NO 11 1743 #define canCHANNELDATA_TRANS_UPC_NO 12 1762 #define canCHANNELDATA_CHANNEL_NAME 13 1779 # define canCHANNELDATA_DLL_FILE_VERSION 14 1796 # define canCHANNELDATA_DLL_PRODUCT_VERSION 15 1813 # define canCHANNELDATA_DLL_FILETYPE 16 1823 # define canCHANNELDATA_TRANS_TYPE 17 1848 # define canCHANNELDATA_DEVICE_PHYSICAL_POSITION 18 1862 # define canCHANNELDATA_UI_NUMBER 19 1887 # define canCHANNELDATA_TIMESYNC_ENABLED 20 1903 # define canCHANNELDATA_DRIVER_FILE_VERSION 21 1919 # define canCHANNELDATA_DRIVER_PRODUCT_VERSION 22 1929 # define canCHANNELDATA_MFGNAME_UNICODE 23 1938 # define canCHANNELDATA_MFGNAME_ASCII 24 1948 # define canCHANNELDATA_DEVDESCR_UNICODE 25 1957 # define canCHANNELDATA_DEVDESCR_ASCII 26 1969 # define canCHANNELDATA_DRIVER_NAME 27 1983 # define canCHANNELDATA_CHANNEL_QUALITY 28 1993 # define canCHANNELDATA_ROUNDTRIP_TIME 29 2003 # define canCHANNELDATA_BUS_TYPE 30 2017 # define canCHANNELDATA_DEVNAME_ASCII 31 2029 # define canCHANNELDATA_TIME_SINCE_LAST_SEEN 32 2040 # define canCHANNELDATA_REMOTE_OPERATIONAL_MODE 33 2050 # define canCHANNELDATA_REMOTE_PROFILE_NAME 34 2060 # define canCHANNELDATA_REMOTE_HOST_NAME 35 2070 # define canCHANNELDATA_REMOTE_MAC 36 2080 # define canCHANNELDATA_MAX_BITRATE 37 2092 # define canCHANNELDATA_CHANNEL_CAP_MASK 38 2103 # define canCHANNELDATA_IS_REMOTE 40 2113 # define canCHANNELDATA_REMOTE_TYPE 41 2123 # define canCHANNELDATA_LOGGER_TYPE 42 2134 # define canCHANNELDATA_HW_STATUS 43 2145 # define canCHANNELDATA_FEATURE_EAN 44 2158 #define canCHANNELDATA_CUST_CHANNEL_NAME 39 2173 #define canCHANNEL_IS_EXCLUSIVE 0x0001 2176 #define canCHANNEL_IS_OPEN 0x0002 2180 #define canCHANNEL_IS_CANFD 0x0004 2186 #define canCHANNEL_IS_LIN 0x0010 2190 #define canCHANNEL_IS_LIN_MASTER 0x0020 2194 #define canCHANNEL_IS_LIN_SLAVE 0x0040 2215 #define canHWTYPE_NONE 0 2216 #define canHWTYPE_VIRTUAL 1 2217 #define canHWTYPE_LAPCAN 2 2218 #define canHWTYPE_CANPARI 3 2219 #define canHWTYPE_PCCAN 8 2220 #define canHWTYPE_PCICAN 9 2221 #define canHWTYPE_USBCAN 11 2222 #define canHWTYPE_PCICAN_II 40 2223 #define canHWTYPE_USBCAN_II 42 2224 #define canHWTYPE_SIMULATED 44 2225 #define canHWTYPE_ACQUISITOR 46 2226 #define canHWTYPE_LEAF 48 2227 #define canHWTYPE_PC104_PLUS 50 2228 #define canHWTYPE_PCICANX_II 52 2229 #define canHWTYPE_MEMORATOR_II 54 2230 #define canHWTYPE_MEMORATOR_PRO 54 2231 #define canHWTYPE_USBCAN_PRO 56 2232 #define canHWTYPE_IRIS 58 2233 #define canHWTYPE_BLACKBIRD 58 2234 #define canHWTYPE_MEMORATOR_LIGHT 60 2235 #define canHWTYPE_MINIHYDRA 62 2236 #define canHWTYPE_EAGLE 62 2237 #define canHWTYPE_BAGEL 64 2238 #define canHWTYPE_BLACKBIRD_V2 64 2239 #define canHWTYPE_MINIPCIE 66 2240 #define canHWTYPE_USBCAN_KLINE 68 2241 #define canHWTYPE_ETHERCAN 70 2242 #define canHWTYPE_USBCAN_LIGHT 72 2243 #define canHWTYPE_USBCAN_PRO2 74 2244 #define canHWTYPE_PCIE_V2 76 2245 #define canHWTYPE_MEMORATOR_PRO2 78 2246 #define canHWTYPE_LEAF2 80 2247 #define canHWTYPE_MEMORATOR_V2 82 2248 #define canHWTYPE_CANLINHYBRID 84 2249 #define canHWTYPE_DINRAIL 86 2260 #define canCHANNEL_CAP_EXTENDED_CAN 0x00000001L 2261 #define canCHANNEL_CAP_BUS_STATISTICS 0x00000002L 2262 #define canCHANNEL_CAP_ERROR_COUNTERS 0x00000004L 2263 #define canCHANNEL_CAP_RESERVED_2 0x00000008L 2264 #define canCHANNEL_CAP_GENERATE_ERROR 0x00000010L 2265 #define canCHANNEL_CAP_GENERATE_OVERLOAD 0x00000020L 2266 #define canCHANNEL_CAP_TXREQUEST 0x00000040L 2267 #define canCHANNEL_CAP_TXACKNOWLEDGE 0x00000080L 2268 #define canCHANNEL_CAP_VIRTUAL 0x00010000L 2269 #define canCHANNEL_CAP_SIMULATED 0x00020000L 2270 #define canCHANNEL_CAP_RESERVED_1 0x00040000L 2271 #define canCHANNEL_CAP_CAN_FD 0x00080000L 2272 #define canCHANNEL_CAP_CAN_FD_NONISO 0x00100000L 2273 #define canCHANNEL_CAP_SILENT_MODE 0x00200000L 2274 #define canCHANNEL_CAP_SINGLE_SHOT 0x00400000L 2275 #define canCHANNEL_CAP_LOGGER 0x00800000L 2276 #define canCHANNEL_CAP_REMOTE_ACCESS 0x01000000L 2277 #define canCHANNEL_CAP_SCRIPT 0x02000000L 2278 #define canCHANNEL_CAP_LIN_HYBRID 0x04000000L 2279 #define canCHANNEL_CAP_IO_API 0x08000000L 2280 #define canCHANNEL_CAP_DIAGNOSTICS 0x10000000L 2294 #define canCHANNEL_OPMODE_NONE 1 2299 #define canCHANNEL_OPMODE_INFRASTRUCTURE 2 2304 #define canCHANNEL_OPMODE_RESERVED 3 2309 #define canCHANNEL_OPMODE_ADHOC 4 2320 #define canDRIVER_CAP_HIGHSPEED 0x00000001L 2347 #define canIOCTL_PREFER_EXT 1 2361 #define canIOCTL_PREFER_STD 2 2379 #define canIOCTL_CLEAR_ERROR_COUNTERS 5 2395 #define canIOCTL_SET_TIMER_SCALE 6 2416 #define canIOCTL_SET_TXACK 7 2430 #define canIOCTL_GET_RX_BUFFER_LEVEL 8 2444 #define canIOCTL_GET_TX_BUFFER_LEVEL 9 2455 #define canIOCTL_FLUSH_RX_BUFFER 10 2466 #define canIOCTL_FLUSH_TX_BUFFER 11 2476 #define canIOCTL_GET_TIMER_SCALE 12 2493 #define canIOCTL_SET_TXRQ 13 2502 #define canIOCTL_SET_BYPASS_MODE 15 2509 #define canIOCTL_SET_WAKEUP 16 2520 # define canIOCTL_GET_DRIVERHANDLE 17 2527 # define canIOCTL_MAP_RXQUEUE 18 2534 # define canIOCTL_GET_WAKEUP 19 2547 # define canIOCTL_SET_REPORT_ACCESS_ERRORS 20 2556 # define canIOCTL_GET_REPORT_ACCESS_ERRORS 21 2567 # define canIOCTL_CONNECT_TO_VIRTUAL_BUS 22 2578 # define canIOCTL_DISCONNECT_FROM_VIRTUAL_BUS 23 2589 # define canIOCTL_SET_USER_IOPORT 24 2601 # define canIOCTL_GET_USER_IOPORT 25 2608 # define canIOCTL_SET_BUFFER_WRAPAROUND_MODE 26 2626 # define canIOCTL_SET_RX_QUEUE_SIZE 27 2633 # define canIOCTL_SET_USB_THROTTLE 28 2640 # define canIOCTL_GET_USB_THROTTLE 29 2656 # define canIOCTL_SET_BUSON_TIME_AUTO_RESET 30 2669 # define canIOCTL_GET_TXACK 31 2685 # define canIOCTL_SET_LOCAL_TXECHO 32 2702 # define canIOCTL_SET_ERROR_FRAMES_REPORTING 33 2717 # define canIOCTL_GET_CHANNEL_QUALITY 34 2730 # define canIOCTL_GET_ROUNDTRIP_TIME 35 2740 # define canIOCTL_GET_BUS_TYPE 36 2754 # define canIOCTL_GET_DEVNAME_ASCII 37 2767 # define canIOCTL_GET_TIME_SINCE_LAST_SEEN 38 2782 # define canIOCTL_GET_TREF_LIST 39 2805 # define canIOCTL_TX_INTERVAL 40 2818 # define canIOCTL_SET_BRLIMIT 43 2825 # define canIOCTL_SET_USB_THROTTLE_SCALED 41 2841 # define canIOCTL_SET_THROTTLE_SCALED 41 2848 # define canIOCTL_GET_USB_THROTTLE_SCALED 42 2864 # define canIOCTL_GET_THROTTLE_SCALED 42 2873 # define canIOCTL_RESET_OVERRUN_COUNT 44 2883 # define canIOCTL_LIN_MODE 45 3030 #define canVERSION_CANLIB32_VERSION 0 3042 #define canVERSION_CANLIB32_PRODVER 1 3055 #define canVERSION_CANLIB32_PRODVER32 2 3067 #define canVERSION_CANLIB32_BETA 3 3142 #define canOBJBUF_TYPE_AUTO_RESPONSE 0x01 3143 #define canOBJBUF_TYPE_PERIODIC_TX 0x02 3166 canStatus CANLIBAPI canObjBufFree (const CanHandle hnd, int idx); 3200 unsigned int flags);
3254 unsigned int flags);
3273 # define canOBJBUF_AUTO_RESPONSE_RTR_ONLY 0x01 3298 unsigned int period);
3322 unsigned int count);
3391 unsigned int burstlen);
3461 unsigned long timeout);
3616 #define kvLED_ACTION_ALL_LEDS_ON 0 3617 #define kvLED_ACTION_ALL_LEDS_OFF 1 3618 #define kvLED_ACTION_LED_0_ON 2 3619 #define kvLED_ACTION_LED_0_OFF 3 3620 #define kvLED_ACTION_LED_1_ON 4 3621 #define kvLED_ACTION_LED_1_OFF 5 3622 #define kvLED_ACTION_LED_2_ON 6 3623 #define kvLED_ACTION_LED_2_OFF 7 3624 #define kvLED_ACTION_LED_3_ON 8 3625 #define kvLED_ACTION_LED_3_OFF 9 3626 #define kvLED_ACTION_LED_4_ON 10 3627 #define kvLED_ACTION_LED_4_OFF 11 3628 #define kvLED_ACTION_LED_5_ON 12 3629 #define kvLED_ACTION_LED_5_OFF 13 3630 #define kvLED_ACTION_LED_6_ON 14 3631 #define kvLED_ACTION_LED_6_OFF 15 3632 #define kvLED_ACTION_LED_7_ON 16 3633 #define kvLED_ACTION_LED_7_OFF 17 3634 #define kvLED_ACTION_LED_8_ON 18 3635 #define kvLED_ACTION_LED_8_OFF 19 3636 #define kvLED_ACTION_LED_9_ON 20 3637 #define kvLED_ACTION_LED_9_OFF 21 3638 #define kvLED_ACTION_LED_10_ON 22 3639 #define kvLED_ACTION_LED_10_OFF 23 3640 #define kvLED_ACTION_LED_11_ON 24 3641 #define kvLED_ACTION_LED_11_OFF 25 4015 unsigned int notifyFlags);
4030 #define kvBUSTYPE_NONE 0 4036 #define kvBUSTYPE_PCI 1 4042 #define kvBUSTYPE_PCMCIA 2 4048 #define kvBUSTYPE_USB 3 4054 #define kvBUSTYPE_WLAN 4 4060 #define kvBUSTYPE_PCI_EXPRESS 5 4066 #define kvBUSTYPE_ISA 6 4072 #define kvBUSTYPE_VIRTUAL 7 4078 #define kvBUSTYPE_PC104_PLUS 8 4084 #define kvBUSTYPE_LAN 9 4101 #define kvBUSTYPE_GROUP_VIRTUAL 1 4107 #define kvBUSTYPE_GROUP_LOCAL 2 4113 #define kvBUSTYPE_GROUP_REMOTE 3 4118 #define kvBUSTYPE_GROUP_INTERNAL 4 4222 #define kvENVVAR_TYPE_INT 1 4229 #define kvENVVAR_TYPE_FLOAT 2 4236 #define kvENVVAR_TYPE_STRING 3 4253 #define kvEVENT_TYPE_KEY 1 4291 #define kvSCRIPT_STOP_NORMAL 0 4292 #define kvSCRIPT_STOP_FORCED -9 4316 kvStatus CANLIBAPI kvScriptStop (const CanHandle hnd, int slotNo, int mode); 4629 char *filePathOnPC);
4645 #define kvSCRIPT_REQUEST_TEXT_UNSUBSCRIBE 1 4650 #define kvSCRIPT_REQUEST_TEXT_SUBSCRIBE 2 4655 #define kvSCRIPT_REQUEST_TEXT_ALL_SLOTS 255 4682 unsigned int request);
4710 unsigned long *time,
4711 unsigned int *flags,
4721 #define kvSCRIPT_STATUS_LOADED 1 4722 #define kvSCRIPT_STATUS_RUNNING 2 4743 kvStatus CANLIBAPI kvScriptStatus(const CanHandle hnd, 4801 unsigned int *bufsize);
4828 #define canTXEDATA_FILE_VERSION 1 4845 #define canTXEDATA_COMPILER_VERSION 2 4865 #define canTXEDATA_DATE 3 4877 #define canTXEDATA_DESCRIPTION 4 4892 #define canTXEDATA_SOURCE 5 4903 #define canTXEDATA_SIZE_OF_CODE 6 4914 #define canTXEDATA_IS_ENCRYPTED 7 4944 char *deviceFileName);
4969 char *deviceFileName,
4970 char *hostFileName);
5106 #define kvDEVICE_MODE_INTERFACE 0x00 5112 #define kvDEVICE_MODE_LOGGER 0x01 5231 #define kvIO_INFO_GET_MODULE_TYPE 1 5238 #define kvIO_INFO_GET_DIRECTION 2 5245 #define kvIO_INFO_GET_PIN_TYPE 4 5252 #define kvIO_INFO_GET_NUMBER_OF_BITS 5 5261 #define kvIO_INFO_GET_RANGE_MIN 6 5270 #define kvIO_INFO_GET_RANGE_MAX 7 5279 #define kvIO_INFO_GET_DI_LOW_HIGH_FILTER 8 5288 #define kvIO_INFO_GET_DI_HIGH_LOW_FILTER 9 5297 #define kvIO_INFO_GET_AI_LP_FILTER_ORDER 10 5307 #define kvIO_INFO_GET_AI_HYSTERESIS 11 5314 #define kvIO_INFO_GET_MODULE_NUMBER 14 5321 #define kvIO_INFO_GET_SERIAL_NUMBER 15 5330 #define kvIO_INFO_GET_FW_VERSION 16 5352 #define kvIO_INFO_SET_DI_LOW_HIGH_FILTER 8 5361 #define kvIO_INFO_SET_DI_HIGH_LOW_FILTER 9 5370 #define kvIO_INFO_SET_AI_LP_FILTER_ORDER 10 5380 #define kvIO_INFO_SET_AI_HYSTERESIS 11 5398 #define kvIO_MODULE_TYPE_DIGITAL 1 5403 #define kvIO_MODULE_TYPE_ANALOG 2 5408 #define kvIO_MODULE_TYPE_RELAY 3 5413 #define kvIO_MODULE_TYPE_INTERNAL 4 5429 #define kvIO_PIN_TYPE_DIGITAL 1 5434 #define kvIO_PIN_TYPE_ANALOG 2 5439 #define kvIO_PIN_TYPE_RELAY 3 5455 #define kvIO_PIN_DIRECTION_IN 4 5460 #define kvIO_PIN_DIRECTION_OUT 8 Definitions which are retained for compatibility.
unsigned char DI10
Definition: canlib.h:5739
kvStatus kvScriptEnvvarGetFloat(kvEnvHandle eHnd, float *val)
unsigned long stdRemote
Number of received standard (11-bit identifiers) remote frames.
Definition: canlib.h:3724
unsigned char DI5
Definition: canlib.h:5734
canStatus canGetBusParamsFd(const CanHandle hnd, long *freq_brs, unsigned int *tseg1_brs, unsigned int *tseg2_brs, unsigned int *sjw_brs)
canStatus canWriteSync(const CanHandle hnd, unsigned long timeout)
unsigned char busStatus
Definition: canlib.h:178
unsigned char DI12
Definition: canlib.h:5741
unsigned char RO3
Definition: canlib.h:5771
canStatus canGetBusOutputControl(const CanHandle hnd, unsigned int *drivertype)
kvStatus kvTimeDomainDelete(kvTimeDomain domain)
float AI2
Definition: canlib.h:5800
unsigned char DI8
Definition: canlib.h:5737
canStatus canGetDriverMode(const CanHandle hnd, int *lineMode, int *resNet)
struct canNotifyData::@0::@2 rx
unsigned char DO15
Definition: canlib.h:5728
void canInitializeLibrary(void)
canStatus kvIoPinGetInfo(const CanHandle hnd, unsigned int pin, int item, void *buffer, const unsigned int bufsize)
unsigned char DO8
Definition: canlib.h:5721
canStatus canReadStatus(const CanHandle hnd, unsigned long *const flags)
kvStatus kvTimeDomainCreate(kvTimeDomain *domain)
unsigned char DI9
Definition: canlib.h:5738
unsigned int portNo
Port number used in e.g. canIOCTL_SET_USER_IOPORT.
Definition: canlib.h:2888
int64_t kvEnvHandle
Definition: canlib.h:4262
int nNonMagiSyncCards
number of non MagiSync™ interfaces
Definition: canlib.h:3803
unsigned char RO2
Definition: canlib.h:5770
canStatus kvIoGetNumberOfPins(const CanHandle hnd, unsigned int *pinCount)
kvStatus kvScriptEnvvarSetData(kvEnvHandle eHnd, void *buf, int start_index, int data_len)
canStatus canRequestBusStatistics(const CanHandle hnd)
kvStatus kvDeviceSetMode(const CanHandle hnd, int mode)
void * kvTimeDomain
Definition: canlib.h:3791
unsigned char DI7
Definition: canlib.h:5736
unsigned char DO
Definition: canlib.h:5756
unsigned char rxErrorCounter
Definition: canlib.h:180
unsigned char DO2
Definition: canlib.h:5715
unsigned long extRemote
Number of received extended (29-bit identifiers) remote frames.
Definition: canlib.h:3726
canStatus canClose(const CanHandle hnd)
unsigned char RO5
Definition: canlib.h:5773
struct canNotifyData canNotifyData
kvStatus kvFileGetCount(const CanHandle hnd, int *count)
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)
int type
Definition: canlib.h:5794
canStatus canObjBufSetMsgCount(const CanHandle hnd, int idx, unsigned int count)
canStatus kvFlashLeds(const CanHandle hnd, int action, int timeout)
canStatus canSetAcceptanceFilter(const CanHandle hnd, unsigned int code, unsigned int mask, int is_extended)
unsigned char DI13
Definition: canlib.h:5742
int canHandle
Definition: canlib.h:155
unsigned char DI14
Definition: canlib.h:5743
unsigned char DI1
Definition: canlib.h:5777
canStatus canObjBufDisable(const CanHandle hnd, int idx)
void * tag
Definition: canlib.h:163
unsigned char RO4
Definition: canlib.h:5772
canStatus canGetBusParams(const CanHandle hnd, long *freq, unsigned int *tseg1, unsigned int *tseg2, unsigned int *sjw, unsigned int *noSamp, unsigned int *syncmode)
float AI3
Definition: canlib.h:5801
kvStatus kvScriptEnvvarGetInt(kvEnvHandle eHnd, int *val)
Definitions for the CANLIB API.
kvStatus kvScriptGetMaxEnvvarSize(int hnd, int *envvarSize)
Definition: canlib.h:5767
Definition: canlib.h:5712
canStatus kvIoPinSetInfo(const CanHandle hnd, unsigned int pin, int item, const void *buffer, const unsigned int bufsize)
Definition: canlib.h:5793
canStatus canSetBusOutputControl(const CanHandle hnd, const unsigned int drivertype)
int type
Definition: canlib.h:5768
int type
Definition: canlib.h:5713
int eventType
Definition: canlib.h:164
float AO3
Definition: canlib.h:5797
canStatus kvIoPinSetRelay(const CanHandle hnd, unsigned int pin, unsigned int value)
canStatus kvIoPinGetDigital(const CanHandle hnd, unsigned int pin, unsigned int *value)
kvStatus kvFileGetSystemData(const CanHandle hnd, int itemCode, int *result)
int type
Definition: canlib.h:5755
kvStatus kvScriptEnvvarSetInt(kvEnvHandle eHnd, int val)
canStatus canObjBufSendBurst(const CanHandle hnd, int idx, unsigned int burstlen)
canStatus canGetRawHandle(const CanHandle hnd, void *pvFd)
canStatus kvIoPinGetOutputAnalog(const CanHandle hnd, unsigned int pin, float *value)
unsigned int canGetVersionEx(unsigned int itemCode)
unsigned char RO8
Definition: canlib.h:5776
canStatus canBusOn(const CanHandle hnd)
Definition: canlib.h:5754
long id
Definition: canlib.h:170
unsigned char DI
Definition: canlib.h:5757
canStatus canWriteWait(const CanHandle hnd, long id, void *msg, unsigned int dlc, unsigned int flag, unsigned long timeout)
canStatus kvIoSetModulePins(const CanHandle hnd, unsigned int module, const void *buffer, const unsigned int bufsize)
kvStatus kvReadDeviceCustomerData(const CanHandle hnd, int userNumber, int itemNumber, void *data, size_t bufsiz)
canStatus canWrite(const CanHandle hnd, long id, void *msg, unsigned int dlc, unsigned int flag)
unsigned char DI3
Definition: canlib.h:5779
canStatus canObjBufWrite(const CanHandle hnd, int idx, int id, void *msg, unsigned int dlc, unsigned int flags)
struct kvTimeDomainData_s kvTimeDomainData
kvStatus kvScriptTxeGetData(const char *filePathOnPC, int item, void *buffer, unsigned int *bufsize)
kvStatus kvScriptEnvvarClose(kvEnvHandle eHnd)
canStatus canFlushReceiveQueue(const CanHandle hnd)
canStatus kvIoGetModulePins(const CanHandle hnd, unsigned int module, void *buffer, const unsigned int bufsize)
kvStatus kvScriptLoadFile(const CanHandle hnd, int slotNo, char *filePathOnPC)
float AI4
Definition: canlib.h:5802
unsigned int portValue
Port value used in e.g. canIOCTL_SET_USER_IOPORT.
Definition: canlib.h:2889
unsigned short canGetVersion(void)
unsigned char DI1
Definition: canlib.h:5730
unsigned char DI2
Definition: canlib.h:5731
unsigned long errFrame
Number of error frames.
Definition: canlib.h:3727
canStatus kvIoPinSetAnalog(const CanHandle hnd, unsigned int pin, float value)
canStatus canReadWait(const CanHandle hnd, long *id, void *msg, unsigned int *dlc, unsigned int *flag, unsigned long *time, unsigned long timeout)
canStatus canReadSyncSpecific(const CanHandle hnd, long id, unsigned long timeout)
float AO4
Definition: canlib.h:5798
canStatus canFlushTransmitQueue(const CanHandle hnd)
kvStatus kvReadTimer64(const CanHandle hnd, uint64_t *time)
unsigned char DO10
Definition: canlib.h:5723
kvStatus kvFileGetName(const CanHandle hnd, int fileNo, char *name, int namelen)
kvStatus kvTimeDomainResetTime(kvTimeDomain domain)
unsigned char DO3
Definition: canlib.h:5716
kvStatus kvFileDelete(const CanHandle hnd, char *deviceFileName)
canStatus canAccept(const CanHandle hnd, const long envelope, const unsigned int flag)
CanHandle canOpenChannel(int channel, int flags)
kvStatus kvFileDiskFormat(const CanHandle hnd)
kvStatus kvScriptEnvvarSetFloat(kvEnvHandle eHnd, float val)
unsigned long extData
Number of received extended (29-bit identifiers) data frames.
Definition: canlib.h:3725
float AO1
Definition: canlib.h:5795
kvStatus kvReadTimer(const CanHandle hnd, unsigned int *time)
canStatus canObjBufEnable(const CanHandle hnd, int idx)
kvStatus kvScriptRequestText(const CanHandle hnd, unsigned int slot, unsigned int request)
kvStatus kvSetNotifyCallback(const CanHandle hnd, kvCallback_t callback, void *context, unsigned int notifyFlags)
unsigned char DO16
Definition: canlib.h:5729
kvStatus kvScriptSendEvent(const CanHandle hnd, int slotNo, int eventType, int eventNo, unsigned int data)
kvStatus kvTimeDomainGetData(kvTimeDomain domain, kvTimeDomainData *data, size_t bufsiz)
kvStatus kvScriptStart(const CanHandle hnd, int slotNo)
kvStatus kvTimeDomainRemoveHandle(kvTimeDomain domain, const CanHandle hnd)
unsigned char DO4
Definition: canlib.h:5717
unsigned char DI8
Definition: canlib.h:5784
unsigned char DI6
Definition: canlib.h:5735
canStatus canSetNotify(const CanHandle hnd, void(*callback)(canNotifyData *), unsigned int notifyFlags, void *tag)
unsigned char txErrorCounter
Definition: canlib.h:179
canStatus kvIoPinGetAnalog(const CanHandle hnd, unsigned int pin, float *value)
unsigned char DO1
Definition: canlib.h:5714
canStatus canObjBufSetFlags(const CanHandle hnd, int idx, unsigned int flags)
kvEnvHandle kvScriptEnvvarOpen(const CanHandle hnd, char *envvarName, int *envvarType, int *envvarSize)
unsigned char RO7
Definition: canlib.h:5775
unsigned char RO1
Definition: canlib.h:5769
unsigned char DI16
Definition: canlib.h:5745
unsigned char DI5
Definition: canlib.h:5781
void(* kvCallback_t)(CanHandle hnd, void *context, unsigned int notifyEvent)
Definition: canlib.h:3977
canStatus canSetBusParamsC200(const CanHandle hnd, unsigned char btr0, unsigned char btr1)
int nMagiSyncGroups
number of MagiSync™ groups
Definition: canlib.h:3801
canStatus canReadSpecificSkip(const CanHandle hnd, long id, void *msg, unsigned int *dlc, unsigned int *flag, unsigned long *time)
kvStatus kvScriptGetText(const CanHandle hnd, int *slot, unsigned long *time, unsigned int *flags, char *buf, size_t bufsize)
struct canBusStatistics_s canBusStatistics
canStatus canSetBusParamsFd(const CanHandle hnd, long freq_brs, unsigned int tseg1_brs, unsigned int tseg2_brs, unsigned int sjw_brs)
canStatus
Definition: canstat.h:84
kvStatus kvFileCopyFromDevice(const CanHandle hnd, char *deviceFileName, char *hostFileName)
unsigned char DI11
Definition: canlib.h:5740
kvStatus kvDeviceGetMode(const CanHandle hnd, int *result)
canStatus kvIoPinGetOutputDigital(const CanHandle hnd, unsigned int pin, unsigned int *value)
unsigned char RO6
Definition: canlib.h:5774
canStatus canReadErrorCounters(const CanHandle hnd, unsigned int *txErr, unsigned int *rxErr, unsigned int *ovErr)
canStatus kvIoConfirmConfig(const CanHandle hnd)
unsigned long stdData
Number of received standard (11-bit identifiers) data frames.
Definition: canlib.h:3723
canStatus canSetDriverMode(const CanHandle hnd, int lineMode, int resNet)
unsigned long overruns
The number of overruns detected by the hardware, firmware or driver.
Definition: canlib.h:3734
kvStatus kvTimeDomainAddHandle(kvTimeDomain domain, const CanHandle hnd)
Definition: canlib.h:3800
unsigned char DI3
Definition: canlib.h:5732
canStatus canReadTimer(const CanHandle hnd, unsigned long *time)
unsigned char DO7
Definition: canlib.h:5720
canStatus kvIoPinSetDigital(const CanHandle hnd, unsigned int pin, unsigned int value)
unsigned char DI4
Definition: canlib.h:5733
canStatus canGetBusStatistics(const CanHandle hnd, canBusStatistics *stat, size_t bufsiz)
canStatus canBusOff(const CanHandle hnd)
canStatus canReadSpecific(const CanHandle hnd, long id, void *msg, unsigned int *dlc, unsigned int *flag, unsigned long *time)
float AI1
Definition: canlib.h:5799
canStatus canGetErrorText(canStatus err, char *buf, unsigned int bufsiz)
unsigned long busLoad
Definition: canlib.h:3733
unsigned char DI7
Definition: canlib.h:5783
unsigned char DO13
Definition: canlib.h:5726
canStatus canRequestChipStatus(const CanHandle hnd)
Definition: canlib.h:3722
canStatus canEnumHardwareEx(int *channelCount)
unsigned char DI4
Definition: canlib.h:5780
kvStatus kvScriptLoadFileOnDevice(const CanHandle hnd, int slotNo, char *localFile)
canStatus canUnloadLibrary(void)
canStatus kvIoPinGetOutputRelay(const CanHandle hnd, unsigned int pin, unsigned int *value)
struct canNotifyData::@0::@1 busErr
canHandle CanHandle
Definition: canlib.h:160
canStatus kvStatus
Definition: canlib.h:3794
Definition: canlib.h:2887
union canNotifyData::@0 info
canStatus canResetBus(const CanHandle hnd)
canStatus canObjBufAllocate(const CanHandle hnd, int type)
unsigned char DI2
Definition: canlib.h:5778
int nNonMagiSyncedMembers
number of non MagiSync™ members
Definition: canlib.h:3804
unsigned char DO6
Definition: canlib.h:5719
canStatus canGetNumberOfChannels(int *channelCount)
canStatus canGetHandleData(const CanHandle hnd, int item, void *buffer, size_t bufsize)
kvStatus kvScriptEnvvarGetData(kvEnvHandle eHnd, void *buf, int start_index, int data_len)
unsigned char DO9
Definition: canlib.h:5722
unsigned char DO14
Definition: canlib.h:5727
unsigned long time
Definition: canlib.h:167
unsigned char DO5
Definition: canlib.h:5718
kvStatus kvFileCopyToDevice(const CanHandle hnd, char *hostFileName, char *deviceFileName)
canStatus canReadSync(const CanHandle hnd, unsigned long timeout)
float AO2
Definition: canlib.h:5796
kvStatus kvScriptUnload(const CanHandle hnd, int slotNo)
canStatus canObjBufSetPeriod(const CanHandle hnd, int idx, unsigned int period)
unsigned char DI6
Definition: canlib.h:5782
canStatus canObjBufFreeAll(const CanHandle hnd)
canStatus canIoCtl(const CanHandle hnd, unsigned int func, void *buf, unsigned int buflen)
unsigned char DI15
Definition: canlib.h:5744
struct canNotifyData::@0::@4 status
canStatus canSetBusParams(const CanHandle hnd, long freq, unsigned int tseg1, unsigned int tseg2, unsigned int sjw, unsigned int noSamp, unsigned int syncmode)
canStatus canObjBufSetFilter(const CanHandle hnd, int idx, unsigned int code, unsigned int mask)
struct canNotifyData::@0::@3 tx
unsigned char DO11
Definition: canlib.h:5724
kvStatus kvGetSupportedInterfaceInfo(int index, char *hwName, size_t nameLen, int *hwType, int *hwBusType)
canStatus canRead(const CanHandle hnd, long *id, void *msg, unsigned int *dlc, unsigned int *flag, unsigned long *time)
int nMagiSyncedMembers
number of MagiSync™ members
Definition: canlib.h:3802
unsigned char DO12
Definition: canlib.h:5725