Skip to main content

GHIElectronics.Endpoint.Devices.UsbHost

Endpoint's USB devices: connected and disconnected events, what each device is and its port or network interface.

Classes​

ClassSummary
AuxiliaryRepresents additional auxiliary descriptors.
BaseDescriptorThe base USB descriptor.
BaseDeviceA USB device that the program uses: Keyboard, Mouse, Joystick, HidDevice, Printer or RawDevice, opened with the DeviceName that its UsbHostController event gives. Its events come on the device's own thread. When the device is unplugged, Disconnected is raised. A device stays alive until it is disposed.
ConfigurationConfiguration descriptor.
DeviceDevice descriptor.
EndpointEndpoint descriptor.
HidDeviceA HID device that is no keyboard, mouse or joystick (a sensor, a USB I/O board, a UPS...): its reports, as hidapi gives them.
InterfaceInterface descriptor.
JoystickAllows a usb device to be used as a joystick.
KeyboardAllows a usb device to be used as a keyboard.
MouseAllows a usb device to be used a mouse.
PrinterA USB printer: the bytes it understands (ESC/POS for receipt printers, ZPL or EPL for label printers, PCL or PostScript for office printers) go to it as they are.
RawDeviceProvides low level access functionalities for the connected USB device. This is useful if there is not already a predefined driver for that device.
UsbDeviceConnectionEventArgsEvent data for UsbHostController.ConnectionChanged: one USB device attached or detached.
UsbHostControllerThe USB devices plugged into the board, directly or through hubs. One event for each thing a device gives: a keyboard with a touchpad gives Keyboard and Mouse, a webcam gives Webcam and Audio (its microphone). DeviceName is what to open it with (see UsbHost.DeviceType). The events come on the library's USB thread. USB drives come as MassStorage: use StorageController (GHIElectronics.Endpoint.Devices.Storage) for them. A controller stays alive until it is disposed.

Structs​

StructSummary
PositionRepresents the a generic position.

Enums​

EnumSummary
ButtonStateThe possible button states.
ButtonsLists available mouse buttons.
CursorThe possible cursors.
DescriptorTypeThe possible types of descriptors.
DeviceTypeWhat a device gives, and its DeviceName
HatSwitchDirectionJoystick hat switch directions.
KeyThe keys on the keyboard.
KeyStateThe possible key states.
PrinterStatusWhat a printer reports about itself.

Delegates​

DelegateSummary
UsbConnectionChangedEventHandlerHandler for UsbHostController.ConnectionChanged. Called on the library's USB thread when a device is attached or detached; the devices already plugged in at UsbHostController.Enable time are reported too.