MacHIDMBS properties

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

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
The internal handle for the device interface object.

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
The iterator used to find USB devices.

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
The internal object reference for current device.

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
Last error code.

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.

ConstantNumberLastError valueDescription
kIOUSBUnknownPipeErr&h61&he0004061Pipe ref not recognized
kIOUSBTooManyPipesErr&h60&he0004060Too many pipes
kIOUSBNoAsyncPortErr&h5f&he000405fno async port
kIOUSBNotEnoughPipesErr&h5e&he000405enot enough pipes in interface
kIOUSBNotEnoughPowerErr&h5d&he000405dnot enough power for selected configuration
kIOUSBEndpointNotFound&h57&he0004057Endpoint Not found
kIOUSBConfigNotFound&h56&he0004056Configuration Not found
kIOUSBPortWasSuspended&h52&he0004052The transaction was returned because the port was suspended
kIOUSBPipeStalled&h4f&he000404fPipe has stalled, error needs to be cleared
kIOUSBInterfaceNotFound&h4e&he000404eInterface ref not recognized
kIOUSBLowLatencyBufferNotPreviouslyAllocated&h4d&he000404dAttempted to use user land low latency isoc calls w/out calling PrepareBuffer (on the data buffer) first
kIOUSBLowLatencyFrameListNotPreviouslyAllocated&h4c&he000404cAttempted to use user land low latency isoc calls w/out calling PrepareBuffer (on the frame list) first
kIOUSBHighSpeedSplitError&h4b&he000404bError to hub on high speed bus trying to do split transaction
kIOUSBSyncRequestOnWLThread&h4a&he000404aA synchronous USB request was made on the workloop thread (from a callback?). Only async requests are permitted in that case
kIOUSBDeviceNotHighSpeed&h49&he0004049Name is deprecated, see below
kIOUSBDeviceTransferredToCompanion&h49&he0004049The device has been tranferred to another controller for enumeration
kIOUSBClearPipeStallNotRecursive&h48&he0004048ClearPipeStall should not be called recursively
kIOUSBDevicePortWasNotSuspended&h47&he0004047Port was not suspended
kIOUSBEndpointCountExceeded&h46&he0004046The endpoint was not created because the controller cannot support more endpoints
kIOUSBDeviceCountExceeded&h45&he0004045The device cannot be enumerated because the controller cannot support more devices
kIOUSBStreamsNotSupported&h44&he0004044The request cannot be completed because the XHCI controller does not support streams
kIOUSBInvalidSSEndpoint&h43&he0004043An endpoint found in a SuperSpeed device is invalid (usually because there is no Endpoint Companion Descriptor)
kIOUSBTooManyTransactionsPending&h42&he0004042The transaction cannot be submitted because it would exceed the allowed number of pending transactions
kIOUSBTransactionReturned&h50&he0004050The transaction has been returned to the caller
kIOUSBTransactionTimeout&h51&he0004051Transaction timed out
(Read and Write property)

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
Whether to limit ReceivedData event.

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)

MacHIDMBS.TimeOut 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
Timeout value to use for sending/reading USB data.

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.


💬 Ask a question or report a problem