Changes in uspace/lib/usbhid/src/hidreq.c [4bfe063:9d58539] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhid/src/hidreq.c
r4bfe063 r9d58539 45 45 #include <usb/hid/request.h> 46 46 47 47 /*----------------------------------------------------------------------------*/ 48 48 /** 49 49 * Send Set Report request to the HID device. … … 97 97 } 98 98 99 99 /*----------------------------------------------------------------------------*/ 100 100 /** 101 101 * Send Set Protocol request to the HID device. … … 145 145 } 146 146 147 147 /*----------------------------------------------------------------------------*/ 148 148 /** 149 149 * Send Set Idle request to the HID device. … … 182 182 uint16_t value = duration << 8; 183 183 184 rc = usb_control_request_set(ctrl_pipe, 185 USB_REQUEST_TYPE_CLASS, USB_REQUEST_RECIPIENT_INTERFACE, 184 rc = usb_control_request_set(ctrl_pipe, 185 USB_REQUEST_TYPE_CLASS, USB_REQUEST_RECIPIENT_INTERFACE, 186 186 USB_HIDREQ_SET_IDLE, value, iface_no, NULL, 0); 187 187 188 188 if (rc != EOK) { 189 usb_log_warning(" Device did not accept Set Idle request: "189 usb_log_warning("Error sending Set Idle request to the device: " 190 190 "%s.\n", str_error(rc)); 191 191 return rc; … … 195 195 } 196 196 197 197 /*----------------------------------------------------------------------------*/ 198 198 /** 199 199 * Send Get Report request to the HID device. … … 251 251 } 252 252 253 253 /*----------------------------------------------------------------------------*/ 254 254 /** 255 255 * Send Get Protocol request to the HID device. … … 310 310 } 311 311 312 312 /*----------------------------------------------------------------------------*/ 313 313 /** 314 314 * Send Get Idle request to the HID device. … … 373 373 } 374 374 375 375 /*----------------------------------------------------------------------------*/ 376 376 377 377 /**
Note:
See TracChangeset
for help on using the changeset viewer.