Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of USBHost by
USBHost/IUSBEnumerator.h@32:79b6743d7dc5, 2015-04-14 (annotated)
- Committer:
- clemounet
- Date:
- Tue Apr 14 13:13:01 2015 +0000
- Revision:
- 32:79b6743d7dc5
- Parent:
- 8:93da8ea2708b
light adjustment (dbg)
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
samux | 8:93da8ea2708b | 1 | /* mbed USBHost Library |
samux | 8:93da8ea2708b | 2 | * Copyright (c) 2006-2013 ARM Limited |
samux | 8:93da8ea2708b | 3 | * |
samux | 8:93da8ea2708b | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
samux | 8:93da8ea2708b | 5 | * you may not use this file except in compliance with the License. |
samux | 8:93da8ea2708b | 6 | * You may obtain a copy of the License at |
samux | 8:93da8ea2708b | 7 | * |
samux | 8:93da8ea2708b | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
samux | 8:93da8ea2708b | 9 | * |
samux | 8:93da8ea2708b | 10 | * Unless required by applicable law or agreed to in writing, software |
samux | 8:93da8ea2708b | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
samux | 8:93da8ea2708b | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
samux | 8:93da8ea2708b | 13 | * See the License for the specific language governing permissions and |
samux | 8:93da8ea2708b | 14 | * limitations under the License. |
samux | 8:93da8ea2708b | 15 | */ |
mbed_official | 0:a554658735bf | 16 | |
mbed_official | 0:a554658735bf | 17 | #ifndef IUSBENUMERATOR_H_ |
mbed_official | 0:a554658735bf | 18 | #define IUSBENUMERATOR_H_ |
mbed_official | 0:a554658735bf | 19 | |
mbed_official | 0:a554658735bf | 20 | #include "stdint.h" |
mbed_official | 0:a554658735bf | 21 | #include "USBEndpoint.h" |
mbed_official | 0:a554658735bf | 22 | |
mbed_official | 0:a554658735bf | 23 | /* |
mbed_official | 0:a554658735bf | 24 | Generic interface to implement for "smart" USB enumeration |
mbed_official | 0:a554658735bf | 25 | */ |
mbed_official | 0:a554658735bf | 26 | |
mbed_official | 0:a554658735bf | 27 | class IUSBEnumerator |
mbed_official | 0:a554658735bf | 28 | { |
mbed_official | 0:a554658735bf | 29 | public: |
mbed_official | 0:a554658735bf | 30 | virtual void setVidPid(uint16_t vid, uint16_t pid) = 0; |
mbed_official | 0:a554658735bf | 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 |
mbed_official | 0:a554658735bf | 32 | virtual bool useEndpoint(uint8_t intf_nb, ENDPOINT_TYPE type, ENDPOINT_DIRECTION dir) = 0; //Must return true if the endpoint will be used |
mbed_official | 0:a554658735bf | 33 | }; |
mbed_official | 0:a554658735bf | 34 | |
mbed_official | 0:a554658735bf | 35 | #endif /*IUSBENUMERATOR_H_*/ |
mbed_official | 0:a554658735bf | 36 |