Platforms to show: All Mac Windows Linux Cross-Platform
Back to MacHIDMBS class.
MacHIDMBS.IOHIDDeviceInterface122Handle as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | USB | MBS USB Plugin | 15.0 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
This is of type IOHIDDeviceInterface122** from IOKit.
(Read only property)
MacHIDMBS.IOHIDObjectIteratorHandle as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | USB | MBS USB Plugin | 15.0 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
This is of type io_iterator_t from IOKit.
(Read only property)
MacHIDMBS.IOObjectHandle as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | USB | MBS USB Plugin | 15.0 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
This is of type io_object_t from IOKit.
(Read only property)
MacHIDMBS.Lasterror as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | USB | MBS USB Plugin | 6.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
0 is success.
-1 means that the function is not available.
else Mac OS USB error codes.
See table below, e.g. error -536854447 (=&he0004051) is an USB timeout.
Constant | Number | LastError value | Description |
kIOUSBUnknownPipeErr | &h61 | &he0004061 | Pipe ref not recognized |
kIOUSBTooManyPipesErr | &h60 | &he0004060 | Too many pipes |
kIOUSBNoAsyncPortErr | &h5f | &he000405f | no async port |
kIOUSBNotEnoughPipesErr | &h5e | &he000405e | not enough pipes in interface |
kIOUSBNotEnoughPowerErr | &h5d | &he000405d | not enough power for selected configuration |
kIOUSBEndpointNotFound | &h57 | &he0004057 | Endpoint Not found |
kIOUSBConfigNotFound | &h56 | &he0004056 | Configuration Not found |
kIOUSBPortWasSuspended | &h52 | &he0004052 | The transaction was returned because the port was suspended |
kIOUSBPipeStalled | &h4f | &he000404f | Pipe has stalled, error needs to be cleared |
kIOUSBInterfaceNotFound | &h4e | &he000404e | Interface ref not recognized |
kIOUSBLowLatencyBufferNotPreviouslyAllocated | &h4d | &he000404d | Attempted to use user land low latency isoc calls w/out calling PrepareBuffer (on the data buffer) first |
kIOUSBLowLatencyFrameListNotPreviouslyAllocated | &h4c | &he000404c | Attempted to use user land low latency isoc calls w/out calling PrepareBuffer (on the frame list) first |
kIOUSBHighSpeedSplitError | &h4b | &he000404b | Error to hub on high speed bus trying to do split transaction |
kIOUSBSyncRequestOnWLThread | &h4a | &he000404a | A synchronous USB request was made on the workloop thread (from a callback?). Only async requests are permitted in that case |
kIOUSBDeviceNotHighSpeed | &h49 | &he0004049 | Name is deprecated, see below |
kIOUSBDeviceTransferredToCompanion | &h49 | &he0004049 | The device has been tranferred to another controller for enumeration |
kIOUSBClearPipeStallNotRecursive | &h48 | &he0004048 | ClearPipeStall should not be called recursively |
kIOUSBDevicePortWasNotSuspended | &h47 | &he0004047 | Port was not suspended |
kIOUSBEndpointCountExceeded | &h46 | &he0004046 | The endpoint was not created because the controller cannot support more endpoints |
kIOUSBDeviceCountExceeded | &h45 | &he0004045 | The device cannot be enumerated because the controller cannot support more devices |
kIOUSBStreamsNotSupported | &h44 | &he0004044 | The request cannot be completed because the XHCI controller does not support streams |
kIOUSBInvalidSSEndpoint | &h43 | &he0004043 | An endpoint found in a SuperSpeed device is invalid (usually because there is no Endpoint Companion Descriptor) |
kIOUSBTooManyTransactionsPending | &h42 | &he0004042 | The transaction cannot be submitted because it would exceed the allowed number of pending transactions |
kIOUSBTransactionReturned | &h50 | &he0004050 | The transaction has been returned to the caller |
kIOUSBTransactionTimeout | &h51 | &he0004051 | Transaction timed out |
MacHIDMBS.OnlyOneEventPerTick as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | USB | MBS USB Plugin | 14.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Some devices send a lot of measurement data.
This option allows to slow down and limit to 60 events per second.
So if device sends a thousand data records per second, we can ignore over 90% and just pick a few to display.
(Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | USB | MBS USB Plugin | 6.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Please specify time in Milliseconds. Default is 500ms.
(Read and Write property)
The items on this page are in the following plugins: MBS USB Plugin.