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