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