V850ES/Jx3H – Plug it!
11.4.7 File Structure
main.c
low_level_init.c
usbf850.c
usbf850_storage.c
scsi_cmd.c
DF3760_HWinit.s85
monitor_dbg0.s85
monitor_uartc0.s85
main.h
errno.h
types.h
scsi.h
usbf850.h
usbfstrg_sfr.h
usbfstrg_desc.h
usbf850_storage.h
11.4.8 Descriptor Information
Field
bLength
bDescriptor
bcdUSB
bDeviceClass
bDeviceSubClass
bDeviceProtocol
bMaxPacketSize0
idVendor
idProduct
bcdDevice
iManufacture
iProduct
iSerialNumber
bNumConfigurations
File
Table 21: Source Modules USB Mass Storage Sample
File
Table 22: Header Files USB Mass Storage Sample
Size
1
Descriptor size
1
Descriptor type
2
BCD format of USB release number
1
Class code
0x00H: no class
0xFFH: vendor
0x01-0xFEH: specific
1
Sub-class code
1
Protocol code
0x00: no specific protocol
0xFF: vendor-specific protocol
1
Maximum packet size at endpoint 0
2
Vendor ID (USB IF assigns)
2
Product ID (vendor assigns)
2
BCD format of device release number
1
Index to string descriptor to indicate
manufacturer
1
Index to string descriptor to indicate product
1
Index to string descriptor to indicate serial
number
1
Number of devices that can be configured
Table 23: Device Descriptor Mass Storage Sample
User's Manual U19647EE2V0UM00
Description
Main routine
CPU and board initialization
USB initialization. Interrupt process. Bulk
transfer. Control transfer.
MSC specific process
SCSI command process
Security-ID setting
Secures interrupt vector for Debugging
Secures interrupt vector of serial interface
Description
Function prototypes defined in main.c
Error code definitions
Datatype definitions
SCSI macro declaration
Macro definitions for USB function register
setting
Macro definitions for USB function controller
register access
Descriptor definitions
usbf850_storage.c function prototype
declaration
Description
Value
0x12
0x01
0x0200
0x00
0x00
0x00
0x40
0x0409
0x01D2
0x0001
0x01
0x00
0x00
0x01
64