Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
midi.h
Go to the documentation of this file.
1 /*
2  * Line6 Linux USB driver - 0.9.1beta
3  *
4  * Copyright (C) 2004-2010 Markus Grabner ([email protected])
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License as
8  * published by the Free Software Foundation, version 2.
9  *
10  */
11 
12 #ifndef MIDI_H
13 #define MIDI_H
14 
15 #include <sound/rawmidi.h>
16 
17 #include "midibuf.h"
18 
19 #define MIDI_BUFFER_SIZE 1024
20 
25  struct usb_line6 *line6;
26 
31 
36 
41 
46 
51 
56 
60  unsigned short midi_mask_transmit;
61 
65  unsigned short midi_mask_receive;
66 
71 
76 };
77 
78 extern int line6_init_midi(struct usb_line6 *line6);
79 extern void line6_midi_receive(struct usb_line6 *line6, unsigned char *data,
80  int length);
81 
82 #endif