MDK-ARM Keil, MDK-ARM Datasheet - Page 136

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
136
Within the client, we can use the existing code and just need to change the size of
the IN and OUT reports.
BYTE OutReport [64];
BYTE InReport [65];
if (!HID_Write (OutReport, sizeof (OutReport), &cnt))
}
if (!HID_Read (InReport, sizeof (InReport), &cnt))
}
The InReport[] array should be set to 65 bytes, not 64, as the report descriptor
adds a byte to the beginning of the packet. Hence, your application data will start
from InReport[1].
Exercise: Extended HID
This example extends the HID example by enlarging the IN and OUT packets to
64 bytes and moving the OUT pipe from Endpoint Zero to Endpoint One.
Mass Storage
The RL-USB driver also supports the Mass Storage class that connects an
external storage device to the USB host. The USB Mass Storage Class is a
complex protocol that is difficult to implement. The RL-USB driver provides all
the necessary class support to link a host file system to the RL-Flash file system
via USB and resides in the
project, which has already been configured with the RL-Flash file system.
The Mass Storage Class is
enabled in the
with Endpoint 2. Endpoint 2
will provide symmetrical IN and
OUT Endpoint buffers to allow
bidirectional data transfer
between the USB host and the
device. In
interface descriptor defines the
device as being a member of the Mass Storage Class.
OnError();
return;
OnError();
return;
usbdesc.c
usbcfg.h
, the USB
file, along
mscuser.c
module. This simply needs to be added to a
Chapter 5. RL-USB Introduction
{
{

Related parts for MDK-ARM