Technical Support
On-Line Manuals
RL-ARM User's Guide (MDK v4)
#include <rl_usb.h>
BOOL usbh_transfer (
U8 ctrl,
USBH_EP *ptr_ep,
USBH_URB *ptr_urb,
U16 tout
);
The usbh_transfer function is used for transferring data
over the USB bus. The argument ctrl is the index of USB Host
Controller. The argument ptr_ep is the pointer to the endpoint
used for transfer of data. The argument ptr_urb is the pointer
to the URB (universal request block) containing information about
transfer. The argument tout is a timeout for the transfer,
specified in milliseconds.
The usbh_init function is part of the RL-USB Host
Software Stack.
The usbh_init function returns one of the following
manifest constants.
usbh_engine, usbh_engine_all, usbh_get_error_string, usbh_get_last_error, usbh_init, usbh_init_all, usbh_uninit, usbh_uninit.