• Main Page
  • Modules
  • Classes
  • Files
  • File List
  • File Members

midi_function_types.h

Go to the documentation of this file.
00001 //midi for embedded chips,
00002 //Copyright 2010 Alex Norman
00003 //
00004 //This file is part of avr-midi.
00005 //
00006 //avr-midi is free software: you can redistribute it and/or modify
00007 //it under the terms of the GNU General Public License as published by
00008 //the Free Software Foundation, either version 3 of the License, or
00009 //(at your option) any later version.
00010 //
00011 //avr-midi is distributed in the hope that it will be useful,
00012 //but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014 //GNU General Public License for more details.
00015 //
00016 //You should have received a copy of the GNU General Public License
00017 //along with avr-midi.  If not, see <http://www.gnu.org/licenses/>.
00018 
00024 #ifndef MIDI_FUNCTION_TYPES_H
00025 #define MIDI_FUNCTION_TYPES_H
00026 
00027 #include <inttypes.h>
00028 #include <stdbool.h>
00029 
00030 //forward declaration
00031 typedef struct _midi_device MidiDevice;
00032 
00033 typedef void (* midi_one_byte_func_t)(MidiDevice * device, uint8_t byte);
00034 typedef void (* midi_two_byte_func_t)(MidiDevice * device, uint8_t byte0, uint8_t byte1);
00035 typedef void (* midi_three_byte_func_t)(MidiDevice * device, uint8_t byte0, uint8_t byte1, uint8_t byte2);
00036 //all bytes after count bytes should be ignored
00037 typedef void (* midi_var_byte_func_t)(MidiDevice * device, uint16_t count, uint8_t byte0, uint8_t byte1, uint8_t byte2);
00038 
00039 #endif

Generated on Thu Apr 21 2011 11:27:02 for xnor_midi by  doxygen 1.7.1