Main Site Documentation

USB host/client premium library



I’ve been playing with the USBH_RawDevice class and so far I have been able to establish a link with another board using the USB client classes.

I had no problem transferring data from Device to Host (using USBC_Stream class on client side for writing)

I had no problem reading the stream using this as an example:

Though, I definitely don’t understand how to write from the host side as the is only one data method for the pipe (TransferData) and it doesn’t specify what direction it will be.
Do I need to set a custom setup packet up in the SendSetupTransfer function ?

Thanks :slight_smile:


If I understand it right , you need to open another pipe for the “writeable” endpoint on the device.


Yeah, apparently the method itself deals with the direction by detecting the attributes of the endpoint.


You are welcome!