USB services: Difference between revisions
Line 438: | Line 438: | ||
== AcquireUsbIf == | == AcquireUsbIf == | ||
Takes an input u32 and a type-0x6 output buffer, returns an [[#IClientIfSession]]. | Takes an input u32 and a type-0x6 output buffer, returns an [[#IClientIfSession]]. On [3.0.0+] this takes an additional type-0x6 output buffer. | ||
The input u32 is from the u32 at entry+0 from the associated [[#QueryAvailableInterfaces]] output entry. User-processes use size 0x1B8 for the output buffer. The output buffer contains the first 0x1B8-bytes from [[#UsbHsInterface]]. | The input u32 is from the u32 at entry+0 from the associated [[#QueryAvailableInterfaces]] output entry. User-processes use size 0x1B8 for the first output buffer. The first output buffer contains the first 0x1B8-bytes from [[#UsbHsInterface]]. | ||
This returns an error if the interface was already acquired by another process. | This returns an error if the interface was already acquired by another process. |