
USB Basic Firmware <Short Sheet>
R01AN0495EJ0100 Rev.1.00 Page 20 of 32
Apr 15, 2011
3.3 Use as USB host function
3.3.1 Setting of a connected USB device
Changed file name:[ r_usb2_HSMPL_apl.c]
A TPL is generated for each device class. In project, vendor IDs and product IDs are registered as sets.
Register all supported sets in the relevant device class.
When all products in the relevant device class are supported, do not specify specific vendor IDs and product IDs.
Instead, register USB_NOVENDOR and USB_NOPURODUCT as a set.
const uint16_t tpl[] = {
1, /* Number of list */
0, /* Reserved */
USB_NOVENDOR, /* Vendor ID */
USB_NOPRODUCT, /* Product ID */
};
};
3.3.2 Pipe Definition
Changed file name:[ r_usb2_HSMPL_data.c]
HDCD must store appropriate pipe settings for the relevant class driver as a pipe information table.
Update the pipe information table to match the user system. Refer to section 3.2.3 for information concerning
definitions.
Note that the pipe information table must be updated to match the connected device. The USB-BASIC-F/W is
equipped with usb_hstd_ChkPipeInfo() to analyze the descriptor it receives from the device (Endpoint Descriptor) and
update the data in the pipe information table. It also comes with usb_hstd_SetPipeInfo() for setting the updated
information in the pipe information table. The user can use these functions to update the pipe information table to match
the connected device.
Kommentare zu diesen Handbüchern