MDK-ARM Keil, MDK-ARM Datasheet - Page 137

KIT REALVIEW MCU DEVELOPMENT

MDK-ARM

Manufacturer Part Number
MDK-ARM
Description
KIT REALVIEW MCU DEVELOPMENT
Manufacturer
Keil
Type
Compiler and IDEr
Datasheets

Specifications of MDK-ARM

For Use With/related Products
ARM MCUs
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Getting Started: Building Applications with RL-ARM
/*----------------------------------------------------------
/
----------------------------------------------------------*/
USB_INTERFACE_DESCRIPTOR_TYPE,
The Mass Storage Class uses pipes, which have been configured to use bulk
transfer. Although the bulk transfer type has the lowest priority of the different
pipe categories, it does have the advantage of being able to make multiple
transfers within a USB frame (if the bandwidth is available). Following interface
descriptors are two Endpoint descriptors, which define the IN and OUT
Endpoints.
/*----------------------------------------------------------
/
----------------------------------------------------------*/
//
//
//
The
system. Once the Mass Storage Class has been added to your application, it will
directly interface to the RL-Flash file system and no further development work is
necessary to enable it.
However, when your device is connected, the host mass storage driver will
take control of the storage volume, and the embedded file system must not
be used to read or write data to files located in the storage volume. You
must include code to prevent the embedded firmware writing to files, when
your device is connected to the host.
0x00,
0x00,
0x02,
USB_DEVICE_CLASS_STORAGE,
MSC_SUBCLASS_SCSI,
MSC_PROTOCOL_BULK_ONLY,
0x62,
USB_ENDPOINT_DESC_SIZE,
USB_ENDPOINT_DESCRIPTOR_TYPE,
USB_ENDPOINT_IN(2),
USB_ENDPOINT_TYPE_BULK,
WBVAL(0x0040),
0,
USB_ENDPOINT_DESC_SIZE,
USB_ENDPOINT_DESCRIPTOR_TYPE,
USB_ENDPOINT_OUT(2),
USB_ENDPOINT_TYPE_BULK,
WBVAL(0x0040),
0,
Mass storage class interface descriptor
Mass storage Endpoint descriptors
Bulk In Endpoint
Bulk Out Endpoint
Terminator
mscuser.c
file then provides the application interface to the RL-Flash file
// bDescriptorType
// bInterfaceNumber
// bAlternateSetting
// bNumEndpoints
// bInterfaceClass
// bInterfaceSubClass
// bInterfaceProtocol
// iInterface
// bLength
// bDescriptorType
// bEndpointAddress
// bmAttributes
// wMaxPacketSize
// bInterval
// bLength
// bDescriptorType
// bEndpointAddress
// bmAttributes
// wMaxPacketSize
// bInterval
137

Related parts for MDK-ARM