Usb Bulk Tranceport driver Made by Shoichi Yamasuge. LoadLibray USBDEViCE. moive http://youtu.be/uGPH3AwrFpU USB バルク通信用のドライバーです 使用時には、USBDEVICEライブラリの追加必要。 動画は下記 http://youtu.be/uGPH3AwrFpU
Diff: USBBULK.cpp
- Revision:
- 2:2dc4682d7c0f
- Parent:
- 1:84abb7607a27
- Child:
- 3:a71b7d2b97ef
--- a/USBBULK.cpp Wed Feb 26 14:50:50 2014 +0000 +++ b/USBBULK.cpp Wed Feb 26 15:05:45 2014 +0000 @@ -30,9 +30,9 @@ bool result; result = USBDevice::readEP(EPBULK_OUT, Data, &bytesRead, MAX_BULK_SIZE ); #if defined(TARGET_LPC11UXX) - wait_us(10); //Counter Mesure USB Stop !? + wait_us(100); //Counter Mesure USB Bank Wait!? #endif - if(!USBDevice::readStart(EPBULK_OUT, MAX_BULK_SIZE )) + if(!readStart(EPBULK_OUT, MAX_BULK_SIZE )) { return false; } @@ -47,9 +47,9 @@ bool result; result = USBDevice::readEP_NB(EPBULK_OUT, Data, &bytesRead, MAX_BULK_SIZE ); #if defined(TARGET_LPC11UXX) - wait_us(10); //Counter Mesure USB Stop !? + wait_us(100); //Counter Mesure USB Bank Wait !? #endif - if(!USBDevice::readStart(EPBULK_OUT, MAX_BULK_SIZE )) + if(!readStart(EPBULK_OUT, MAX_BULK_SIZE )) { return false; }