On Mon, Oct 29, 2012 at 7:51 AM, Xiaofan Chen <xiaof...@gmail.com> wrote: > Great you know what you want. It may be possible to achieve what you > want with libwdi+libusbx, the problem is that 1 to 2 seconds maximum > is not guaranteed if using libwdi to switch drivers, the process can take > minutes.
The other question is whether the "competing program" is really cross-platform or not. For example, it may be Windows only and in that case you can use native Windows API for SCSI Pass Through. I believe this is the case with ST-Link V1 as well. Just take note ST switches to use generic class and WinUSB driver for the ST-Link V2. Yet another possibility is to use native Windows API under Windows and libusbx under Linux. For Mac OS X, the kernel itself does not support SCSI Pass Through but you may be able to use 3rd party kernel driver like this. http://wagerlabs.com/blog/2008/02/04/writing-a-mac-osx-usb-device-driver-that-implements-scsi-pass-through/ http://sourceforge.net/apps/trac/smartmontools/ticket/25 In that case, the easiet solution is to forget about libusbx and use the SCSI Pass Through APIs under Windows, Linux and Mac OS X. -- Xiaofan ------------------------------------------------------------------------------ The Windows 8 Center - In partnership with Sourceforge Your idea - your app - 30 days. Get started! http://windows8center.sourceforge.net/ what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/ _______________________________________________ libusbx-devel mailing list libusbx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libusbx-devel