Code examples for UsbDeviceConnection

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
46:	connection.controlTransfer(0x40, 0, 0, 0, null, 0, 0);// reset 
47:	connection.controlTransfer(0x40, 0, 1, 0, null, 0, 0);// clear Rx 
48:	connection.controlTransfer(0x40, 0, 2, 0, null, 0, 0);// clear Tx 
49:	connection.controlTransfer(0x40, 0x02, 0x0000, 0, null, 0, 0); // flow control none 
-
55:	connection.controlTransfer(0x40, 0x03, 0x0034, 0, null, 0, 0); 
-
57:	connection.controlTransfer(0x40, 0x04, 0x0008, 0, null, 0, 0); // n/8/1 
Full Snippet Info
6
CodeRank
52:	connection.controlTransfer(USB_CONTROL_IN,  0x5f, 0x0000, 0x0000, buffer, 8, 0); //0x27 0x00 
53:	connection.controlTransfer(USB_CONTROL_OUT, 0xa1, 0x0000, 0x0000, null, 0, 0); 
-
56:	connection.controlTransfer(USB_CONTROL_OUT, 0x9a, 0x1312, 0x9803, null, 0, 0); 
57:	connection.controlTransfer(USB_CONTROL_OUT, 0x9a, 0x0f2c, 0x0010, null, 0, 0); 
-
59:	connection.controlTransfer(USB_CONTROL_IN,  0x95, 0x2518, 0x0000, buffer, 8, 0); //0x56 0x00 
60:	connection.controlTransfer(USB_CONTROL_OUT, 0x95, 0x2518, 0x0050, null, 0, 0); 
-
63:	connection.controlTransfer(USB_CONTROL_IN,  0x95, 0x0706, 0x0000, buffer, 8, 0); //0xff 0xee 
-
65:	connection.controlTransfer(USB_CONTROL_OUT, 0xa1, 0x501f, 0xd90a, null, 0, 0); 
-
68:	connection.controlTransfer(USB_CONTROL_OUT, 0x9a, 0x1312, 0x9803, null, 0, 0); 
69:	connection.controlTransfer(USB_CONTROL_OUT, 0x9a, 0x0f2c, 0x0010, null, 0, 0); 
-
72:	connection.controlTransfer(USB_CONTROL_OUT, 0xa4, 0x00ff, 0x0000, null, 0, 0); // or maybe 0xffff? 
-
77:	connection.controlTransfer(USB_CONTROL_IN,  0x95, 0x0706, 0x0000, buffer, 8, 0); //0x9f 0xee 
-
80:	connection.controlTransfer(USB_CONTROL_OUT, 0xa4, 0x00ff, 0x0000, null, 0, 0); // or maybe 0xffff? 
-
83:	connection.controlTransfer(USB_CONTROL_OUT, 0x9a, 0x1312, 0x9803, null, 0, 0); 
84:	connection.controlTransfer(USB_CONTROL_OUT, 0x9a, 0x0f2c, 0x0010, null, 0, 0); 
Full Snippet Info
6
CodeRank
44:	connection.controlTransfer(0x40, 0x00, 0xff, 0xff, null, 0, 0); 
45:	connection.controlTransfer(0x40, 0x01, 0x00, 0x02, null, 0, 0); 
46:	connection.controlTransfer(0x40, 0x01, 0x0f, 0x00, null, 0, 0); 
Full Snippet Info
5
CodeRank
136:	if (connection != null && connection.claimInterface(intf, true)) { 
Full Snippet Info
5
CodeRank
114:	connection.controlTransfer(REQUEST_TYPE, REQUEST, REQ_VALUE, REQ_INDEX, 
-
120:	connection.close(); 
Full Snippet Info
5
CodeRank
99:	connection.controlTransfer(GET_LINE_REQUEST_TYPE, GET_LINE_REQUEST, 0, 0, oldSettings, 7, 100); 
-
164:	connection.controlTransfer(SET_LINE_REQUEST_TYPE, SET_LINE_REQUEST, 0, 0, buffer, 7, 100); 
Full Snippet Info
5
CodeRank
285:	connection.releaseInterface(intf); 
286:	connection.close(); 
Full Snippet Info
4
CodeRank
147:	connection.close(); // Linux take care of releasing everything else ... 
Full Snippet Info
5
CodeRank
262:	connection.releaseInterface(intf); 
263:	connection.close(); 
Full Snippet Info
4
CodeRank
277:	connection.releaseInterface(intf); 
278:	connection.close(); 
Full Snippet Info
4
CodeRank
76:	deviceConnection.releaseInterface(usbInterface); 
Full Snippet Info
5
CodeRank
254:	connection.releaseInterface(intf); 
255:	connection.close(); 
Full Snippet Info
4
CodeRank
252:	connection.releaseInterface(intf); 
253:	connection.close(); 
Full Snippet Info
4
CodeRank
135:	mConnection.releaseInterface(mUsbInterface); 
136:	mConnection.close(); 
Full Snippet Info
4
CodeRank
168:	mUsbDeviceConnection.releaseInterface(mUsbInterface); 
169:	mUsbDeviceConnection.close(); 
Full Snippet Info
4
CodeRank