MDK-ARM Keil, MDK-ARM Datasheet - Page 126

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
126
The exception is Endpoint 0. The event handler
for Endpoint 0 is located in
Endpoint handles the control pipe, it is not
necessary to modify this function.
The RL-USB driver also provides some additional call-back functions to handle
additional USB control events. These are generally needed for more complex
designs of composite devices that have multiple configurations and interfaces.
The set_configuration() and set_interface()
functions are triggered when the USB host
requests a particular configuration or interface
that the device has defined during its enumeration
with the USB host. The set_feature() function
allows the USB host to send application control information to the device. For
example, it might send a volume setting in the case of an audio application.
USB Descriptors
Once you have configured the USB hardware, it is also necessary to modify the
USB Device Descriptors, so that they match the hardware configuration. The
USB Device Descriptors are simply arrays of formatted data. They are contained
in the
range of devices, the USB Device Descriptors can be complex to construct and
test. RL-USB provides an additional header file
of Device Descriptors. This provides a set of macros and type definitions for the
key USB Device Descriptors.
In the Device Descriptor, you need to enter your VendorID and ProductID. The
Endpoint zero maximum packet size is automatically passed from the
setting. The remaining key descriptors are created as one large array. They are:
Configuration Descriptors, Interface Descriptors, and Endpoint Descriptors.
/**************************************************
*
**************************************************/
const U8 USB_DeviceDescriptor [] =
};
USB_MAX_PACKET0,
WBVAL (0xC251),
WBVAL (0x1701),
usbdesc.c
usbdesc.c
module. As the USB specification is designed to support a wide
// bMaxPacketSize0
// idVendor
// idProduct
usbcore.c
. As this
{
usb.h
to assist in the construction
Chapter 5. RL-USB Introduction
usbcfg.h

Related parts for MDK-ARM