Renesas REJ10J1837-0100 Instalační příručka Strana 11

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 35
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 10
USB Basic Firmware <Short Sheet>
R01AN0495EJ0100 Rev.1.00 Page 11 of 32
Apr 15, 2011
3.2 Use as USB peripheral function
3.2.1 Setting of Vendor ID/ Product ID
Changed file name:[ r_usbc_cDefUsr.h]
It is necessary to change Vendor ID/ Product ID that uses the system under development.
#define USB_VENDORID 0x1234u /* Vendor ID */
#define USB_PRODUCTID 0x5678u /* Product ID * /
3.2.2 Descriptor Table Generation
Changed file name:[ r_usb_PSMPL_data.c] [ r_usb_PSMPL_apl.c]
In order for USB-BASIC-F/Wto operate in peripheral function mode, it is necessary to create a descriptor table that
matches the system under development. (A sample table is included in r_usb_PSMPL_data.c.)
In the sample table the portions changed by the program are indicated by the designation USBC_SOFT_CHANGE.
The descriptor definitions comprise the following four types.
1) Standard Device Descriptor
uint8_t usb_gpstd_SmplDeviceDescriptor[]
2) Device Qualifier Descriptor
uint8_t usb_gpstd_SmplQualifierDescriptor[]
3) Configuration/Other_Speed_Configuration(*)/Interface/Endpoint
uint8_t usb_gpstd_SmplConfigurationH_1[](*)
uint8_t usb_gpstd_SmplConfigurationF_1[]
4) String Descriptor
uint8_t usb_gpstd_StringDescriptor1[]
uint8_t usb_gpstd_StringDescriptor2[]
uint8_t usb_gpstd_StringDescriptor3[]
uint8_t usb_gpstd_StringDescriptor4[]
uint8_t usb_gpstd_StringDescriptor5[]
*This setting is not used by the RX62N.
PDCD must generate Configuration/Other_Speed_ConfigurationDescriptor when a USB reset is detected.
Notes: 1. For details of each descriptor, see chapter 9 of the USB revision 2.0 specification.
2. When making changes to descriptor definitions, it is also necessary to make changes to the pipe
information table to match the endpoint descriptors. (A sample table is included in
r_usb_PSMPL_data.c.)
Zobrazit stránku 10
1 2 ... 6 7 8 9 10 11 12 13 14 15 16 ... 34 35

Komentáře k této Příručce

Žádné komentáře