HEBOCON machine

Dependencies:   mbed Motorfader Servo WT2003M03

Committer:
abanum
Date:
Mon Jul 29 05:51:31 2019 +0000
Revision:
1:312b63cf250e
Parent:
0:a30ec7d94c3a
first pubrish

Who changed what in which revision?

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