Platforms to show: All Mac Windows Linux Cross-Platform
MacUSBMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | USB | MBS USB Plugin | 12.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Written for a client and probably not yet universally useable, so it may not work with your device.
- 5 properties
- property completionTimeout as Integer
- property LastError as Integer
- property noDataTimeout as Integer
- property ProductID as Integer
- property VendorID as Integer
- 21 methods
- method AbortPipe(PipeRef as Integer) as boolean
- method ClearPipeStall(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
- 18 constants
Errors
Constant | Value | Description |
---|---|---|
kIOReturnSuccess | 0 |
The error constant for no error. |
kIOUSBConfigNotFound | &he0004056 |
Configuration Not found. |
kIOUSBDeviceNotHighSpeed | &he0004049 |
The device is not a high speed device, so the EHCI driver returns an error. |
kIOUSBDevicePortWasNotSuspended | &he0004050 |
Port was not suspended. |
kIOUSBEndpointNotFound | &he0004057 |
Endpoint Not found. |
kIOUSBHighSpeedSplitError | &he000404b |
Error to hub on high speed bus trying to do split transaction. |
kIOUSBInterfaceNotFound | &he000404e |
Interface ref not recognized. |
kIOUSBLowLatencyBufferNotPreviouslyAllocated | &he000404d |
Attempted to use user land low latency isoc calls w/out calling PrepareBuffer (on the data buffer) first. |
kIOUSBLowLatencyFrameListNotPreviouslyAllocated | &he000404c |
Attempted to use user land low latency isoc calls w/out calling PrepareBuffer (on the frame list) first. |
kIOUSBNoAsyncPortErr | &he000405f |
No async port. |
kIOUSBNotEnoughPipesErr | &he000405e |
Not enough pipes in interface. |
kIOUSBNotEnoughPowerErr | &he000405d |
Not enough power for selected configuration. |
kIOUSBPipeStalled | &he000404f |
Pipe has stalled, error needs to be cleared. |
kIOUSBSyncRequestOnWLThread | &he000404a |
A synchronous USB request was made on the workloop thread (from a callback?). Only async requests are permitted in that case. |
kIOUSBTooManyPipesErr | &he0004060 |
Too many pipes. |
kIOUSBTransactionReturned | &he0004050 |
The transaction has been returned to the caller. |
kIOUSBTransactionTimeout | &he0004051 |
Transaction timed out. |
kIOUSBUnknownPipeErr | &he0004061 |
Pipe ref not recognized. |
This class has no sub classes.
Some examples using this class:
Blog Entries
- MBS Xojo / Real Studio Plugins, version 14.0pr1
- MBS Xojo / Real Studio Plugins, version 13.5pr10
- MBS Real Studio Plugins, version 13.1pr16
- MBS Real Studio Plugins, version 13.0pr1
- MonkeyBread Software Releases the MBS Real Studio plug-ins in version 12.5
- MBS Real Studio Plugins, version 12.5pr11
The items on this page are in the following plugins: MBS USB Plugin.
MacUSBDeviceMBS - MacUSBNotificationMBS