Lines Matching defs:controlParams

227 static struct UsbControlRequest UsbControlSetUp(struct UsbControlParams *controlParams)
230 dr.target = controlParams->target;
231 dr.reqType = controlParams->reqType;
232 dr.directon = controlParams->directon;
233 dr.request = controlParams->request;
234 dr.value = CPU_TO_LE16(controlParams->value);
235 dr.index = CPU_TO_LE16(controlParams->index);
236 dr.buffer = controlParams->data;
237 dr.length = CPU_TO_LE16(controlParams->size);
244 struct UsbControlParams controlParams = {};
254 controlParams.request = USB_DDK_REQ_GET_DESCRIPTOR;
255 controlParams.target = USB_REQUEST_TARGET_DEVICE;
256 controlParams.reqType = USB_REQUEST_TYPE_STANDARD;
257 controlParams.directon = USB_REQUEST_DIR_FROM_DEVICE;
258 controlParams.value = (((uint32_t)(descParams->type)) << offset) + descParams->index;
259 controlParams.index = 0;
260 controlParams.data = descParams->buf;
261 controlParams.size = descParams->size;
268 parmas.ctrlReq = UsbControlSetUp(&controlParams);
305 struct UsbControlParams controlParams = {};
312 controlParams.request = USB_DDK_REQ_GET_STATUS;
313 controlParams.target = USB_REQUEST_TARGET_DEVICE;
314 controlParams.reqType = USB_REQUEST_TYPE_STANDARD;
315 controlParams.directon = USB_REQUEST_DIR_FROM_DEVICE;
316 controlParams.value = 0;
317 controlParams.index = 0;
318 controlParams.data = (void *)(&ss);
319 controlParams.size = sizeof(ss);
326 parmas.ctrlReq = UsbControlSetUp(&controlParams);
353 struct UsbControlParams controlParams = {};
360 controlParams.request = USB_DDK_REQ_GET_INTERFACE;
361 controlParams.target = USB_REQUEST_TARGET_INTERFACE;
362 controlParams.reqType = USB_REQUEST_TYPE_STANDARD;
363 controlParams.directon = USB_REQUEST_DIR_FROM_DEVICE;
364 controlParams.value = 0;
365 controlParams.index = 0;
366 controlParams.data = (void *)buf;
367 controlParams.size = 1;
374 parmas.ctrlReq = UsbControlSetUp(&controlParams);
392 struct UsbControlParams controlParams = {};
399 controlParams.request = USB_DDK_REQ_GET_CONFIGURATION;
400 controlParams.target = USB_REQUEST_TARGET_DEVICE;
401 controlParams.reqType = USB_REQUEST_TYPE_STANDARD;
402 controlParams.directon = USB_REQUEST_DIR_FROM_DEVICE;
403 controlParams.value = 0;
404 controlParams.index = 0;
405 controlParams.data = (void *)buf;
406 controlParams.size = 1;
413 parmas.ctrlReq = UsbControlSetUp(&controlParams);
436 struct UsbControlParams controlParams = {};
446 controlParams.request = request;
447 controlParams.target = USB_REQUEST_TARGET_INTERFACE;
448 controlParams.reqType = USB_REQUEST_TYPE_CLASS;
449 controlParams.directon = USB_REQUEST_DIR_TO_DEVICE;
450 controlParams.value = value;
451 controlParams.index = index;
452 controlParams.data = buf;
453 controlParams.size = len;
462 parmas.ctrlReq = UsbControlSetUp(&controlParams);
483 struct UsbControlParams controlParams = {};
490 controlParams.request = USB_DDK_REQ_GET_DESCRIPTOR;
491 controlParams.target = USB_REQUEST_TARGET_DEVICE;
492 controlParams.reqType = USB_REQUEST_TYPE_STANDARD;
493 controlParams.directon = USB_REQUEST_DIR_FROM_DEVICE;
494 controlParams.value = (((uint8_t)USB_DDK_DT_DEVICE) << offset);
495 controlParams.index = 0;
496 controlParams.data = buf;
497 controlParams.size = size;
504 parmas.ctrlReq = UsbControlSetUp(&controlParams);