阅读:3509回复:7
how to hot-replug the usb device?
Now I can send usb request command to the usb device,But I don\'t known how to do hot-replug like on windows os .
|
|
|
沙发#
发布于:2003-01-07 11:40
The IOUSBMassStorageClass is not sample code, but the actual code for the
USB Mass Storage Class driver that exists in Mac OS X which fully supports USB storage devices with multiple logical units (look in the file IOUSBMassStorageClass.cpp and the method BeginProvidedServices). It may be easier for you to subclass your driver from IOUSBMassStorageClass instead of trying to write an entirely new driver. If your device is USB Mass Storage compliant, it should with work without the need for you to write a driver. Is there something unique about your device that you need to support or a problem with the builtin IOUSBMassStorageClass driver that is preventing you from using it? |
|
板凳#
发布于:2003-01-07 13:12
U may answer it for my previous question.any way,i will give u all score ,for i need it.
|
|
|
地板#
发布于:2003-02-13 18:05
什么意思?不太理解,是要得到插拔的通知消息么?
Now I can send usb request command to the usb device,But I don\'t known how to do hot-replug like on windows os . |
|
地下室#
发布于:2003-03-21 13:41
1,in app you can install a callback fuction,
2,in driver, please study the function table like window. I can not give you source code, but I can tell you where you go to find it. shenchenggui |
|
5楼#
发布于:2003-03-21 16:10
Where to got the sample code? Thanks.
[编辑 - 3/21/03 by MacWin] |
|
|
6楼#
发布于:2003-03-21 16:41
usb DDK 中有一个 PDF文档,里面说得很详细。
具体用法可以参考 sample code. APPLE USB DDK,你应该有吧? 沈成贵 |
|
7楼#
发布于:2003-03-21 16:50
Now I can hot-replug my device.Would u like tell me more about eject volume?Thanks.
|
|
|