MBS Xojo Developer Conference and Training
Join us from 11th to 14th September 2013 in Koblenz.
Join us from 11th to 14th September 2013 in Koblenz.
Platforms to show: All Mac Windows Linux Cross-Platform
USB
Everything around USB including HID interfaces.
- 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
- method InterruptWrite(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
- shared method Buses as 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 MacUSBDeviceMBS
- method children as MacUSBDeviceMBS()
- method Constructor
- shared method root as MacUSBDeviceMBS
- property Address as Integer
- property BusPowerAvailable as Integer
- property ClassName as String
- property DeviceClass as Integer
- property DeviceMaxPacketSize as Integer
- property DeviceNumConfigs as Integer
- property DeviceProtocol as Integer
- property DeviceReleaseNumber as Integer
- property DeviceSpeed as Integer
- property DeviceSubClass as Integer
- property ExtraPowerForPorts as Integer
- property Name as String
- property NumEndpoints as Integer
- property Path as String
- property Ports as Integer
- property ProductID as Integer
- property ProductName as String
- property Properties as Dictionary
- property RequestedPower as Integer
- property SerialNumber as String
- property VendorID as Integer
- property VendorName as String
- const kUSBApplicationSpecificClass = 254
- const kUSBATMNetworkingSubClass = 7
- const kUSBAudioControlSubClass = 1
- const kUSBAudioStreamingSubClass = 2
- const kUSBCommAbstractSubClass = 2
- const kUSBCommCAPISubClass = 5
- const kUSBCommDirectLineSubClass = 1
- const kUSBCommEthernetNetworkingSubClass = 6
- const kUSBCommMultiChannelSubClass = 4
- const kUSBCommonClassSubClass = 2
- const kUSBCommTelephoneSubClass = 3
- const kUSBCommunicationClass = 2
- const kUSBCompositeClass = 0
- const kUSBCompositeSubClass = 0
- const kUSBDataClass = 10
- const kUSBDFUSubClass = 1
- const kUSBDiagnosticClass = 220
- const kUSBHIDBootInterfaceSubClass = 1
- const kUSBHubClass = 9
- const kUSBHubSubClass = 0
- const kUSBIrDABridgeSubClass = 2
- const kUSBMassStorageATAPISubClass = 2
- const kUSBMassStorageQIC157SubClass = 3
- const kUSBMassStorageRBCSubClass = 1
- const kUSBMassStorageSCSISubClass = 6
- const kUSBMassStorageSFF8070iSubClass = 5
- const kUSBMassStorageUFISubClass = 4
- const kUSBMIDIStreamingSubClass = 3
- const kUSBMiscellaneousClass = 239
- const kUSBPersonalHealthcareClass = 15
- const kUSBReprogrammableDiagnosticSubClass = 1
- const kUSBRFControllerSubClass = 1
- const kUSBTestMeasurementSubClass = 3
- const kUSBVendorSpecificClass = 255
- const kUSBVideoControlSubClass = 1
- const kUSBVideoInterfaceCollectionSubClass = 3
- const kUSBVideoStreamingSubClass = 2
- const kUSBWirelessControllerClass = 224
- class MacUSBMBS
- method AbortPipe(PipeRef as Integer) as boolean
- method Close
- method ConfigurationValue as integer
- method Connect as boolean
- method DeviceProduct as integer
- method DeviceReleaseNumber as integer
- method DeviceVendor as integer
- method InterfaceClass as integer
- method InterfaceNumber as integer
- method InterfaceProtocol as integer
- method InterfaceSubClass as integer
- method LocationID as integer
- method NumEndpoints as integer
- method ReadPacket(PipeRef as Integer, MaxSize as integer = 1024) as Memoryblock
- method ReadRaw(PipeRef as Integer, MaxSize as integer = 1024) as Memoryblock
- method ResetPipe(PipeRef as Integer) as boolean
- method WritePacket(PipeRef as Integer, Data as Memoryblock) as boolean
- method WritePacket(PipeRef as Integer, Data as string) as boolean
- method WriteRaw(PipeRef as Integer, Data as Memoryblock) as boolean
- method WriteRaw(PipeRef as Integer, Data as string) as boolean
- property completionTimeout as Integer
- property LastError as Integer
- property noDataTimeout as Integer
- property ProductID as Integer
- property VendorID as Integer
- const kIOReturnSuccess = 0
- class MacUSBNotificationMBS
- method Constructor(vendor as integer = 0, product as integer = 0)
- shared method GetUSBDeviceInfo(DeviceHandle as integer, byref Vendor as string, byref Product as string, byref SerialNumber as string, byref Revision as integer) as boolean
- shared method QueryBSDName(DeviceHandle as integer) as string
- shared method Release(DeviceHandle as integer)
- shared method Retain(DeviceHandle as integer)
- property LastError as Integer
- event DeviceAdded(properties as dictionary, NewDevice as boolean, ClassName as string, DeviceName as string, DeviceHandle as integer)
- event DeviceRemoved(properties as dictionary, NewDevice as boolean, ClassName as string, DeviceName as string, DeviceHandle 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
- class WinUSBDeviceMBS
- shared method Devices as WinUSBDeviceMBS()
- property cdUSB as Integer
- property DescriptorType as Integer
- property DeviceClass as Integer
- property DeviceID as Integer
- property DeviceProtocol as Integer
- property DeviceSubClass as Integer
- property MaxEP0Size as Integer
- property Product as String
- property ProductID as Integer
- property SerialNumber as String
- property Vendor as String
- property VendorID as Integer
- class WinUSBInterfaceDescriptionMBS
- property AlternateSetting as Integer
- property DescriptorType as Integer
- property InterfaceClass as Integer
- property InterfaceIndex as Integer
- property InterfaceNumber as Integer
- property InterfaceProtocol as Integer
- property InterfaceSubClass as Integer
- property Length as Integer
- property NumEndpoints as Integer
- class WinUSBMBS
- method AbortPipe(PipeID as integer)
- shared method Available as boolean
- method Constructor(path as string)
- method ControlTransfer(SetupPacket as WinUSBSetupPacketMBS, Buffer as MemoryBlock) as integer
- method ControlTransfer(SetupPacket as WinUSBSetupPacketMBS, Buffer as String) as integer
- method DeviceSpeed as integer
- method FlushPipe(PipeID as integer)
- method GetAssociatedInterface(index as integer) as WinUSBMBS
- method QueryInterfaceSettings(index as integer) as WinUSBInterfaceDescriptionMBS
- method QueryPipe(AlternateInterfaceNumber as Integer, PipeIndex as integer) as WinUSBPipeInformationMBS
- method ReadPipeMemory(PipeID as Integer, BufferLength as Integer) as Memoryblock
- method ReadPipePacket(PipeID as Integer, MaxSize as Integer = 1024) as Memoryblock
- method ReadPipeString(PipeID as Integer, BufferLength as Integer) as string
- method ResetPipe(PipeID as integer)
- method WritePipe(PipeID as Integer, Buffer as MemoryBlock) as integer
- method WritePipe(PipeID as Integer, Buffer as String) as integer
- method WritePipePacket(PipeID as Integer, Buffer as MemoryBlock) as integer
- method WritePipePacket(PipeID as Integer, Buffer as String) as integer
- property DeviceHandle as Integer
- property Lasterror as Integer
- property Parent as WinUSBMBS
- property Tag as Variant
- property USBHandle as Integer
- property CurrentAlternateSetting as integer
- property PipePolicyAllowPartialReads(PipeID as Integer) as boolean
- property PipePolicyAutoClearStall(PipeID as Integer) as boolean
- property PipePolicyAutoFlush(PipeID as Integer) as boolean
- property PipePolicyIgnoreShortPackets(PipeID as Integer) as boolean
- property PipePolicyMaximumTransferSize(PipeID as Integer) as integer
- property PipePolicyPipeTransferTimeout(PipeID as Integer) as UInt32
- property PipePolicyRawIO(PipeID as Integer) as boolean
- property PipePolicyResetPipeOnResume(PipeID as Integer) as boolean
- property PipePolicyShortPacketTerminate(PipeID as Integer) as boolean
- const AutoSuspend = &h81
- const FullSpeed = 2
- const HighSpeed = 3
- const LowSpeed = 1
- const SuspendDelay = &h83
- class WinUSBNotificationMBS
- method Constructor
- property NotifyHandle as Integer
- property WindowHandle as Integer
- event DeviceAdded(Name as string)
- event DeviceRemoved(Name as string)
- class WinUSBPipeInformationMBS
- property Interval as Integer
- property MaximumPacketSize as Integer
- property PipeId as Integer
- property PipeType as Integer
- const UsbdPipeTypeBulk = 2
- const UsbdPipeTypeControl = 0
- const UsbdPipeTypeInterrupt = 3
- const UsbdPipeTypeIsochronous = 1
- class WinUSBSetupPacketMBS
- property Index as Integer
- property Length as Integer
- property Request as Integer
- property RequestType as Integer
- property Value as Integer
The items on this page are in the following plugins: MBS Real Studio MacOSX Plugin, MBS Real Studio USB Plugin.
Links
MBS Xojo Plugins