![]() ![]() Whenever the USB device is plugged, the CHub::AttachDevice() will be called and all descriptors will be received in this function through the series of calls to GetDescriptor() function in various cases. ![]() We have to play with some functions in cdevice.cpp file. Since we are using high speed EHCI host, we have cloned the corresponding USB Host driver from the \WINCE600\PUBLIC\COMMON\OAK\DRIVERS\USB\HCD\USB20\USB2COM directory to our BSP. Now we need to know where to add the SendNotifyMessage in USB Host driver. Here the UserData is the user defined structure we are using to pass the VID /PID and required data to application from driver. SendNotifyMessage(HWND_BROADCAST,WM_DEVICECHANGE, DBT_DEVICEREMOVECOMPLETE,(LPARAM)
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |