Added to LPC4088-USBHost the USBHostMidi class. Plugin an usb midi interface to the usb host of lpc4088 allows to send midi event to the midi interface. For the moment I can not be able to get event from the interface by using the attacheNoteOn or other triggers...

Dependencies:   FATFileSystem mbed-rtos

Fork of LPC4088-USBHost by Norimasa Okamoto

Committer:
Grag38
Date:
Mon Apr 06 12:46:58 2015 +0000
Revision:
1:d652de69bd1a
Parent:
0:148fca6fd246
Added USBHostMidi to drive midi interface.; ; Tested to send Midi messages from LPC4088. This works.; ; Need to test with incomming events.

Who changed what in which revision?

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