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

Dependencies:   LPC4088-USBHost mbed

EA LPC4088をUSBホストにしてUSBフラッシュメモリ(USB flash drive)を読み書きするテストプログラムです。
/media/uploads/va009039/lpc4088-msd-1.jpg
/media/uploads/va009039/lpc4088-msd-2.png

https://bitbucket.org/va009039/lpc4088_usbhost

Committer:
va009039
Date:
Tue Apr 22 10:54:52 2014 +0000
Revision:
0:11152e69fc05
first commit,sync rev.25.

Who changed what in which revision?

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