U08Usb.h - Motorola USB08 Reference Manual

Universal serial bus evaluation board using the mc68hc908jb8
Table of Contents

Advertisement

U08USB.H

//============================================================================
// File: U08_USB.H
// Func: Definitions for USB Data Types & Constants
//
Header File for USB08 Demo Application
// Auth: (C)2000 by MCT Elektronikladen GbR, Oliver Thamm
//
http://www.elektronikladen.de/mct
// Rem.: View/Edit this File with TAB-Size=4
//============================================================================
//-- Data Type Definitions ---------------------------------------------------
typedef struct {
uchar lo;
uchar hi;
} iword;
//----------------------------------------------------------------------------
// Standard Device Descriptor
// according to USB1.1 spec page 197
//
typedef struct {
uchar bLength;
uchar bDescriptorType;
iword bcdUSB;
uchar bDeviceClass;
uchar bDeviceSubClass;
uchar bDeviceProtocol;
uchar bMaxPacketSize0;
iword idVendor;
iword idProduct;
iword bcdDevice;
uchar iManufacturer;
uchar iProduct;
uchar iSerialNumber;
uchar bNumConfigurations;
} device_descriptor;
//----------------------------------------------------------------------------
// Standard Configuration Descriptor
// according to USB1.1 spec page 199
//
typedef struct {
uchar bLength;
uchar bDescriptorType;
iword wTotalLength;
uchar bNumInterfaces;
uchar bConfigurationValue;
uchar iConfiguration;
uchar bmAttributes;
uchar bMaxPower;
} configuration_descriptor;
USB08 Evaluation Board
MOTOROLA
// Data Type "Intel Word"
// (High/Low Byte swapped)
// Size of this Descriptor in Bytes
// Descriptor Type (=1)
// USB Spec Release Number in BCD
// Device Class Code
// Device Subclass Code
// Device Protocol Code
// Maximum Packet Size for EP0
// Vendor ID
// Product ID
// Device Release Number in BCD
// Index of String Desc for Manufacturer
// Index of String Desc for Product
// Index of String Desc for SerNo
// Number of possible Configurations
// Size of this Descriptor in Bytes
// Descriptor Type (=2)
// Total Length of Data for this Conf
// No of Interfaces supported by this Conf
// Designator Value for *this* Configuration
// Index of String Desc for this Conf
// Configuration Characteristics (see below)
// Max. Power Consumption in this Conf (*2mA)
Source Code Files
Source Code Files
Contents
Designer Reference Manual
93

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mc68hc908jb8

Table of Contents