|class||USB||MBS USB Plugin||16.0||✅ Yes||✅ Yes||✅ Yes||❌ No||Desktop, Console & Web|
For HIDAPI see website:
The MBS Plugin includes a copy of hidapi for Mac, Windows and Linux.
The linux version needs libudev installed.
You can optionally load a different version of hidapi with LoadLibrary methods.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.
- 10 properties
- property DeviceHandle as Integer
- property Error as String
- property FeatureReportLength as Integer
- property Handle as Integer
- property InputReportLength as Integer
- property ManufacturerString as String
- property NonBlocking as Boolean
- property OutputReportLength as Integer
- property ProductString as String
- property SerialNumber as String
- 11 methods
- method Close
- method Constructor
- method GetFeatureReport(ReportID as Integer, MaxLength as Integer) as MemoryBlock
- method GetInputReport(ReportID as Integer, MaxLength as Integer) as MemoryBlock
- method IndexedString(Index as Integer, MaxLen as Integer = 1024) as String
- method Read(MaxLength as Integer) as MemoryBlock
- method ReadTimeOut(MaxLength as Integer, TimeoutMS as Integer) as MemoryBlock
- method SendFeatureReport(data as MemoryBlock) as Integer
- method SendFeatureReport(data as String) as Integer
- method Write(data as MemoryBlock) as Integer
- method Write(data as String) as Integer
- 9 shared methods
- shared method Enumerate(VendorID as Integer = 0, ProduceID as Integer = 0) as HIDAPIDeviceInfoMBS
- shared method Init as Integer
- shared method LoadError as String
- shared method LoadLibrary(File as FolderItem) as boolean
- shared method LoadLibrary(Path as string) as boolean
- shared method Open(VendorID as Integer, ProduceID as Integer, SerialNumber as String = "") as HIDAPIDeviceMBS
- shared method OpenPath(path as string) as HIDAPIDeviceMBS
- shared method Shutdown as Integer
- shared method VersionString as String
This class has no sub classes.
Some examples using this class:
- MBS Xojo Plugins, version 21.2pr3
- MBS Xojo Plugins, version 19.1pr2
- MBS Xojo / Real Studio Plugins, version 16.1pr3
The items on this page are in the following plugins: MBS USB Plugin.
MBS Xojo blog