<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Using CreateFile to open HUB GPIO EG20T in Embedded Intel Atom® Processors</title>
    <link>https://community.intel.com/t5/Embedded-Intel-Atom-Processors/Using-CreateFile-to-open-HUB-GPIO-EG20T/m-p/249670#M2450</link>
    <description>&lt;P&gt;I am using the API CreateFile to open the gpo EG20T hub, but is not working, I'm using the following way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;typedef struct tagGPIO_Device{HANDLE        hGPIODevice;   ioh_gpio_reqt    gpio_reqt;} GPIO_Device; &lt;P&gt;&lt;/P&gt;&lt;P&gt;device-&amp;gt;hGPIODevice = NULL;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;device-&amp;gt;hGPIODevice = CreateFile((LPCWSTR)"&lt;A&gt;\\\\.\\GUID_DEVINTERFACE_IOHGPIO&lt;/A&gt;",GENERIC_READ | GENERIC_WRITE, 0,NULL,OPEN_EXISTING,0,NULL);&lt;/P&gt;&lt;P&gt;The "GUID_DEVINTERFACE_IOHGPIO" I'm taking the "ioh_gpio common.h" that already have defined the values provided by  intel. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DEFINE_GUID(GUID_DEVINTERFACE_IOHGPIO, &lt;/P&gt;&lt;P&gt;0xd326ab9, 0x4298, 0x4394, 0x97, 0xe8, 0xb1, 0x9d, 0xff, 0xc4, 0x9, 0x58);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I put this function to verify that it does not open and when it is falling, I think this error  here "\ \ \ \. \ \ GUID_DEVINTERFACE_IOHGPIO."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;if ( device-&amp;gt;hGPIODevice == INVALID_HANDLE_VALUE){&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; printf("Failed to Open the GPIO device \n");&lt;/P&gt;</description>
    <pubDate>Mon, 09 Jan 2012 17:14:18 GMT</pubDate>
    <dc:creator>DVasc</dc:creator>
    <dc:date>2012-01-09T17:14:18Z</dc:date>
    <item>
      <title>Using CreateFile to open HUB GPIO EG20T</title>
      <link>https://community.intel.com/t5/Embedded-Intel-Atom-Processors/Using-CreateFile-to-open-HUB-GPIO-EG20T/m-p/249670#M2450</link>
      <description>&lt;P&gt;I am using the API CreateFile to open the gpo EG20T hub, but is not working, I'm using the following way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;typedef struct tagGPIO_Device{HANDLE        hGPIODevice;   ioh_gpio_reqt    gpio_reqt;} GPIO_Device; &lt;P&gt;&lt;/P&gt;&lt;P&gt;device-&amp;gt;hGPIODevice = NULL;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;device-&amp;gt;hGPIODevice = CreateFile((LPCWSTR)"&lt;A&gt;\\\\.\\GUID_DEVINTERFACE_IOHGPIO&lt;/A&gt;",GENERIC_READ | GENERIC_WRITE, 0,NULL,OPEN_EXISTING,0,NULL);&lt;/P&gt;&lt;P&gt;The "GUID_DEVINTERFACE_IOHGPIO" I'm taking the "ioh_gpio common.h" that already have defined the values provided by  intel. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DEFINE_GUID(GUID_DEVINTERFACE_IOHGPIO, &lt;/P&gt;&lt;P&gt;0xd326ab9, 0x4298, 0x4394, 0x97, 0xe8, 0xb1, 0x9d, 0xff, 0xc4, 0x9, 0x58);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I put this function to verify that it does not open and when it is falling, I think this error  here "\ \ \ \. \ \ GUID_DEVINTERFACE_IOHGPIO."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;if ( device-&amp;gt;hGPIODevice == INVALID_HANDLE_VALUE){&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; printf("Failed to Open the GPIO device \n");&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2012 17:14:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Embedded-Intel-Atom-Processors/Using-CreateFile-to-open-HUB-GPIO-EG20T/m-p/249670#M2450</guid>
      <dc:creator>DVasc</dc:creator>
      <dc:date>2012-01-09T17:14:18Z</dc:date>
    </item>
  </channel>
</rss>

