libusb bulk transfer

后端 未结 2 1101
-上瘾入骨i
-上瘾入骨i 2021-02-04 19:01

I am trying to implement user space usb driver using libusb1.0.9. I have lpc2148 blueboard(ARM7) with me..This board is loaded with opensource USB stack/firmware by Mr. Bertrik

2条回答
  •  南方客
    南方客 (楼主)
    2021-02-04 19:32

    To handle kernal detaching.

    if(libusb_kernel_driver_active(dev_handle, 0) == 1)         //find out if kernel driver is attached
    {
        cout << "Kernel Driver Active" << endl;
    
        if(libusb_detach_kernel_driver(dev_handle, 0) == 0)     //detach it
        {
            cout << "Kernel Driver Detached!" << endl;
        }
    }
    

提交回复
热议问题