Instruction manual

Renesas USB MCU and USB ASSP USB Basic Host and Peripheral firmware
R01AN0512EJ0210 Rev.2.10 Page 120 of 157
Apr 1, 2013
5.9 Pipe Information
5.9.1 Overview
HDCD needs to hold a pipe setup which suited the class driver concerned as a pipe information table.
The host sample program has indicated the sample table holding the pipe information on a device to
r_usb_vendor_hdefep.c.
5.9.2 Pipe Information Table
A pipe information table comprises the following six items (uint16_t × 6).
1. Pipe window select register (address 0x64)
2. Pipe configuration register (address 0x68)
3. Pipe buffer designation register (address 0x6A) - R8A66597 only.
4. Pipe maximum packet size register (address 0x6C)
5. Pipe period control register (address 0x6E)
6. FIFO port usage method
5.9.3 Definition of Pipes
The composition of the pipe information table currently used by the host sample program is shown below.
The macro definition of the value which can be set up by the pipe definition item of a pipe information table is defined
by r_usb_cdefusbip.h.
<Example >
uint16_t usb_gpvendor_smpl_eptbl1[] = Registered information table
{
USB_PIPE1, Pipe definition item 1
USB_NONE|USB_BFREOFF|USB_DBLBOFF|USB_CNTMDOFF|USB_SHTNAKOFF|USB_EP1, Pipe
definition item 2
USB_BUF_SIZE(1024) | USB_BUF_NUMB( 8), Pipe definition item 3
USB_NONE, Pipe definition item 4
USB_NONE, Pipe definition item 5
USB_CUSE, Pipe definition item 6
USB_PDTBLEND,
}
1. Pipe definition item 1
Specify the value to be set in the pipe window select register.
Pipe select : Specify the selected pipe (USB_PIPE1 to USB_PIPE9)
Restrictions
-