Main Site Documentation

USBH_Device class missing


#1

Hi,
I’m trying to use the USB Host functionality on my FEZ Panda II. I’m writing a test program based on the sample in the wiki, but I can’t find the reference to the USBH_Device class.

I’m using GHI NETMF v4.1.7 released Oct 7, 2011. Yes I’ve included the GHIElectronics.NETMF.USBHost dll

Am I missing something silly here?


using System;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
using GHIElectronics.NETMF.FEZ;
using GHIElectronics.NETMF.Hardware;
using GHIElectronics.NETMF.USBHost;

namespace Panda2Test
{
    public class Program
    {
        static void DeviceConnect(USBH_Device device)
        {

        }

        static void DeviceDisconnect(USBH_Device device)
        {

        }


        public static void Main()
        {
            // Add handlers for USB host events
            USBHostController.DeviceConnectedEvent += new USBH_DeviceConnectionEventHandler(DeviceConnect);
            USBHostController.DeviceDisconnectedEvent += new USBH_DeviceConnectionEventHandler(DeviceDisconnect);

            while (true)
            {
                Thread.Sleep(Timeout.Infinite);
            }
        }

    }
}


#2

http://www.tinyclr.com/forum/1/3056/


#3

OHH. Thanks Architect! Now I know to where to look next time


#4

You are welcome! ;D