Set up a URB for a bulk data transfer
#include <sys/usbdi.h> int usbd_setup_bulk( struct usbd_urb *urb, uint32_t flags, void *addr, uint32_t len );
You can optionally OR in the following:
libusbdi
This routine sets up a URB for a bulk data transfer.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | No |
Thread | Yes |
To ensure that the correct physical address will be used, you must use the buffer allocated by usbd_alloc() for the addr parameter.
usbd_descriptor(), usbd_feature(), usbd_io(), usbd_setup_control(), usbd_setup_interrupt(), usbd_setup_isochronous(), usbd_setup_vendor(), usbd_status()