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