158 # define canINVALID_HANDLE (-1) 198 #define canWANT_EXCLUSIVE 0x0008 199 #define canWANT_EXTENDED 0x0010 200 #define canWANT_VIRTUAL 0x0020 215 #define canOPEN_EXCLUSIVE 0x0008 228 #define canOPEN_REQUIRE_EXTENDED 0x0010 237 # define canOPEN_ACCEPT_VIRTUAL 0x0020 247 # define canOPEN_OVERRIDE_EXCLUSIVE 0x0040 265 # define canOPEN_REQUIRE_INIT_ACCESS 0x0080 278 # define canOPEN_NO_INIT_ACCESS 0x0100 291 # define canOPEN_ACCEPT_LARGE_DLC 0x0200 // DLC can be greater than 8 299 # define canOPEN_CAN_FD 0x0400 314 # define canOPEN_CAN_FD_NONISO 0x0800 320 # define canOPEN_INTERNAL_L 0x1000 333 #define canFILTER_ACCEPT 1 334 #define canFILTER_REJECT 2 336 #define canFILTER_SET_CODE_STD 3 338 #define canFILTER_SET_MASK_STD 4 340 #define canFILTER_SET_CODE_EXT 5 342 #define canFILTER_SET_MASK_EXT 6 344 #define canFILTER_NULL_MASK 0L 361 #define canDRIVER_NORMAL 4 369 #define canDRIVER_SILENT 1 374 #define canDRIVER_SELFRECEPTION 8 379 #define canDRIVER_OFF 0 403 #define canBITRATE_1M (-1) 405 #define canBITRATE_500K (-2) 407 #define canBITRATE_250K (-3) 409 #define canBITRATE_125K (-4) 411 #define canBITRATE_100K (-5) 413 #define canBITRATE_62K (-6) 415 #define canBITRATE_50K (-7) 417 #define canBITRATE_83K (-8) 419 #define canBITRATE_10K (-9) 425 #define canFD_BITRATE_500K_80P (-1000) 429 #define canFD_BITRATE_1M_80P (-1001) 433 #define canFD_BITRATE_2M_80P (-1002) 437 #define canFD_BITRATE_4M_80P (-1003) 441 #define canFD_BITRATE_8M_60P (-1004) 446 #define BAUD_500K (-2) 448 #define BAUD_250K (-3) 450 #define BAUD_125K (-4) 452 #define BAUD_100K (-5) 454 #define BAUD_62K (-6) 456 #define BAUD_50K (-7) 458 #define BAUD_83K (-8) 651 unsigned int syncmode);
716 unsigned int tseg1_brs,
717 unsigned int tseg2_brs,
718 unsigned int sjw_brs);
787 unsigned int *noSamp,
788 unsigned int *syncmode);
836 unsigned int *tseg1_brs,
837 unsigned int *tseg2_brs,
838 unsigned int *sjw_brs);
889 const unsigned int drivertype);
926 unsigned int *drivertype);
972 const unsigned int flag);
998 unsigned long *
const flags);
1037 unsigned int *txErr,
1038 unsigned int *rxErr,
1039 unsigned int *ovErr);
1173 unsigned long *
time);
1229 unsigned long *time,
1230 unsigned long timeout);
1284 unsigned int * dlc,
unsigned int * flag,
1285 unsigned long * time);
1352 unsigned long timeout);
1403 unsigned int * flag,
1404 unsigned long * time);
1428 unsigned int notifyFlags,
1481 unsigned int *
const tseg1,
1482 unsigned int *
const tseg2,
1483 unsigned int *
const sjw,
1484 unsigned int *
const nosamp,
1485 unsigned int *
const syncMode);
1573 unsigned int buflen);
1665 #define kvREMOTE_TYPE_NOT_REMOTE 0 1666 #define kvREMOTE_TYPE_WLAN 1 1667 #define kvREMOTE_TYPE_LAN 2 1677 #define kvLOGGER_TYPE_NOT_A_LOGGER 0 1678 #define kvLOGGER_TYPE_V1 1 1679 #define kvLOGGER_TYPE_V2 2 1713 canStatus CANLIBAPI canGetChannelData (int channel, 1736 #define canCHANNELDATA_CHANNEL_CAP 1 1747 #define canCHANNELDATA_TRANS_CAP 2 1757 #define canCHANNELDATA_CHANNEL_FLAGS 3 // available, etc 1767 #define canCHANNELDATA_CARD_TYPE 4 1778 #define canCHANNELDATA_CARD_NUMBER 5 1787 #define canCHANNELDATA_CHAN_NO_ON_CARD 6 1798 #define canCHANNELDATA_CARD_SERIAL_NO 7 1809 #define canCHANNELDATA_TRANS_SERIAL_NO 8 1821 #define canCHANNELDATA_CARD_FIRMWARE_REV 9 1833 #define canCHANNELDATA_CARD_HARDWARE_REV 10 1844 #define canCHANNELDATA_CARD_UPC_NO 11 1856 #define canCHANNELDATA_TRANS_UPC_NO 12 1875 #define canCHANNELDATA_CHANNEL_NAME 13 1892 # define canCHANNELDATA_DLL_FILE_VERSION 14 1909 # define canCHANNELDATA_DLL_PRODUCT_VERSION 15 1926 # define canCHANNELDATA_DLL_FILETYPE 16 1936 # define canCHANNELDATA_TRANS_TYPE 17 1961 # define canCHANNELDATA_DEVICE_PHYSICAL_POSITION 18 1975 # define canCHANNELDATA_UI_NUMBER 19 2000 # define canCHANNELDATA_TIMESYNC_ENABLED 20 2016 # define canCHANNELDATA_DRIVER_FILE_VERSION 21 2032 # define canCHANNELDATA_DRIVER_PRODUCT_VERSION 22 2042 # define canCHANNELDATA_MFGNAME_UNICODE 23 2051 # define canCHANNELDATA_MFGNAME_ASCII 24 2061 # define canCHANNELDATA_DEVDESCR_UNICODE 25 2070 # define canCHANNELDATA_DEVDESCR_ASCII 26 2082 # define canCHANNELDATA_DRIVER_NAME 27 2096 # define canCHANNELDATA_CHANNEL_QUALITY 28 2106 # define canCHANNELDATA_ROUNDTRIP_TIME 29 2116 # define canCHANNELDATA_BUS_TYPE 30 2130 # define canCHANNELDATA_DEVNAME_ASCII 31 2142 # define canCHANNELDATA_TIME_SINCE_LAST_SEEN 32 2153 # define canCHANNELDATA_REMOTE_OPERATIONAL_MODE 33 2163 # define canCHANNELDATA_REMOTE_PROFILE_NAME 34 2173 # define canCHANNELDATA_REMOTE_HOST_NAME 35 2183 # define canCHANNELDATA_REMOTE_MAC 36 2193 # define canCHANNELDATA_MAX_BITRATE 37 2205 # define canCHANNELDATA_CHANNEL_CAP_MASK 38 2218 #define canCHANNELDATA_CUST_CHANNEL_NAME 39 2229 # define canCHANNELDATA_IS_REMOTE 40 2239 # define canCHANNELDATA_REMOTE_TYPE 41 2249 # define canCHANNELDATA_LOGGER_TYPE 42 2260 # define canCHANNELDATA_HW_STATUS 43 2271 # define canCHANNELDATA_FEATURE_EAN 44 2279 #define canCHANNELDATA_BUS_PARAM_LIMITS 45 2287 #define canCHANNELDATA_CLOCK_INFO 46 2309 #define canCHANNELDATA_CHANNEL_CAP_EX 47 2356 #define canCHANNEL_IS_EXCLUSIVE 0x0001 2359 #define canCHANNEL_IS_OPEN 0x0002 2363 #define canCHANNEL_IS_CANFD 0x0004 2369 #define canCHANNEL_IS_LIN 0x0010 2373 #define canCHANNEL_IS_LIN_MASTER 0x0020 2377 #define canCHANNEL_IS_LIN_SLAVE 0x0040 2398 #define canHWTYPE_NONE 0 2399 #define canHWTYPE_VIRTUAL 1 2400 #define canHWTYPE_LAPCAN 2 2401 #define canHWTYPE_CANPARI 3 2402 #define canHWTYPE_PCCAN 8 2403 #define canHWTYPE_PCICAN 9 2404 #define canHWTYPE_USBCAN 11 2405 #define canHWTYPE_PCICAN_II 40 2406 #define canHWTYPE_USBCAN_II 42 2407 #define canHWTYPE_SIMULATED 44 2408 #define canHWTYPE_ACQUISITOR 46 2409 #define canHWTYPE_LEAF 48 2410 #define canHWTYPE_PC104_PLUS 50 2411 #define canHWTYPE_PCICANX_II 52 2412 #define canHWTYPE_MEMORATOR_II 54 2413 #define canHWTYPE_MEMORATOR_PRO 54 2414 #define canHWTYPE_USBCAN_PRO 56 2415 #define canHWTYPE_IRIS 58 2416 #define canHWTYPE_BLACKBIRD 58 2417 #define canHWTYPE_MEMORATOR_LIGHT 60 2418 #define canHWTYPE_MINIHYDRA 62 2419 #define canHWTYPE_EAGLE 62 2420 #define canHWTYPE_BAGEL 64 2421 #define canHWTYPE_BLACKBIRD_V2 64 2422 #define canHWTYPE_MINIPCIE 66 2423 #define canHWTYPE_USBCAN_KLINE 68 2424 #define canHWTYPE_ETHERCAN 70 2425 #define canHWTYPE_USBCAN_LIGHT 72 2426 #define canHWTYPE_USBCAN_PRO2 74 2427 #define canHWTYPE_PCIE_V2 76 2428 #define canHWTYPE_MEMORATOR_PRO2 78 2429 #define canHWTYPE_LEAF2 80 2430 #define canHWTYPE_MEMORATOR_V2 82 2431 #define canHWTYPE_CANLINHYBRID 84 2432 #define canHWTYPE_DINRAIL 86 2433 #define canHWTYPE_U100 88 2444 #define canCHANNEL_CAP_EXTENDED_CAN 0x00000001L 2445 #define canCHANNEL_CAP_BUS_STATISTICS 0x00000002L 2446 #define canCHANNEL_CAP_ERROR_COUNTERS 0x00000004L 2447 #define canCHANNEL_CAP_RESERVED_2 0x00000008L 2448 #define canCHANNEL_CAP_GENERATE_ERROR 0x00000010L 2449 #define canCHANNEL_CAP_GENERATE_OVERLOAD 0x00000020L 2450 #define canCHANNEL_CAP_TXREQUEST 0x00000040L 2451 #define canCHANNEL_CAP_TXACKNOWLEDGE 0x00000080L 2452 #define canCHANNEL_CAP_VIRTUAL 0x00010000L 2453 #define canCHANNEL_CAP_SIMULATED 0x00020000L 2454 #define canCHANNEL_CAP_RESERVED_1 0x00040000L 2455 #define canCHANNEL_CAP_CAN_FD 0x00080000L 2456 #define canCHANNEL_CAP_CAN_FD_NONISO 0x00100000L 2457 #define canCHANNEL_CAP_SILENT_MODE 0x00200000L 2458 #define canCHANNEL_CAP_SINGLE_SHOT 0x00400000L 2459 #define canCHANNEL_CAP_LOGGER 0x00800000L 2460 #define canCHANNEL_CAP_REMOTE_ACCESS 0x01000000L 2461 #define canCHANNEL_CAP_SCRIPT 0x02000000L 2462 #define canCHANNEL_CAP_LIN_HYBRID 0x04000000L 2463 #define canCHANNEL_CAP_IO_API 0x08000000L 2464 #define canCHANNEL_CAP_DIAGNOSTICS 0x10000000L 2472 #define canCHANNEL_CAP_EX_BUSPARAMS_TQ 0x0000000000000001L 2486 #define canCHANNEL_OPMODE_NONE 1 2491 #define canCHANNEL_OPMODE_INFRASTRUCTURE 2 2496 #define canCHANNEL_OPMODE_RESERVED 3 2501 #define canCHANNEL_OPMODE_ADHOC 4 2512 #define canDRIVER_CAP_HIGHSPEED 0x00000001L 2539 #define canIOCTL_PREFER_EXT 1 2553 #define canIOCTL_PREFER_STD 2 2571 #define canIOCTL_CLEAR_ERROR_COUNTERS 5 2587 #define canIOCTL_SET_TIMER_SCALE 6 2608 #define canIOCTL_SET_TXACK 7 2622 #define canIOCTL_GET_RX_BUFFER_LEVEL 8 2636 #define canIOCTL_GET_TX_BUFFER_LEVEL 9 2647 #define canIOCTL_FLUSH_RX_BUFFER 10 2658 #define canIOCTL_FLUSH_TX_BUFFER 11 2668 #define canIOCTL_GET_TIMER_SCALE 12 2685 #define canIOCTL_SET_TXRQ 13 2694 #define canIOCTL_SET_BYPASS_MODE 15 2701 #define canIOCTL_SET_WAKEUP 16 2712 # define canIOCTL_GET_DRIVERHANDLE 17 2719 # define canIOCTL_MAP_RXQUEUE 18 2726 # define canIOCTL_GET_WAKEUP 19 2739 # define canIOCTL_SET_REPORT_ACCESS_ERRORS 20 2748 # define canIOCTL_GET_REPORT_ACCESS_ERRORS 21 2759 # define canIOCTL_CONNECT_TO_VIRTUAL_BUS 22 2770 # define canIOCTL_DISCONNECT_FROM_VIRTUAL_BUS 23 2781 # define canIOCTL_SET_USER_IOPORT 24 2793 # define canIOCTL_GET_USER_IOPORT 25 2800 # define canIOCTL_SET_BUFFER_WRAPAROUND_MODE 26 2818 # define canIOCTL_SET_RX_QUEUE_SIZE 27 2825 # define canIOCTL_SET_USB_THROTTLE 28 2832 # define canIOCTL_GET_USB_THROTTLE 29 2848 # define canIOCTL_SET_BUSON_TIME_AUTO_RESET 30 2861 # define canIOCTL_GET_TXACK 31 2877 # define canIOCTL_SET_LOCAL_TXECHO 32 2894 # define canIOCTL_SET_ERROR_FRAMES_REPORTING 33 2909 # define canIOCTL_GET_CHANNEL_QUALITY 34 2922 # define canIOCTL_GET_ROUNDTRIP_TIME 35 2932 # define canIOCTL_GET_BUS_TYPE 36 2946 # define canIOCTL_GET_DEVNAME_ASCII 37 2959 # define canIOCTL_GET_TIME_SINCE_LAST_SEEN 38 2974 # define canIOCTL_GET_TREF_LIST 39 2997 # define canIOCTL_TX_INTERVAL 40 3010 # define canIOCTL_SET_BRLIMIT 43 3017 # define canIOCTL_SET_USB_THROTTLE_SCALED 41 3033 # define canIOCTL_SET_THROTTLE_SCALED 41 3040 # define canIOCTL_GET_USB_THROTTLE_SCALED 42 3056 # define canIOCTL_GET_THROTTLE_SCALED 42 3065 # define canIOCTL_RESET_OVERRUN_COUNT 44 3075 # define canIOCTL_LIN_MODE 45 3223 #define canVERSION_CANLIB32_VERSION 0 3235 #define canVERSION_CANLIB32_PRODVER 1 3248 #define canVERSION_CANLIB32_PRODVER32 2 3260 #define canVERSION_CANLIB32_BETA 3 3335 #define canOBJBUF_TYPE_AUTO_RESPONSE 0x01 3336 #define canOBJBUF_TYPE_PERIODIC_TX 0x02 3359 canStatus CANLIBAPI canObjBufFree (const CanHandle hnd, int idx); 3393 unsigned int flags);
3447 unsigned int flags);
3466 # define canOBJBUF_AUTO_RESPONSE_RTR_ONLY 0x01 3491 unsigned int period);
3515 unsigned int count);
3584 unsigned int burstlen);
3654 unsigned long timeout);
3809 #define kvLED_ACTION_ALL_LEDS_ON 0 3810 #define kvLED_ACTION_ALL_LEDS_OFF 1 3811 #define kvLED_ACTION_LED_0_ON 2 3812 #define kvLED_ACTION_LED_0_OFF 3 3813 #define kvLED_ACTION_LED_1_ON 4 3814 #define kvLED_ACTION_LED_1_OFF 5 3815 #define kvLED_ACTION_LED_2_ON 6 3816 #define kvLED_ACTION_LED_2_OFF 7 3817 #define kvLED_ACTION_LED_3_ON 8 3818 #define kvLED_ACTION_LED_3_OFF 9 3819 #define kvLED_ACTION_LED_4_ON 10 3820 #define kvLED_ACTION_LED_4_OFF 11 3821 #define kvLED_ACTION_LED_5_ON 12 3822 #define kvLED_ACTION_LED_5_OFF 13 3823 #define kvLED_ACTION_LED_6_ON 14 3824 #define kvLED_ACTION_LED_6_OFF 15 3825 #define kvLED_ACTION_LED_7_ON 16 3826 #define kvLED_ACTION_LED_7_OFF 17 3827 #define kvLED_ACTION_LED_8_ON 18 3828 #define kvLED_ACTION_LED_8_OFF 19 3829 #define kvLED_ACTION_LED_9_ON 20 3830 #define kvLED_ACTION_LED_9_OFF 21 3831 #define kvLED_ACTION_LED_10_ON 22 3832 #define kvLED_ACTION_LED_10_OFF 23 3833 #define kvLED_ACTION_LED_11_ON 24 3834 #define kvLED_ACTION_LED_11_OFF 25 4208 unsigned int notifyFlags);
4223 #define kvBUSTYPE_NONE 0 4229 #define kvBUSTYPE_PCI 1 4235 #define kvBUSTYPE_PCMCIA 2 4241 #define kvBUSTYPE_USB 3 4247 #define kvBUSTYPE_WLAN 4 4253 #define kvBUSTYPE_PCI_EXPRESS 5 4259 #define kvBUSTYPE_ISA 6 4265 #define kvBUSTYPE_VIRTUAL 7 4271 #define kvBUSTYPE_PC104_PLUS 8 4277 #define kvBUSTYPE_LAN 9 4294 #define kvBUSTYPE_GROUP_VIRTUAL 1 4300 #define kvBUSTYPE_GROUP_LOCAL 2 4306 #define kvBUSTYPE_GROUP_REMOTE 3 4311 #define kvBUSTYPE_GROUP_INTERNAL 4 4415 #define kvENVVAR_TYPE_INT 1 4422 #define kvENVVAR_TYPE_FLOAT 2 4429 #define kvENVVAR_TYPE_STRING 3 4446 #define kvEVENT_TYPE_KEY 1 4484 #define kvSCRIPT_STOP_NORMAL 0 4485 #define kvSCRIPT_STOP_FORCED -9 4509 kvStatus CANLIBAPI kvScriptStop (const CanHandle hnd, int slotNo, int mode); 4587 const char* envvarName,
4822 char *filePathOnPC);
4838 #define kvSCRIPT_REQUEST_TEXT_UNSUBSCRIBE 1 4843 #define kvSCRIPT_REQUEST_TEXT_SUBSCRIBE 2 4848 #define kvSCRIPT_REQUEST_TEXT_ALL_SLOTS 255 4875 unsigned int request);
4903 unsigned long *time,
4904 unsigned int *flags,
4914 #define kvSCRIPT_STATUS_LOADED 1 4915 #define kvSCRIPT_STATUS_RUNNING 2 4936 kvStatus CANLIBAPI kvScriptStatus(const CanHandle hnd, 4994 unsigned int *bufsize);
5021 #define canTXEDATA_FILE_VERSION 1 5038 #define canTXEDATA_COMPILER_VERSION 2 5058 #define canTXEDATA_DATE 3 5070 #define canTXEDATA_DESCRIPTION 4 5085 #define canTXEDATA_SOURCE 5 5096 #define canTXEDATA_SIZE_OF_CODE 6 5107 #define canTXEDATA_IS_ENCRYPTED 7 5137 char *deviceFileName);
5162 char *deviceFileName,
5163 char *hostFileName);
5299 #define kvDEVICE_MODE_INTERFACE 0x00 5305 #define kvDEVICE_MODE_LOGGER 0x01 5424 #define kvIO_INFO_GET_MODULE_TYPE 1 5431 #define kvIO_INFO_GET_DIRECTION 2 5438 #define kvIO_INFO_GET_PIN_TYPE 4 5445 #define kvIO_INFO_GET_NUMBER_OF_BITS 5 5454 #define kvIO_INFO_GET_RANGE_MIN 6 5463 #define kvIO_INFO_GET_RANGE_MAX 7 5472 #define kvIO_INFO_GET_DI_LOW_HIGH_FILTER 8 5481 #define kvIO_INFO_GET_DI_HIGH_LOW_FILTER 9 5490 #define kvIO_INFO_GET_AI_LP_FILTER_ORDER 10 5500 #define kvIO_INFO_GET_AI_HYSTERESIS 11 5507 #define kvIO_INFO_GET_MODULE_NUMBER 14 5514 #define kvIO_INFO_GET_SERIAL_NUMBER 15 5523 #define kvIO_INFO_GET_FW_VERSION 16 5545 #define kvIO_INFO_SET_DI_LOW_HIGH_FILTER 8 5554 #define kvIO_INFO_SET_DI_HIGH_LOW_FILTER 9 5563 #define kvIO_INFO_SET_AI_LP_FILTER_ORDER 10 5573 #define kvIO_INFO_SET_AI_HYSTERESIS 11 5591 #define kvIO_MODULE_TYPE_DIGITAL 1 5596 #define kvIO_MODULE_TYPE_ANALOG 2 5601 #define kvIO_MODULE_TYPE_RELAY 3 5606 #define kvIO_MODULE_TYPE_INTERNAL 4 5622 #define kvIO_PIN_TYPE_DIGITAL 1 5627 #define kvIO_PIN_TYPE_ANALOG 2 5632 #define kvIO_PIN_TYPE_RELAY 3 5648 #define kvIO_PIN_DIRECTION_IN 4 5653 #define kvIO_PIN_DIRECTION_OUT 8 struct kvClockInfo kvClockInfo
Definitions which are retained for compatibility.
unsigned char DI10
Definition: canlib.h:5932
kvStatus kvScriptEnvvarGetFloat(kvEnvHandle eHnd, float *val)
unsigned long stdRemote
Number of received standard (11-bit identifiers) remote frames.
Definition: canlib.h:3917
unsigned char DI5
Definition: canlib.h:5927
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:179
unsigned char DI12
Definition: canlib.h:5934
unsigned char RO3
Definition: canlib.h:5964
canStatus canGetBusOutputControl(const CanHandle hnd, unsigned int *drivertype)
kvStatus kvTimeDomainDelete(kvTimeDomain domain)
float AI2
Definition: canlib.h:5993
unsigned char DI8
Definition: canlib.h:5930
canStatus canGetDriverMode(const CanHandle hnd, int *lineMode, int *resNet)
struct canNotifyData::@0::@2 rx
unsigned char DO15
Definition: canlib.h:5921
void canInitializeLibrary(void)
canStatus canGetBusParamsFdTq(const CanHandle hnd, kvBusParamsTq *nominal, kvBusParamsTq *data)
canStatus kvIoPinGetInfo(const CanHandle hnd, unsigned int pin, int item, void *buffer, const unsigned int bufsize)
unsigned char DO8
Definition: canlib.h:5914
int brp_size
Definition: canlib.h:2340
canStatus canReadStatus(const CanHandle hnd, unsigned long *const flags)
kvStatus kvTimeDomainCreate(kvTimeDomain *domain)
unsigned char DI9
Definition: canlib.h:5931
unsigned int portNo
Port number used in e.g. canIOCTL_SET_USER_IOPORT.
Definition: canlib.h:3080
int64_t kvEnvHandle
Definition: canlib.h:4455
int accuracy_ppm
Definition: canlib.h:2328
int nNonMagiSyncCards
number of non MagiSync™ interfaces
Definition: canlib.h:3996
unsigned char RO2
Definition: canlib.h:5963
canStatus kvIoGetNumberOfPins(const CanHandle hnd, unsigned int *pinCount)
canStatus canRequestBusStatistics(const CanHandle hnd)
kvStatus kvDeviceSetMode(const CanHandle hnd, int mode)
void * kvTimeDomain
Definition: canlib.h:3984
unsigned char DI7
Definition: canlib.h:5929
unsigned char DO
Definition: canlib.h:5949
unsigned char rxErrorCounter
Definition: canlib.h:181
unsigned char DO2
Definition: canlib.h:5908
unsigned long extRemote
Number of received extended (29-bit identifiers) remote frames.
Definition: canlib.h:3919
canStatus canClose(const CanHandle hnd)
unsigned char RO5
Definition: canlib.h:5966
int power_of_ten
Definition: canlib.h:2327
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:5987
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:5935
int canHandle
Definition: canlib.h:156
unsigned char DI14
Definition: canlib.h:5936
unsigned char DI1
Definition: canlib.h:5970
canStatus canObjBufDisable(const CanHandle hnd, int idx)
void * tag
Definition: canlib.h:164
unsigned char RO4
Definition: canlib.h:5965
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:5994
int seg1_size
Definition: canlib.h:2341
kvStatus kvScriptEnvvarGetInt(kvEnvHandle eHnd, int *val)
Definitions for the CANLIB API.
kvStatus kvScriptGetMaxEnvvarSize(int hnd, int *envvarSize)
Definition: canlib.h:5960
Definition: canlib.h:5905
canStatus kvIoPinSetInfo(const CanHandle hnd, unsigned int pin, int item, const void *buffer, const unsigned int bufsize)
Definition: canlib.h:5986
canStatus canSetBusOutputControl(const CanHandle hnd, const unsigned int drivertype)
int type
Definition: canlib.h:5961
Definition: canlib.h:2338
int type
Definition: canlib.h:5906
int eventType
Definition: canlib.h:165
float AO3
Definition: canlib.h:5990
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:5948
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:5969
canStatus canBusOn(const CanHandle hnd)
Definition: canlib.h:5947
long id
Definition: canlib.h:171
unsigned char DI
Definition: canlib.h:5950
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:5972
canStatus canObjBufWrite(const CanHandle hnd, int idx, int id, void *msg, unsigned int dlc, unsigned int flags)
kvEnvHandle kvScriptEnvvarOpen(const CanHandle hnd, const char *envvarName, int *envvarType, int *envvarSize)
struct kvTimeDomainData_s kvTimeDomainData
kvStatus kvScriptTxeGetData(const char *filePathOnPC, int item, void *buffer, unsigned int *bufsize)
kvStatus kvScriptEnvvarClose(kvEnvHandle eHnd)
Definition: canlib.h:2323
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:5995
unsigned int portValue
Port value used in e.g. canIOCTL_SET_USER_IOPORT.
Definition: canlib.h:3081
unsigned short canGetVersion(void)
unsigned char DI1
Definition: canlib.h:5923
unsigned char DI2
Definition: canlib.h:5924
unsigned long errFrame
Number of error frames.
Definition: canlib.h:3920
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:5991
canStatus canFlushTransmitQueue(const CanHandle hnd)
kvStatus kvReadTimer64(const CanHandle hnd, uint64_t *time)
unsigned char DO10
Definition: canlib.h:5916
kvStatus kvFileGetName(const CanHandle hnd, int fileNo, char *name, int namelen)
kvStatus kvTimeDomainResetTime(kvTimeDomain domain)
unsigned char DO3
Definition: canlib.h:5909
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:3918
float AO1
Definition: canlib.h:5988
Definition: bus_params_tq.h:104
kvStatus kvReadTimer(const CanHandle hnd, unsigned int *time)
canStatus canObjBufEnable(const CanHandle hnd, int idx)
int denominator
Definition: canlib.h:2326
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:5922
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:5910
unsigned char DI8
Definition: canlib.h:5977
unsigned char DI6
Definition: canlib.h:5928
canStatus canSetNotify(const CanHandle hnd, void(*callback)(canNotifyData *), unsigned int notifyFlags, void *tag)
unsigned char txErrorCounter
Definition: canlib.h:180
canStatus kvIoPinGetAnalog(const CanHandle hnd, unsigned int pin, float *value)
unsigned char DO1
Definition: canlib.h:5907
canStatus canSetBusParamsFdTq(const CanHandle hnd, const kvBusParamsTq arbitration, const kvBusParamsTq data)
canStatus canObjBufSetFlags(const CanHandle hnd, int idx, unsigned int flags)
unsigned char RO7
Definition: canlib.h:5968
unsigned char RO1
Definition: canlib.h:5962
unsigned char DI16
Definition: canlib.h:5938
unsigned char DI5
Definition: canlib.h:5974
void(* kvCallback_t)(CanHandle hnd, void *context, unsigned int notifyEvent)
Definition: canlib.h:4170
canStatus canSetBusParamsC200(const CanHandle hnd, unsigned char btr0, unsigned char btr1)
int nMagiSyncGroups
number of MagiSync™ groups
Definition: canlib.h:3994
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:5933
struct kvBusParamLimits kvBusParamLimits
kvStatus kvDeviceGetMode(const CanHandle hnd, int *result)
canStatus kvIoPinGetOutputDigital(const CanHandle hnd, unsigned int pin, unsigned int *value)
unsigned char RO6
Definition: canlib.h:5967
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:3916
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:3927
kvStatus kvTimeDomainAddHandle(kvTimeDomain domain, const CanHandle hnd)
Definitions for the CANLIB API.
Definition: canlib.h:3993
unsigned char DI3
Definition: canlib.h:5925
canStatus canReadTimer(const CanHandle hnd, unsigned long *time)
unsigned char DO7
Definition: canlib.h:5913
canStatus kvIoPinSetDigital(const CanHandle hnd, unsigned int pin, unsigned int value)
unsigned char DI4
Definition: canlib.h:5926
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:5992
canStatus canGetErrorText(canStatus err, char *buf, unsigned int bufsiz)
unsigned long busLoad
Definition: canlib.h:3926
unsigned char DI7
Definition: canlib.h:5976
unsigned char DO13
Definition: canlib.h:5919
canStatus canRequestChipStatus(const CanHandle hnd)
int version
Definition: canlib.h:2324
Definition: canlib.h:3915
int sjw_size
Definition: canlib.h:2343
canStatus canEnumHardwareEx(int *channelCount)
unsigned char DI4
Definition: canlib.h:5973
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:161
kvStatus kvScriptEnvvarSetData(kvEnvHandle eHnd, const void *buf, int start_index, int data_len)
canStatus kvStatus
Definition: canlib.h:3987
Definition: canlib.h:3079
union canNotifyData::@0 info
canStatus canResetBus(const CanHandle hnd)
canStatus canObjBufAllocate(const CanHandle hnd, int type)
unsigned char DI2
Definition: canlib.h:5971
int nNonMagiSyncedMembers
number of non MagiSync™ members
Definition: canlib.h:3997
canStatus canSetBusParamsTq(const CanHandle hnd, const kvBusParamsTq nominal)
unsigned char DO6
Definition: canlib.h:5912
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:5915
unsigned char DO14
Definition: canlib.h:5920
unsigned long time
Definition: canlib.h:168
canStatus canGetBusParamsTq(const CanHandle hnd, kvBusParamsTq *nominal)
unsigned char DO5
Definition: canlib.h:5911
kvStatus kvFileCopyToDevice(const CanHandle hnd, char *hostFileName, char *deviceFileName)
canStatus canReadSync(const CanHandle hnd, unsigned long timeout)
float AO2
Definition: canlib.h:5989
int version
Definition: canlib.h:2339
int numerator
Definition: canlib.h:2325
kvStatus kvScriptUnload(const CanHandle hnd, int slotNo)
canStatus canObjBufSetPeriod(const CanHandle hnd, int idx, unsigned int period)
unsigned char DI6
Definition: canlib.h:5975
canStatus canObjBufFreeAll(const CanHandle hnd)
canStatus canIoCtl(const CanHandle hnd, unsigned int func, void *buf, unsigned int buflen)
unsigned char DI15
Definition: canlib.h:5937
struct canNotifyData::@0::@4 status
int seg2_size
Definition: canlib.h:2342
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:5917
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:3995
unsigned char DO12
Definition: canlib.h:5918