
USB Basic Firmware <Short Sheet>
R01AN0495EJ0100 Rev.1.00 Page 13 of 32
Apr 15, 2011
3.2.3 PIPE Definition
Changed file name:[ r_usb_PSMPL_data.c]
PDCD must store appropriate pipe settings for the relevant class driver as a pipe information table. PDCD must
register the pipe information table at the time of driver registration.
1) Pipe Information Table
A pipe information table comprises the following six items (uint16_t × 6: [RX-62N]).
1. Pipe window select register (address 0x64)
2. Pipe configuration register (address 0x68)
3. Pipe buffer designation register (address 0x6A)
4. Pipe maximum packet size register (address 0x6C)
5. Pipe period control register (address 0x6E)
6. FIFO port usage method
2) Definition of Pipes 1 to 9
The pipe definitions provided as a sample in USB-BASIC-F/W are configured as shown below.
The file r_usb_PSMPL_data.c contains macro definitions for the items that can be included in the information table
are.
Example:
uint16_t usb_gpstd_SmplEpTbl1 [] = { ← Registered information table
USB_PIPE1, ← Pipe definition item 1
USB_BULK|USB_BFREOFF|USB_DBLBOFF|USB_CNTMDOFF|USB_SHTNAKON|USB_DIR_P_OUT|USB_EP1,
← Pipe definition item
(uint16_t)USB_BUF_SIZE(512u) | USB_BUF_NUMB(8u), ← Pipe definition item 3
USB_SOFT_CHANGE, ← Pipe definition item 4
USB_IFISOFF | USB_IITV_TIME(0u), ← Pipe definition item 5
USB_CUSE, ← Pipe definition item 6
:
:
USB_PDTBLEND ← End of Pipe table
};
3.2.4 How to Start/Register the PDCD
To run peripheral functions with the USB-BASIC-F/W firmware, you will need to create a PDCD based on the user
system, and register that PDCD in the PCD. For nonOS firmware, you will need to configure the PDCD to enable the
scheduler control function.
(1) PCD Task Start Sequence
The start sequence of the PCD task is shown below. The sample application is described in r_usb_PSMPL_apl.c.
Kommentare zu diesen Handbüchern