<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.viewtool.com/wiki/index.php?action=history&amp;feed=atom&amp;title=VCI_InitCAN</id>
		<title>VCI InitCAN - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://www.viewtool.com/wiki/index.php?action=history&amp;feed=atom&amp;title=VCI_InitCAN"/>
		<link rel="alternate" type="text/html" href="http://www.viewtool.com/wiki/index.php?title=VCI_InitCAN&amp;action=history"/>
		<updated>2026-05-15T11:18:05Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://www.viewtool.com/wiki/index.php?title=VCI_InitCAN&amp;diff=277525&amp;oldid=prev</id>
		<title>Szmz: /* Example */</title>
		<link rel="alternate" type="text/html" href="http://www.viewtool.com/wiki/index.php?title=VCI_InitCAN&amp;diff=277525&amp;oldid=prev"/>
				<updated>2021-05-24T08:43:24Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Example&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 08:43, 24 May 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l26&quot; &gt;Line 26:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 26:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; Status = VCI_InitCAN(DevType,DevIndex,CANIndex,&amp;amp;InitConfig);&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; Status = VCI_InitCAN(DevType,DevIndex,CANIndex,&amp;amp;InitConfig);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; if(Status == 1){&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; if(Status == 1){&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt; &lt;/del&gt;printf(&amp;quot;Initialize device success!\n&amp;quot;);&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160;  &lt;/ins&gt;printf(&amp;quot;Initialize device success!\n&amp;quot;);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; }else{&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; }else{&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt; &lt;/del&gt;printf(&amp;quot;Initialize device failed!\n&amp;quot;);&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160;  &lt;/ins&gt;printf(&amp;quot;Initialize device failed!\n&amp;quot;);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; }&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Szmz</name></author>	</entry>

	<entry>
		<id>http://www.viewtool.com/wiki/index.php?title=VCI_InitCAN&amp;diff=270656&amp;oldid=prev</id>
		<title>Xuzuolan: Created page with &quot;Initialize CANadapter.   ==== Declaration==== DWORD __stdcall VCI_InitCAN(DWORD DevType, DWORD DevIndex, DWORD CANIndex, PVCI_INIT_CONFIG pInitConfig);&lt;br&gt; '''DevType''':Devic...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.viewtool.com/wiki/index.php?title=VCI_InitCAN&amp;diff=270656&amp;oldid=prev"/>
				<updated>2021-04-18T09:05:04Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;Initialize CANadapter.   ==== Declaration==== DWORD __stdcall VCI_InitCAN(DWORD DevType, DWORD DevIndex, DWORD CANIndex, PVCI_INIT_CONFIG pInitConfig);&amp;lt;br&amp;gt; &amp;#039;&amp;#039;&amp;#039;DevType&amp;#039;&amp;#039;&amp;#039;:Devic...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Initialize CANadapter.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Declaration====&lt;br /&gt;
DWORD __stdcall VCI_InitCAN(DWORD DevType, DWORD DevIndex, DWORD CANIndex, PVCI_INIT_CONFIG pInitConfig);&amp;lt;br&amp;gt;&lt;br /&gt;
'''DevType''':Device type.&amp;lt;br&amp;gt;&lt;br /&gt;
'''DevIndex''':Device index.&amp;lt;br&amp;gt;&lt;br /&gt;
'''CANIndex''':CANchannel index number.&amp;lt;br&amp;gt;&lt;br /&gt;
'''pInitConfig''':Initialization parameter structure.&amp;lt;br&amp;gt;&lt;br /&gt;
==== Return ====&lt;br /&gt;
1: Success, 0: Failed.&lt;br /&gt;
==== Example ====&lt;br /&gt;
 #include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;
 #include &amp;quot;Ginkgo_Driver.h&amp;quot;&lt;br /&gt;
 int DevType = 4;//USB-CAN2&lt;br /&gt;
 int DevIndex = 0;&lt;br /&gt;
 int CANIndex = 0;&lt;br /&gt;
 int Status;&lt;br /&gt;
 VCI_INIT_CONFIG InitConfig;&lt;br /&gt;
 InitConfig.AccCode = 0x00000000;&lt;br /&gt;
 InitConfig.AccMask = 0xFFFFFFFF;&lt;br /&gt;
 InitConfig.Filter = 1;&lt;br /&gt;
 InitConfig.Timing0 = 0X00;&lt;br /&gt;
 InitConfig.Timing1 = 0X14;&lt;br /&gt;
 InitConfig.Mode = 0;&lt;br /&gt;
 Status = VCI_InitCAN(DevType,DevIndex,CANIndex,&amp;amp;InitConfig);&lt;br /&gt;
 if(Status == 1){&lt;br /&gt;
 printf(&amp;quot;Initialize device success!\n&amp;quot;);&lt;br /&gt;
 }else{&lt;br /&gt;
 printf(&amp;quot;Initialize device failed!\n&amp;quot;);&lt;br /&gt;
 }&lt;/div&gt;</summary>
		<author><name>Xuzuolan</name></author>	</entry>

	</feed>