MacWin
驱动中牛
驱动中牛
  • 注册日期2002-12-16
  • 最后登录2009-05-27
  • 粉丝0
  • 关注0
  • 积分2分
  • 威望44点
  • 贡献值0点
  • 好评度29点
  • 原创分0分
  • 专家分0分
阅读:3447回复:7

how to hot-replug the usb device?

楼主#
更多 发布于:2002-12-26 17:22
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 .
Chen
Jim_Witte
驱动牛犊
驱动牛犊
  • 注册日期2003-01-06
  • 最后登录2003-10-14
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
沙发#
发布于: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?  
MacWin
驱动中牛
驱动中牛
  • 注册日期2002-12-16
  • 最后登录2009-05-27
  • 粉丝0
  • 关注0
  • 积分2分
  • 威望44点
  • 贡献值0点
  • 好评度29点
  • 原创分0分
  • 专家分0分
板凳#
发布于: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.
Chen
paranoid
驱动牛犊
驱动牛犊
  • 注册日期2003-02-13
  • 最后登录2004-12-03
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
地板#
发布于: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 .
mike_wang
驱动中牛
驱动中牛
  • 注册日期2003-01-22
  • 最后登录2012-01-04
  • 粉丝0
  • 关注0
  • 积分91分
  • 威望10点
  • 贡献值0点
  • 好评度9点
  • 原创分0分
  • 专家分0分
地下室#
发布于: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
MacWin
驱动中牛
驱动中牛
  • 注册日期2002-12-16
  • 最后登录2009-05-27
  • 粉丝0
  • 关注0
  • 积分2分
  • 威望44点
  • 贡献值0点
  • 好评度29点
  • 原创分0分
  • 专家分0分
5楼#
发布于:2003-03-21 16:10
Where to got the sample code? Thanks.

[编辑 -  3/21/03 by  MacWin]
Chen
mike_wang
驱动中牛
驱动中牛
  • 注册日期2003-01-22
  • 最后登录2012-01-04
  • 粉丝0
  • 关注0
  • 积分91分
  • 威望10点
  • 贡献值0点
  • 好评度9点
  • 原创分0分
  • 专家分0分
6楼#
发布于:2003-03-21 16:41
usb DDK 中有一个 PDF文档,里面说得很详细。
具体用法可以参考 sample code.

APPLE USB DDK,你应该有吧?


沈成贵
MacWin
驱动中牛
驱动中牛
  • 注册日期2002-12-16
  • 最后登录2009-05-27
  • 粉丝0
  • 关注0
  • 积分2分
  • 威望44点
  • 贡献值0点
  • 好评度29点
  • 原创分0分
  • 专家分0分
7楼#
发布于:2003-03-21 16:50
Now I can hot-replug my device.Would u like tell me more about eject volume?Thanks.
Chen
游客

返回顶部