kvaser的驱动软件,附带简要使用说明,应用于伺服驱动器canopen通信
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-11-27 15:05 kvaser使用
文件 90920 2016-05-24 10:45 kvaser使用CanKing.docx
目录 0 2017-11-27 15:04 kvaser使用Driver and CANlib
目录 0 2017-11-27 15:05 kvaser使用Driver and CANlibCANlib
目录 0 2017-11-27 15:04 kvaser使用Driver and CANlibCANlibBin
文件 1132 2009-10-22 00:41 kvaser使用Driver and CANlibCANlibBinCplTasksFile.xml
目录 0 2017-11-27 15:04 kvaser使用Driver and CANlibCANlibBinDebug
文件 86112 2009-10-22 00:41 kvaser使用Driver and CANlibCANlibBinDebugcanlib32.dll
文件 57451 2009-10-22 00:41 kvaser使用Driver and CANlibCANlibBinDebugcanlib_install.dll
文件 69729 2009-10-22 00:41 kvaser使用Driver and CANlibCANlibBinDebugj1587lib.dll
文件 139361 2009-10-22 00:41 kvaser使用Driver and CANlibCANlibBinDebugkvaDbLib.dll
文件 225373 2009-10-22 00:41 kvaser使用Driver and CANlibCANlibBinDebugkvalapw2.dll
文件 122986 2009-10-22 00:41 kvaser使用Driver and CANlibCANlibBinDebugkvaser_vcndrvms.dll
文件 69725 2009-10-22 00:41 kvaser使用Driver and CANlibCANlibBinDebuglinlib.dll
文件 102496 2009-10-22 00:41 kvaser使用Driver and CANlibCANlibBinDebugsing32.dll
文件 122974 2009-10-22 00:41 kvaser使用Driver and CANlibCANlibBinDebugvcand32.dll
文件 122978 2009-10-22 00:41 kvaser使用Driver and CANlibCANlibBinDebugvcndrvms.dll
文件 905 2009-10-22 00:41 kvaser使用Driver and CANlibCANlibBinIsaToPciRouting-Readme.txt
文件 129 2009-10-22 00:41 kvaser使用Driver and CANlibCANlibBinIsaToPciRoutingDisable.reg
文件 129 2009-10-22 00:41 kvaser使用Driver and CANlibCANlibBinIsaToPciRoutingEnable.reg
文件 65536 2009-10-22 00:41 kvaser使用Driver and CANlibCANlibBinKvEnumSrv.exe
文件 584192 2009-10-22 00:41 kvaser使用Driver and CANlibCANlibBinListChannels.exe
文件 70234 2009-10-22 00:41 kvaser使用Driver and CANlibCANlibBinb_help.chm
文件 573440 2009-10-22 00:41 kvaser使用Driver and CANlibCANlibBinittime.exe
文件 73728 2009-10-22 00:41 kvaser使用Driver and CANlibCANlibBincanlib32.dll
文件 69632 2009-10-22 00:41 kvaser使用Driver and CANlibCANlibBincanlib32NET.dll
文件 69632 2009-10-22 00:41 kvaser使用Driver and CANlibCANlibBincanlibCLSNET.dll
文件 49152 2009-10-22 00:41 kvaser使用Driver and CANlibCANlibBincanlib_install.dll
文件 1245696 2009-10-22 00:41 kvaser使用Driver and CANlibCANlibBinconftool.exe
文件 602296 2009-10-22 00:41 kvaser使用Driver and CANlibCANlibBinconftool_help.chm
文件 69632 2009-10-22 00:41 kvaser使用Driver and CANlibCANlibBinfilo_setparam_userdata.exe
............此处省略517个文件信息
/*
** Copyright 19951996 by KVASER AB
** P.O Box 4076 S-51104 KINNA SWEDEN. Tel. +46 320 15287
**
** This software is furnished under a license and may be used and copied
** only in accordance with the terms of such license.
**
*/
/*
** This module contains the entry points to the library.
** The code typically performs tasks like parameter checking and
** conversion and then calls the appropriate hardware-dependent
** routines. Also all readings from the ring buffer take place here.
**
*/
#include
#include
#include // _enable _disable
#include
#include
#include
// #include
#include “global.h“
#include “irq.h“
#include “timer.h“
#include “version.h“
#include “misc.h“
#include “libpccan.h“
#include “libcanc.h“
// For lapCAN - not yet working.
// #include “hwLapCAN.h“
// #include “lpaction.h“ // qqq lapcan!
#define VALIDATE(h)
if (!Initialized) return canERR_NOTINITIALIZED;
if (!IsHandleValidAndOpen(h)) return canERR_INVHANDLE
/*
** Forward declarations.
*/
#ifndef _WINDOWS
PRIVATE int LibMain(void);
#endif
/* These following two routines should be moved to util.c someday. */
/* The time values are read using GetMsTimer() which returns the timer value in ms.
** When it reaches 0x100000000/1193 = 3600140.23 ms or about one hour
** ‘ReadTimer()/TIMERFREQ‘ will wrap causing troubles when it is used in timeouts
** etc (where two times are simply subtracted). In theese cases one should use
** the TimeDiff-function instead which works for time differences less than one
** hour
*/
#define TIMERPERIOD 3600140L
/*
** Calculates (t2-t1) mod TIMERPERIOD
*/
PRIVATE DWORD TimeDiff(DWORD t2 DWORD t1)
{
// The times are DWORDs/1193 so they will fit in a signed long.
long d = (long)t2 - (long)t1;
if (d < 0)
d += TIMERPERIOD;
return d;
}
/* Timeout handling.
** Call it first with argument 0 to initialize it then call it with the
** timeout and if timeout occur 1 is returned.
**
** To avoid a bug in the timer routines two ‘timeout/2‘ has to occur before
** it is considered valid. This means that at worst only half of the timeout
** value will be used.
*/
PRIVATE int Timeout(DWORD timeout)
{
static DWORD t0;
DWORD t1;
static int toCount;
if (timeout == 0) {
t0 = GETTIMER();
toCount = 0;
} else {
t1 = GETTIMER();
if (TimeDiff(t1 t0) > timeout/2) {
if (toCount++)
return 1;
else
t0 = GETTIMER(); // Try again
}
}
return 0;
}
//
// canInitializeLibrary - an initialization entry point with
// a more sensible name.
//
void CANLIBAPI canInitializeLibrary( void)
{
(void)canLocateHardware();
}
/*
** canLocateHardware - initializes the data structures using the information
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-11-27 15:05 kvaser使用
文件 90920 2016-05-24 10:45 kvaser使用CanKing.docx
目录 0 2017-11-27 15:04 kvaser使用Driver and CANlib
目录 0 2017-11-27 15:05 kvaser使用Driver and CANlibCANlib
目录 0 2017-11-27 15:04 kvaser使用Driver and CANlibCANlibBin
文件 1132 2009-10-22 00:41 kvaser使用Driver and CANlibCANlibBinCplTasksFile.xm
目录 0 2017-11-27 15:04 kvaser使用Driver and CANlibCANlibBinDebug
文件 86112 2009-10-22 00:41 kvaser使用Driver and CANlibCANlibBinDebugcanlib32.dll
文件 57451 2009-10-22 00:41 kvaser使用Driver and CANlibCANlibBinDebugcanlib_install.dll
文件 69729 2009-10-22 00:41 kvaser使用Driver and CANlibCANlibBinDebugj1587lib.dll
文件 139361 2009-10-22 00:41 kvaser使用Driver and CANlibCANlibBinDebugkvaDbLib.dll
文件 225373 2009-10-22 00:41 kvaser使用Driver and CANlibCANlibBinDebugkvalapw2.dll
文件 122986 2009-10-22 00:41 kvaser使用Driver and CANlibCANlibBinDebugkvaser_vcndrvms.dll
文件 69725 2009-10-22 00:41 kvaser使用Driver and CANlibCANlibBinDebuglinlib.dll
文件 102496 2009-10-22 00:41 kvaser使用Driver and CANlibCANlibBinDebugsing32.dll
文件 122974 2009-10-22 00:41 kvaser使用Driver and CANlibCANlibBinDebugvcand32.dll
文件 122978 2009-10-22 00:41 kvaser使用Driver and CANlibCANlibBinDebugvcndrvms.dll
文件 905 2009-10-22 00:41 kvaser使用Driver and CANlibCANlibBinIsaToPciRouting-Readme.txt
文件 129 2009-10-22 00:41 kvaser使用Driver and CANlibCANlibBinIsaToPciRoutingDisable.reg
文件 129 2009-10-22 00:41 kvaser使用Driver and CANlibCANlibBinIsaToPciRoutingEnable.reg
文件 65536 2009-10-22 00:41 kvaser使用Driver and CANlibCANlibBinKvEnumSrv.exe
文件 584192 2009-10-22 00:41 kvaser使用Driver and CANlibCANlibBinListChannels.exe
文件 70234 2009-10-22 00:41 kvaser使用Driver and CANlibCANlibBinb_help.chm
文件 573440 2009-10-22 00:41 kvaser使用Driver and CANlibCANlibBinittime.exe
文件 73728 2009-10-22 00:41 kvaser使用Driver and CANlibCANlibBincanlib32.dll
文件 69632 2009-10-22 00:41 kvaser使用Driver and CANlibCANlibBincanlib32NET.dll
文件 69632 2009-10-22 00:41 kvaser使用Driver and CANlibCANlibBincanlibCLSNET.dll
文件 49152 2009-10-22 00:41 kvaser使用Driver and CANlibCANlibBincanlib_install.dll
文件 1245696 2009-10-22 00:41 kvaser使用Driver and CANlibCANlibBinconftool.exe
文件 602296 2009-10-22 00:41 kvaser使用Driver and CANlibCANlibBinconftool_help.chm
文件 69632 2009-10-22 00:41 kvaser使用Driver and CANlibCANlibBinfilo_setparam_userdata.exe
............此处省略517个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)