Main Site Documentation

GHI SDK: Why is USBH_Device in GHIElectronics.NETMF.System?


#1

The Assembly GHIElectronics.NETMF.System
C:\Program Files (x86)\GHI Electronics\GHI NETMF v4.1 SDK\Assemblies\GHIElectronics.NETMF.System.dll

contains:
namespace GHIElectronics.NETMF.USBHost
Member of GHIElectronics.NETMF.System

public class USBH_Device
Member of GHIElectronics.NETMF.USBHost

public enum USBH_DeviceType : byte
Member of GHIElectronics.NETMF.USBHost

Shouldn’t these be in:

Assembly GHIElectronics.NETMF.USBHost
C:\Program Files (x86)\GHI Electronics\GHI NETMF v4.1 SDK\Assemblies\GHIElectronics.NETMF.USBHost.dll

So you don’t have the extra reference? Do they use the Util class internally or something?


#2

If you look at a lot of GHI assemblies the enums and hardware specifics are always in a diferent place to the actual reference… I though it was for portability. There are more than one device to cater for…

I’m probably wrong… I’t’s no biggee…

Cheers Ian


#3

I’m more wondering why the USBHost namespace is split between assemblies…


#4

Because USBH_Device is needed for other assemblies that need to link correctly, such as IO assembly.
In other words, if in your project you are NOT using USB Host, you can don’t have to add USBHost assembly and you can save some memory.