X-TOUCH to djay bridge
Dependencies: mbed mbed-rtos FATFileSystem
USBHost/USBHost/IUSBEnumerator.h@1:0dac72ab5910, 2019-06-05 (annotated)
- Committer:
- okini3939
- Date:
- Wed Jun 05 04:54:37 2019 +0000
- Revision:
- 1:0dac72ab5910
sample
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
okini3939 | 1:0dac72ab5910 | 1 | /* mbed USBHost Library |
okini3939 | 1:0dac72ab5910 | 2 | * Copyright (c) 2006-2013 ARM Limited |
okini3939 | 1:0dac72ab5910 | 3 | * |
okini3939 | 1:0dac72ab5910 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
okini3939 | 1:0dac72ab5910 | 5 | * you may not use this file except in compliance with the License. |
okini3939 | 1:0dac72ab5910 | 6 | * You may obtain a copy of the License at |
okini3939 | 1:0dac72ab5910 | 7 | * |
okini3939 | 1:0dac72ab5910 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
okini3939 | 1:0dac72ab5910 | 9 | * |
okini3939 | 1:0dac72ab5910 | 10 | * Unless required by applicable law or agreed to in writing, software |
okini3939 | 1:0dac72ab5910 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
okini3939 | 1:0dac72ab5910 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
okini3939 | 1:0dac72ab5910 | 13 | * See the License for the specific language governing permissions and |
okini3939 | 1:0dac72ab5910 | 14 | * limitations under the License. |
okini3939 | 1:0dac72ab5910 | 15 | */ |
okini3939 | 1:0dac72ab5910 | 16 | |
okini3939 | 1:0dac72ab5910 | 17 | #ifndef IUSBENUMERATOR_H_ |
okini3939 | 1:0dac72ab5910 | 18 | #define IUSBENUMERATOR_H_ |
okini3939 | 1:0dac72ab5910 | 19 | |
okini3939 | 1:0dac72ab5910 | 20 | #include "stdint.h" |
okini3939 | 1:0dac72ab5910 | 21 | #include "USBEndpoint.h" |
okini3939 | 1:0dac72ab5910 | 22 | |
okini3939 | 1:0dac72ab5910 | 23 | /* |
okini3939 | 1:0dac72ab5910 | 24 | Generic interface to implement for "smart" USB enumeration |
okini3939 | 1:0dac72ab5910 | 25 | */ |
okini3939 | 1:0dac72ab5910 | 26 | |
okini3939 | 1:0dac72ab5910 | 27 | class IUSBEnumerator |
okini3939 | 1:0dac72ab5910 | 28 | { |
okini3939 | 1:0dac72ab5910 | 29 | public: |
okini3939 | 1:0dac72ab5910 | 30 | virtual void setVidPid(uint16_t vid, uint16_t pid) = 0; |
okini3939 | 1:0dac72ab5910 | 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 |
okini3939 | 1:0dac72ab5910 | 32 | virtual bool useEndpoint(uint8_t intf_nb, ENDPOINT_TYPE type, ENDPOINT_DIRECTION dir) = 0; //Must return true if the endpoint will be used |
okini3939 | 1:0dac72ab5910 | 33 | }; |
okini3939 | 1:0dac72ab5910 | 34 | |
okini3939 | 1:0dac72ab5910 | 35 | #endif /*IUSBENUMERATOR_H_*/ |
okini3939 | 1:0dac72ab5910 | 36 |