Contents

DeviceRequest(IOUSBDevRequest *, IOUSBCompletion *)

Sends a control request to the default control pipe in the device (pipe zero)

Declaration

virtual IOReturn DeviceRequest(
 IOUSBDevRequest *request,
 IOUSBCompletion *completion = 0);

Parameters

  • request:

    The parameter block to send to the device

  • completion:

    Function to call when request completes. If omitted then DeviceRequest() executes synchronously, blocking until the request is complete. If the request is asynchronous, the client must make sure that the IOUSBDevRequest is not released until the callback has occurred.

See Also

Miscellaneous