Changes in uspace/drv/usbhid/hidreq.c [2b12f06:b330cb1f] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhid/hidreq.c
r2b12f06 rb330cb1f 46 46 47 47 /*----------------------------------------------------------------------------*/ 48 /** 49 * Send Set Report request to the HID device. 50 * 51 * @param hid_dev HID device to send the request to. 52 * @param type Type of the report. 53 * @param buffer Report data. 54 * @param buf_size Report data size (in bytes). 55 * 56 * @retval EOK if successful. 57 * @retval EINVAL if no HID device is given. 58 * @return Other value inherited from one of functions 59 * usb_endpoint_pipe_start_session(), usb_endpoint_pipe_end_session(), 60 * usb_control_request_set(). 61 */ 48 62 49 int usbhid_req_set_report(usbhid_dev_t *hid_dev, 63 50 usb_hid_report_type_t type, uint8_t *buffer, size_t buf_size) … … 110 97 111 98 /*----------------------------------------------------------------------------*/ 112 /** 113 * Send Set Protocol request to the HID device. 114 * 115 * @param hid_dev HID device to send the request to. 116 * @param protocol Protocol to set. 117 * 118 * @retval EOK if successful. 119 * @retval EINVAL if no HID device is given. 120 * @return Other value inherited from one of functions 121 * usb_endpoint_pipe_start_session(), usb_endpoint_pipe_end_session(), 122 * usb_control_request_set(). 123 */ 99 124 100 int usbhid_req_set_protocol(usbhid_dev_t *hid_dev, usb_hid_protocol_t protocol) 125 101 { … … 169 145 170 146 /*----------------------------------------------------------------------------*/ 171 /** 172 * Send Set Idle request to the HID device. 173 * 174 * @param hid_dev HID device to send the request to. 175 * @param duration Duration value (is multiplicated by 4 by the device to 176 * get real duration in miliseconds). 177 * 178 * @retval EOK if successful. 179 * @retval EINVAL if no HID device is given. 180 * @return Other value inherited from one of functions 181 * usb_endpoint_pipe_start_session(), usb_endpoint_pipe_end_session(), 182 * usb_control_request_set(). 183 */ 147 184 148 int usbhid_req_set_idle(usbhid_dev_t *hid_dev, uint8_t duration) 185 149 { … … 231 195 232 196 /*----------------------------------------------------------------------------*/ 233 /** 234 * Send Get Report request to the HID device. 235 * 236 * @param[in] hid_dev HID device to send the request to. 237 * @param[in] type Type of the report. 238 * @param[in][out] buffer Buffer for the report data. 239 * @param[in] buf_size Size of the buffer (in bytes). 240 * @param[out] actual_size Actual size of report received from the device 241 * (in bytes). 242 * 243 * @retval EOK if successful. 244 * @retval EINVAL if no HID device is given. 245 * @return Other value inherited from one of functions 246 * usb_endpoint_pipe_start_session(), usb_endpoint_pipe_end_session(), 247 * usb_control_request_set(). 248 */ 197 249 198 int usbhid_req_get_report(usbhid_dev_t *hid_dev, usb_hid_report_type_t type, 250 199 uint8_t *buffer, size_t buf_size, size_t *actual_size) … … 297 246 } 298 247 299 /*----------------------------------------------------------------------------*/300 /**301 * Send Get Protocol request to the HID device.302 *303 * @param[in] hid_dev HID device to send the request to.304 * @param[out] protocol Current protocol of the device.305 *306 * @retval EOK if successful.307 * @retval EINVAL if no HID device is given.308 * @return Other value inherited from one of functions309 * usb_endpoint_pipe_start_session(), usb_endpoint_pipe_end_session(),310 * usb_control_request_set().311 */312 248 int usbhid_req_get_protocol(usbhid_dev_t *hid_dev, usb_hid_protocol_t *protocol) 313 249 { … … 367 303 } 368 304 369 /*----------------------------------------------------------------------------*/370 /**371 * Send Get Idle request to the HID device.372 *373 * @param[in] hid_dev HID device to send the request to.374 * @param[out] duration Duration value (multiplicate by 4 to get real duration375 * in miliseconds).376 *377 * @retval EOK if successful.378 * @retval EINVAL if no HID device is given.379 * @return Other value inherited from one of functions380 * usb_endpoint_pipe_start_session(), usb_endpoint_pipe_end_session(),381 * usb_control_request_set().382 */383 305 int usbhid_req_get_idle(usbhid_dev_t *hid_dev, uint8_t *duration) 384 306 {
Note:
See TracChangeset
for help on using the changeset viewer.