Home | History | Annotate | Download | only in examples

Lines Matching defs:cbw

98 // Section 5.1: Command Block Wrapper (CBW)
321 struct command_block_wrapper cbw;
333 if ((cdb_len == 0) || (cdb_len > sizeof(cbw.CBWCB))) {
339 memset(&cbw, 0, sizeof(cbw));
340 cbw.dCBWSignature[0] = 'U';
341 cbw.dCBWSignature[1] = 'S';
342 cbw.dCBWSignature[2] = 'B';
343 cbw.dCBWSignature[3] = 'C';
345 cbw.dCBWTag = tag++;
346 cbw.dCBWDataTransferLength = data_length;
347 cbw.bmCBWFlags = direction;
348 cbw.bCBWLUN = lun;
350 cbw.bCBWCBLength = cdb_len;
351 memcpy(cbw.CBWCB, cdb, cdb_len);
356 r = libusb_bulk_transfer(handle, endpoint, (unsigned char*)&cbw, 31, &size, 1000);