Platforms to show: All Mac Windows Linux Cross-Platform

Back to IOWarriorCarbonMBS class.

IOWarriorCarbonMBS.CountInterfaces as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method IO Warrior MBS USB Plugin 6.0 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Counts the number of interfaces.

Please email support if you need more functions to handle more than one device.

Some examples using this method:

IOWarriorCarbonMBS.FirstInterfaceOfType(InterfaceType as Integer) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method IO Warrior MBS USB Plugin 7.1 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Searches the first device of the given type.

Returns 0 on any error.
This value is needed for WriteToInterface and ReadFromInterface calls.

Some examples using this method:

IOWarriorCarbonMBS.Init as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method IO Warrior MBS USB Plugin 3.3 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Inits the device functions.

Return 0 if successfull.

IOWarriorCarbonMBS.InterfaceAtIndex(index as Integer) as IOWarriorCarbonDeviceMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method IO Warrior MBS USB Plugin 7.1 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
The interface with the given index.

Returns nil on any error.
Index is zero based and goes till CountInterfaces-1.

Some examples using this method:

IOWarriorCarbonMBS.IsPresent as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method IO Warrior MBS USB Plugin 3.3 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Counts the devices found.

Some examples using this method:

IOWarriorCarbonMBS.ReadFromInterface(InterfaceHandle as Integer, reportID as Integer, size as Integer, data as memoryblock) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method IO Warrior MBS USB Plugin 7.1 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Writes bytes from the interface.

Size must match the device's report size.

Some examples using this method:

IOWarriorCarbonMBS.ReadInterface0(byref int32 as Integer) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method IO Warrior MBS USB Plugin 3.3 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Reads a 32bit value from interface 0.

Some examples using this method:

IOWarriorCarbonMBS.ReadInterface1(reportid as Integer, m as memoryblock) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method IO Warrior MBS USB Plugin 3.3 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Reads from interface 0.

IOWarriorCarbonMBS.WriteInterface0(value as Integer) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method IO Warrior MBS USB Plugin 3.3 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Writes to interface 0.

Some examples using this method:

IOWarriorCarbonMBS.WriteInterface1(reportid as Integer, m as memoryblock) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method IO Warrior MBS USB Plugin 3.3 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Writes to interface 1.

IOWarriorCarbonMBS.WriteToInterface(InterfaceHandle as Integer, size as Integer, data as memoryblock) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method IO Warrior MBS USB Plugin 7.1 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Writes bytes to the interface.

Size must match the device's report size.

The items on this page are in the following plugins: MBS USB Plugin.


💬 Ask a question or report a problem
The biggest plugin in space...