This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

What is the way to change the control pipe's device address?

I'm using the USB Component of MDK Middleware.

I'm programing the hub host.

but...

The USBH_DefaultPipeSendSetup function failed to send the recognized device form the hub.

because the control pipe's device address was not 0.

What is the way to change the control pipe's device address?

Parents
  • This should work:

    #include "rl_usbh_lib.h"
    
    extern USBH_HCI usbh_hci[];
    
    
    int main (void) {
      // ...
    
      USBH_PipeModify (0, usbh_hci[0].def_pipe, 0 /*new address*/, usbh_hci[0].def_pipe->dev_speed, 0, 0, usbh_hci[0].def_pipe->wMaxPacketSize);
    
      // ...
    }
    

Reply
  • This should work:

    #include "rl_usbh_lib.h"
    
    extern USBH_HCI usbh_hci[];
    
    
    int main (void) {
      // ...
    
      USBH_PipeModify (0, usbh_hci[0].def_pipe, 0 /*new address*/, usbh_hci[0].def_pipe->dev_speed, 0, 0, usbh_hci[0].def_pipe->wMaxPacketSize);
    
      // ...
    }
    

Children