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