Platforms to show: All Mac Windows Linux Cross-Platform
HID
Classes to talk with USB HID devices on low level.
- class LinuxHIDInterfaceMBS
- shared method Available as boolean
- method Close as integer
- method DumpTreeToStderr as integer
- method DumpTreeToStdout as integer
- method ForceOpen(theInterface as integer, Vendor as integer, Product as integer, retries as integer) as integer
- method GetInputReport(path() as integer, data as memoryblock, offset as integer, size as integer) as integer
- method InterruptRead(EndPoint as integer, mem as memoryblock, size as integer, timeout as integer) as integer
- shared method IsInitialised as boolean
- method IsOpen as boolean
- method Open(theInterface as integer, Vendor as integer, Product as integer) as integer
- method Reset
- shared method SetDebugLevel(level as integer)
- shared method SetDebugOutputToStderr
- shared method SetDebugOutputToStdout
- method SetOutputReport(path() as integer, data as memoryblock, offset as integer, size as integer) as integer
- method SetOutputReport(path() as integer, data as string) as integer
- method WriteIdentificationToStderr as integer
- method WriteIdentificationToStdout as integer
- property Handle as Integer
- event MatchDevice(usbdev as LinuxUSBDeviceHandleMBS) as boolean
- const kDebugAll = 31
- const kDebugAsserts = 16
- const kDebugErrors = 1
- const kDebugNone = 0
- const kDebugNotices = 4
- const kDebugNoTraces = 23
- const kDebugTraces = 8
- const kDebugWarnings = 2
- const kErrorAlreadyInitialised = 3
- const kErrorDeviceAlreadyOpened = 9
- const kErrorDeviceNotFound = 7
- const kErrorDeviceNotOpened = 8
- const kErrorFailAlloc = 17
- const kErrorFailClaimIFace = 11
- const kErrorFailCloseDevice = 10
- const kErrorFailDetachDriver = 12
- const kErrorFailFindBusses = 4
- const kErrorFailFindDevices = 5
- const kErrorFailGetReport = 20
- const kErrorFailIntRead = 21
- const kErrorFailOpenDevice = 6
- const kErrorFailSetReport = 19
- const kErrorHIDDescShort = 14
- const kErrorInvalidParameter = 1
- const kErrorNotFound = 22
- const kErrorNotHIDDevice = 13
- const kErrorNotInitialised = 2
- const kErrorOutOfSpace = 18
- const kErrorReportDescLong = 16
- const kErrorReportDescShort = 15
- const kErrorSuccess = 0
- const kMatchAny = 0
- class LinuxUSBBusMBS
- property Devices as LinuxUSBDeviceMBS
- property DirName as String
- property Location as Integer
- property NextBus as LinuxUSBBusMBS
- property PrevBus as LinuxUSBBusMBS
- property RootDevice as LinuxUSBDeviceMBS
- class LinuxUSBDeviceDescriptionMBS
- property cdDevice as Integer
- property cdUSB as Integer
- property DescriptorType as Integer
- property DeviceClass as Integer
- property DeviceProtocol as Integer
- property DeviceSubClass as Integer
- property Manufacturer as String
- property MaxPacketSize0 as Integer
- property NumConfigurations as Integer
- property Product as Integer
- property ProductName as String
- property SerialNumber as String
- property Vendor as Integer
- const kDeviceClassAudio = 1
- const kDeviceClassCOMM = 2
- const kDeviceClassDATA = 10
- const kDeviceClassHID = 3
- const kDeviceClassHUB = 9
- const kDeviceClassMassStorage = 8
- const kDeviceClassPerInterface = 0
- const kDeviceClassPrinter = 7
- const kDeviceClassVendorSpecific = 255
- class LinuxUSBDeviceHandleMBS
- property AltSetting as Integer
- property Bus as LinuxUSBBusMBS
- property Config as Integer
- property Device as LinuxUSBDeviceMBS
- property InterfaceIndex as Integer
- class LinuxUSBDeviceMBS
- method Children(index as integer) as LinuxUSBDeviceMBS
- property Bus as LinuxUSBBusMBS
- property ChildrenCount as Integer
- property Descriptor as LinuxUSBDeviceDescriptionMBS
- property Filename as String
- property NextDevice as LinuxUSBDeviceMBS
- property PrevDevice as LinuxUSBDeviceMBS
- class MacHIDMBS
- method Close
- method Connect
- method Disconnect
- method FindFirstDevice as boolean
- method FindNextDevice as boolean
- method InstallCallback
- method Manufacturer as string
- method Product as string
- method ProductID as integer
- method SendMessage(data as string)
- method SendMessage(ReportID as integer, data as string)
- method SendMessageMemory(data as memoryblock, offset as integer, length as integer)
- method SendMessageMemory(ReportID as integer, data as memoryblock, offset as integer, length as integer)
- method SerialNumber as string
- method VendorID as integer
- method VersionNumber as integer
- property Lasterror as Integer
- property TimeOut as Integer
- event DeviceRemoved(result as integer)
- event ReceivedData(data as string, size as integer)
- class WinHIDMBS
- method Close
- method Connect as boolean
- method DevicePath as string
- method Disconnect
- method FindFirstDevice as boolean
- method FindNextDevice as boolean
- method InstallListener(PollSize as integer) as boolean
- method Manufacturer as string
- method PollMemory as memoryblock
- method PollString as string
- method Product as string
- method ProductID as integer
- method ReadMessage(length as integer) as string
- method ReadMessageMemory(length as integer) as memoryblock
- method SendMessage(data as string) as integer
- method SendMessageMemory(data as memoryblock, offset as integer, length as integer) as integer
- method SerialNumber as string
- method VendorID as integer
- method VersionNumber as integer
- property FeatureReportByteLength as Integer
- property HidHandle as Integer
- property InputReportByteLength as Integer
- property Lasterror as Integer
- property LasterrorString as String
- property OutputReportByteLength as Integer
- property PnPHandle as Integer
- property ReadHandle as Integer
- property ThreadHandle as Integer
- property WriteHandle as Integer
The items on this page are in the following plugins: MBS REALbasic USB Plugin.
Links
MBS Realbasic PDF Plugins - Pfarrgemeinde Ministranten Nickenich