<?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=VGI_SetOutput</id>
		<title>VGI SetOutput - 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=VGI_SetOutput"/>
		<link rel="alternate" type="text/html" href="http://www.viewtool.com/wiki/index.php?title=VGI_SetOutput&amp;action=history"/>
		<updated>2026-05-04T19:42:33Z</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=VGI_SetOutput&amp;diff=270659&amp;oldid=prev</id>
		<title>Xuzuolan: Created page with &quot;Set appointed pin as output pin.  ==== Prototype ==== int32_t	WINAPI VGI_SetOutput(int32_t DevType,int32_t DevIndex,uint16_t PinMask); ==== Parameter ==== '''DevType''':Device...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.viewtool.com/wiki/index.php?title=VGI_SetOutput&amp;diff=270659&amp;oldid=prev"/>
				<updated>2021-04-18T09:23:46Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;Set appointed pin as output pin.  ==== Prototype ==== int32_t	WINAPI VGI_SetOutput(int32_t DevType,int32_t DevIndex,uint16_t PinMask); ==== Parameter ==== &amp;#039;&amp;#039;&amp;#039;DevType&amp;#039;&amp;#039;&amp;#039;:Device...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Set appointed pin as output pin.&lt;br /&gt;
&lt;br /&gt;
==== Prototype ====&lt;br /&gt;
int32_t	WINAPI VGI_SetOutput(int32_t DevType,int32_t DevIndex,uint16_t PinMask);&lt;br /&gt;
==== Parameter ====&lt;br /&gt;
'''DevType''':Device type code. For detail, please refer to Device Type Definition Table.&amp;lt;br&amp;gt;&lt;br /&gt;
'''DevIndex''':Device index number. Index number 0 indicates only one device is connected with computer. In case multiple devices are connected, set index number corresponding to the devices required to be openeded.&amp;lt;br&amp;gt;&lt;br /&gt;
'''PinMask''':Pins need setting as output mode. In case the corresponding bit is 1, then the relative GPIO pin is set as output pin. E.g. when PinMask is 0x0001, set GPIO_0 as output pin. When PinMask is 0x0102, set both GPIO_1 and GPIO_8 as output pins. And other pins are not influenced by such settings.&lt;br /&gt;
==== Return code ====&lt;br /&gt;
Program execution state. Parameter 0 indicates related function executes successfully. For other return codes' definition, please refer to Error Code Definition Table.&lt;br /&gt;
==== Example ====&lt;br /&gt;
 #include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;
 #include &amp;quot;ControGPIO.h&amp;quot;&lt;br /&gt;
 int ret;&lt;br /&gt;
 ret = VGI_SetOutput(VGI_USBGPIO, 0, VGI_GPIO_PIN1 | VGI_GPIO_PIN8);if (ret != ERR_SUCCESS){&lt;br /&gt;
 printf(&amp;quot;Set pin output error!\n&amp;quot;);&lt;br /&gt;
 return ret;&lt;br /&gt;
 }&lt;/div&gt;</summary>
		<author><name>Xuzuolan</name></author>	</entry>

	</feed>