final

Dependencies:   mbed FATFileSystem

Fork of KL46Z-USBHostMSD_HelloWorld by Norimasa Okamoto

Committer:
homzovam
Date:
Sat Apr 04 20:16:39 2015 +0000
Revision:
4:77d6450f34d7
prijimac-funkcni final

Who changed what in which revision?

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