Skip to main content

DeviceType Enum

Package: GHIElectronics.Endpoint.Devices.UsbHost
Namespace: GHIElectronics.Endpoint.Devices.UsbHost

What a device gives, and its DeviceName

enum class DeviceType : int32_t {};

Fields​

NameValueDescription
Unknown0No driver on the board: the program talks to it with RawDevice ("/dev/bus/usb/001/005")
Hub1"/dev/bus/usb/001/002"
HID2A HID device that is no keyboard, mouse or joystick: open it with HidDevice ("/dev/hidraw0")
Mouse3"/dev/input/event2": open it with new Mouse(e.DeviceName)
Keyboard4"/dev/input/event1": open it with new Keyboard(e.DeviceName)
Joystick5Joysticks and gamepads ("/dev/input/event3"): open it with new Joystick(e.DeviceName)
MassStorage6A drive: use StorageController (GHIElectronics.Endpoint.Devices.Storage). No name.
Printer7"/dev/usb/lp0": open it with new Printer(e.DeviceName)
Serial8A serial port, for System.IO.Ports.SerialPort ("/dev/ttyUSB0", "/dev/ttyACM0")
Webcam9"/dev/video0": open it with UsbCamera (GHIElectronics.Endpoint.Devices.Camera)
Audio10A sound card: speaker, microphone ("hw:1"), for Iot.Device.Media.SoundDevice
Network11An Ethernet, WiFi or cellular adapter: its NetworkInterface's Name ("eth1", "wlan1")
Bluetooth12"hci0"
Touch13"/dev/input/eventN": open it with Touch (built-in or USB touchscreen)