Returns the amount of bandwidth available on the bus for allocation to periodic pipes. If the device is a high or super speed device, it will be the number of bytes per microframe (125 µsecs). If it is a full speed device, it will be the number of bytes per frame (1ms)
- macOS 10.7+
- Mac Catalyst 13.0+
Pointer to the IOUSBInterfaceInterface.
Pointer to UInt32 to hold the amount of bandwidth available (in bytes per frame or microframe).
Returns kIOReturnSuccess if successful, kIOReturnNoDevice if there is no connection to an IOService.
This function is useful for determining the correct AltInterface setting as well as for using SetPipePolicy. The interface does not have to be open to use this function.