DeviceType Enum
Package: GHIElectronics.Endpoint.Devices.UsbHost
Namespace: GHIElectronics.Endpoint.Devices.UsbHost
What a device gives, and its DeviceName
class DeviceType(IntEnum): ...
Fields
| Name | Value | Description |
|---|---|---|
Unknown | 0 | No driver on the board: the program talks to it with RawDevice ("/dev/bus/usb/001/005") |
Hub | 1 | "/dev/bus/usb/001/002" |
HID | 2 | A HID device that is no keyboard, mouse or joystick: open it with HidDevice ("/dev/hidraw0") |
Mouse | 3 | "/dev/input/event2": open it with new Mouse(e.DeviceName) |
Keyboard | 4 | "/dev/input/event1": open it with new Keyboard(e.DeviceName) |
Joystick | 5 | Joysticks and gamepads ("/dev/input/event3"): open it with new Joystick(e.DeviceName) |
MassStorage | 6 | A drive: use StorageController (GHIElectronics.Endpoint.Devices.Storage). No name. |
Printer | 7 | "/dev/usb/lp0": open it with new Printer(e.DeviceName) |
Serial | 8 | A serial port, for System.IO.Ports.SerialPort ("/dev/ttyUSB0", "/dev/ttyACM0") |
Webcam | 9 | "/dev/video0": open it with UsbCamera (GHIElectronics.Endpoint.Devices.Camera) |
Audio | 10 | A sound card: speaker, microphone ("hw:1"), for Iot.Device.Media.SoundDevice |
Network | 11 | An Ethernet, WiFi or cellular adapter: its NetworkInterface's Name ("eth1", "wlan1") |
Bluetooth | 12 | "hci0" |
Touch | 13 | "/dev/input/eventN": open it with Touch (built-in or USB touchscreen) |