Lines Matching full:endpoints
35 int *endpoints = (int *)arg;
42 ret = usb_device_bulk_transfer(sDevice, endpoints[0], buffer, sizeof(buffer), 1000);
55 usb_device_bulk_transfer(sDevice, endpoints[1], message, strlen(message), 1000);
122 fprintf(stderr, "Endpoints not found\n");
131 int endpoints[2];
133 endpoints[0] = ep1->bEndpointAddress;
134 endpoints[1] = ep2->bEndpointAddress;
136 endpoints[0] = ep2->bEndpointAddress;
137 endpoints[1] = ep1->bEndpointAddress;
139 pthread_create(&th, NULL, message_thread, (void *)endpoints);