Simple USBHost library for LPC4088. Backward compatibility of official-USBHost.

Dependencies:   FATFileSystem mbed-rtos

EA LPC4088 QSB専用の簡易USBホストライブラリです。
official-USBHostの下位互換で対応プログラムを僅かな修正で動かすことが出来ます。
examples:

Import programLPC4088-USBHostMSD_HelloWorld

Simple USBHost MSD(USB flash drive) for EA LPC4088 QSB test program

Import programLPC4088-BTstack_example

BTstack for EA LPC4088 QSB example program

Import programLPC4088-USBHostC270_example

Simple USBHost WebCam for EA LPC4088 QSB/LPC1768 test program

Committer:
va009039
Date:
Fri Apr 25 05:18:55 2014 +0000
Revision:
0:148fca6fd246
first commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
va009039 0:148fca6fd246 1 /* mbed USBHost Library
va009039 0:148fca6fd246 2 * Copyright (c) 2006-2013 ARM Limited
va009039 0:148fca6fd246 3 *
va009039 0:148fca6fd246 4 * Licensed under the Apache License, Version 2.0 (the "License");
va009039 0:148fca6fd246 5 * you may not use this file except in compliance with the License.
va009039 0:148fca6fd246 6 * You may obtain a copy of the License at
va009039 0:148fca6fd246 7 *
va009039 0:148fca6fd246 8 * http://www.apache.org/licenses/LICENSE-2.0
va009039 0:148fca6fd246 9 *
va009039 0:148fca6fd246 10 * Unless required by applicable law or agreed to in writing, software
va009039 0:148fca6fd246 11 * distributed under the License is distributed on an "AS IS" BASIS,
va009039 0:148fca6fd246 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
va009039 0:148fca6fd246 13 * See the License for the specific language governing permissions and
va009039 0:148fca6fd246 14 * limitations under the License.
va009039 0:148fca6fd246 15 */
va009039 0:148fca6fd246 16
va009039 0:148fca6fd246 17 #ifndef IUSBENUMERATOR_H_
va009039 0:148fca6fd246 18 #define IUSBENUMERATOR_H_
va009039 0:148fca6fd246 19
va009039 0:148fca6fd246 20 #include "stdint.h"
va009039 0:148fca6fd246 21 #include "USBEndpoint.h"
va009039 0:148fca6fd246 22
va009039 0:148fca6fd246 23 /*
va009039 0:148fca6fd246 24 Generic interface to implement for "smart" USB enumeration
va009039 0:148fca6fd246 25 */
va009039 0:148fca6fd246 26
va009039 0:148fca6fd246 27 class IUSBEnumerator
va009039 0:148fca6fd246 28 {
va009039 0:148fca6fd246 29 public:
va009039 0:148fca6fd246 30 virtual void setVidPid(uint16_t vid, uint16_t pid) = 0;
va009039 0:148fca6fd246 31 virtual bool parseInterface(uint8_t intf_nb, uint8_t intf_class, uint8_t intf_subclass, uint8_t intf_protocol) = 0; //Must return true if the interface should be parsed
va009039 0:148fca6fd246 32 virtual bool useEndpoint(uint8_t intf_nb, ENDPOINT_TYPE type, ENDPOINT_DIRECTION dir) = 0; //Must return true if the endpoint will be used
va009039 0:148fca6fd246 33 };
va009039 0:148fca6fd246 34
va009039 0:148fca6fd246 35 #endif /*IUSBENUMERATOR_H_*/
va009039 0:148fca6fd246 36