Keil Logo

Technical Support

On-Line Manuals

RL-ARM User's Guide (MDK v4)

RL-RTX RL-FlashFS RL-TCPnet RL-CAN RL-USB RL-USB for USB Device Applications RL-USB Device Library RL-USB Device Features RL-USB Device Software Stack RL-USB Device Functions RL-USB Device Source Files RL-USB Device Configuration Audio Device (ADC) Options Communication Device (CDC) - ACM Options Human Interface Device (HID) Options Mass Storage Device (MSC) Options Create USB Device Applications Create ADC Applications Create CDC ACM Applications Create HID Applications Create MSC Applications Create Composite Applications Test USB Device Applications Compliance Tests Test HID Client Application RL-USB for USB Host Applications RL-USB Host Library RL-USB Host Features RL-USB Host Software Stack RL-USB Host Functions RL-USB Host Source Files RL-USB Host Configuration Host Controller Driver Selection Host Controller Driver Configuration Host Class Driver Selection Create USB Host Applications Create USB Host HID Applications HID_Kbd Example Create USB Host MSC Applications Create USB Host Class Driver RL-USB Host Constants and Structures Error constants Speed constants Transaction Packet Type constants Transaction Error Type constants USB Request Block structure (USBH_URB) Endpoint structure (USBH_EP) Driver Capabilites structure (USBH_HCI_CAP) Device Class Instance structure (USBH_DCI) Host Controller Instance structure (USBH_HCI) Host Controller Driver structure (USBH_HCD) USB Concepts USB Transfer Rates USB Network Basic Communication Model USB Protocol Control Transfer Interrupt Transfer Isochronous Transfer Bulk Transfer Descriptors Device Configuration Device Descriptor Configuration Descriptor Interface Descriptor Endpoint Descriptor Device Qualifier Descriptor Example Programs Library Reference Appendix

RL-USB Device Source Files

RL-USB Device Source Files for creating USB Device applications with the RL-USB Library can be found in the folders:

Folder Name Description
\ARM\RV31\INC Contains include files, header files, and configuration files.
\ARM\RV31\LIB Contains the library files USB_ARM_L.LIB, USB_CM1.LIB and USB_CM3.LIB.
\ARM\RL\USB\INC Contains include and header files.
\ARM\RL\USB\Drivers Contains USB Device Controller Driver modules.
\ARM\Boards\Vendor\Board\RL\USB\Device Contains example applications built with the RL-USB Library. Use the projects as templates to create new USB Device applications.
\ARM\Boards\Vendor\Board\RL\USB\Device\RTX Contains example applications built with the RL-USB Library and the RTX-RTOS. Use the projects as templates to create new USB Device applications.
\ARM\RL\USB\Template Contains template files to create new USB Device applications.

RL-USB Device files in \ARM\RL\USB\INC:

File Name File Type Layer Description
usb.h Header Core Driver Main RL-USB header file used to include other USB header files.
usb_adc.h Header Core Driver Contains definitions and structures used by the audio device class.
usb_cdc.h Header Core Driver Contains definitions and structures used by the communication device class.
usb_hid.h Header Core Driver Contains definitions and structures used by the human interface device class.
usb_msc.h Header Core Driver Contains definitions and structures used by the mass storage device class.
usb_cls.h Header Core Driver Contains definitions and structures used by the custom class.
usb_def.h Header Core Driver Contains definitions for device classes, descriptors, pipes.
usbd_adc.h Header Core Driver Contains global variable and function declarations used by the audio device class.
usbd_cdc_acm.h Header Core Driver Contains global variable and function declarations used by the communication device class of abstract control model type.
usbd_hid.h Header Core Driver Contains global variable and function declarations used by the human interface device class.
usbd_msc.h Header Core Driver Contains global variable and function declarations used by the mass storage device class.
usbd_cls.h Header Core Driver Contains global variable and function declarations used by the custom class.
usbd_core.h Header Core Driver Contains variable and function declarations used by the library.
usbd_core_adc.h Header Core Driver Contains declarations of functions used by the audio device class core module.
usbd_core_cdc.h Header Core Driver Contains declarations of functions used by the communication device class core module.
usbd_core_hid.h Header Core Driver Contains declarations of functions used by the human interface device class core module.
usbd_core_msc.h Header Core Driver Contains declarations of functions used by the mass storage device class core module.
usbd_core_cls.h Header Core Driver Contains declarations of functions used by the custom device class core module.
usbd_desc.h Header Core Driver Contains USB Device descriptor macros.
usbd_event.h Header Core Driver Contains USB Device event definitions and callback function prototypes.
usbd_hw.h Header Device Controller Driver Contains USB Device hardware driver function prototypes.

RL-USB Device files in \ARM\RV31\INC:

File Name File Type Layer Description
usb_lib.c Module All layers Packs configuration settings and provides them to the library. The file is included from the module file usb_config.c.
rl_usb.h Header All layers Contains prototypes of functions exported from the library or imported to the library.

RL-USB Device Library files in \ARM\RV31\LIB:

File Name File Type Layer Description
USB_ARM_L.lib Library All layers RL-USB library for ARM7 and ARM9 devices - Little Endian.
USB_CM1.lib Library All layers RL-USB library for Cortex-M1 devices - Little Endian.
USB_CM3.lib Library All layers RL-USB library for Cortex-M3 devices - Little Endian.

RL-USB Device Application files in \ARM\Boards\Vendor\Board\RL\USB\Device or \ARM\Boards\Vendor\Board\RL\USB\Device\RTX:

File Name File Type Layer Description
usbd_user_xxx.c Module Application Contains the user code for appropriate class handling.
usb_config.c Module All layers Configures the USB Device Controller and USB Device Classes at compile time. Settings for the USB Device Controller Driver and USB Device Class Drivers are available. Modify this file to suit the application requirements.
usbd_device family.c Module Device Controller Driver Provides the hardware specific driver functions. Standardized modules are available in the folder \ARM\RL\USB\Drivers. Modify this file, if no module is provided for the used device.
usbd_device family.h Header Device Controller Driver If this header exists it contains controller constants and defines.
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.