setProtocol
Sets the active protocol to use for communicating with the USB device.
Declaration
virtual kern_return_t setProtocol(uint16_t protocol);Parameters
- protocol:
The protocol to use for the device. Specify
0to use the boot protocol or1to use the report protocol.
Return Value
kIOReturnSuccess on success, or another value if an error occurs. See Error Codes.
Discussion
At startup, the Start method sets the protocol to the report protocol.