Simple USBHost WebCam for EA LPC4088 QSB/LPC1768 test program
Dependencies: LPC4088-USBHost mbed
EA LPC4088 QSB/LPC1768をUSBホストにしてWebカメラからJPEG画像を読み取るテストプログラムです。
The usage is the same as KL46Z-USBHostC270_example.
使い方はKL46Z-USBHostC270_exampleと同じです。
動作確認: Logitech C270,Logitech Q200R(Qcam Orbit AF)
LPC4088-USBHost/USBHost/IUSBEnumerator.h@0:c972ee42b455, 2014-04-24 (annotated)
- Committer:
- va009039
- Date:
- Thu Apr 24 05:38:45 2014 +0000
- Revision:
- 0:c972ee42b455
first commit,sync rev.29.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
va009039 | 0:c972ee42b455 | 1 | /* mbed USBHost Library |
va009039 | 0:c972ee42b455 | 2 | * Copyright (c) 2006-2013 ARM Limited |
va009039 | 0:c972ee42b455 | 3 | * |
va009039 | 0:c972ee42b455 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
va009039 | 0:c972ee42b455 | 5 | * you may not use this file except in compliance with the License. |
va009039 | 0:c972ee42b455 | 6 | * You may obtain a copy of the License at |
va009039 | 0:c972ee42b455 | 7 | * |
va009039 | 0:c972ee42b455 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
va009039 | 0:c972ee42b455 | 9 | * |
va009039 | 0:c972ee42b455 | 10 | * Unless required by applicable law or agreed to in writing, software |
va009039 | 0:c972ee42b455 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
va009039 | 0:c972ee42b455 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
va009039 | 0:c972ee42b455 | 13 | * See the License for the specific language governing permissions and |
va009039 | 0:c972ee42b455 | 14 | * limitations under the License. |
va009039 | 0:c972ee42b455 | 15 | */ |
va009039 | 0:c972ee42b455 | 16 | |
va009039 | 0:c972ee42b455 | 17 | #ifndef IUSBENUMERATOR_H_ |
va009039 | 0:c972ee42b455 | 18 | #define IUSBENUMERATOR_H_ |
va009039 | 0:c972ee42b455 | 19 | |
va009039 | 0:c972ee42b455 | 20 | #include "stdint.h" |
va009039 | 0:c972ee42b455 | 21 | #include "USBEndpoint.h" |
va009039 | 0:c972ee42b455 | 22 | |
va009039 | 0:c972ee42b455 | 23 | /* |
va009039 | 0:c972ee42b455 | 24 | Generic interface to implement for "smart" USB enumeration |
va009039 | 0:c972ee42b455 | 25 | */ |
va009039 | 0:c972ee42b455 | 26 | |
va009039 | 0:c972ee42b455 | 27 | class IUSBEnumerator |
va009039 | 0:c972ee42b455 | 28 | { |
va009039 | 0:c972ee42b455 | 29 | public: |
va009039 | 0:c972ee42b455 | 30 | virtual void setVidPid(uint16_t vid, uint16_t pid) = 0; |
va009039 | 0:c972ee42b455 | 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:c972ee42b455 | 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:c972ee42b455 | 33 | }; |
va009039 | 0:c972ee42b455 | 34 | |
va009039 | 0:c972ee42b455 | 35 | #endif /*IUSBENUMERATOR_H_*/ |
va009039 | 0:c972ee42b455 | 36 |