root/trunk/libffado/src/libstreaming/motu/MotuPort.h

Revision 742, 2.5 kB (checked in by ppalmers, 16 years ago)

- Remove some obsolete support files and dirs

- Clean up the license statements in the source files. Everything is

GPL version 3 now.

- Add license and copyright notices to scons scripts

- Clean up some other text files

Line 
1 /*
2  * Copyright (C) 2005-2007 by Jonathan Woithe
3  * Copyright (C) 2005-2007 by Pieter Palmers
4  *
5  * This file is part of FFADO
6  * FFADO = Free Firewire (pro-)audio drivers for linux
7  *
8  * FFADO is based upon FreeBoB.
9  *
10  * This program is free software: you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation, either version 3 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
22  *
23  */
24
25 #ifndef __FFADO_MOTUPORT__
26 #define __FFADO_MOTUPORT__
27
28 /**
29  * This file implements the ports used in Motu devices
30  */
31
32 #include "MotuPortInfo.h"
33 #include "../generic/Port.h"
34
35 #include "debugmodule/debugmodule.h"
36
37 namespace Streaming {
38
39 /*!
40 \brief The Base Class for Motu Audio Port
41
42
43 */
44 class MotuAudioPort
45     : public AudioPort, public MotuPortInfo
46 {
47
48 public:
49
50     MotuAudioPort(std::string name,
51                        enum E_Direction direction,
52                    int position,
53                    int size)
54     : AudioPort(name, direction),
55       MotuPortInfo( position, size) // TODO: add more port information parameters here if nescessary
56     {};
57
58     virtual ~MotuAudioPort() {};
59
60 protected:
61
62 };
63
64 /*!
65 \brief The Base Class for an Motu Midi Port
66
67
68 */
69 class MotuMidiPort
70     : public MidiPort, public MotuPortInfo
71 {
72
73 public:
74
75     MotuMidiPort(std::string name,
76                        enum E_Direction direction,
77                    int position)
78         : MidiPort(name, direction),
79           MotuPortInfo(position, 0)  // TODO: add more port information parameters here if nescessary
80     {};
81
82
83     virtual ~MotuMidiPort() {};
84
85 protected:
86
87 };
88
89 /*!
90 \brief The Base Class for an Motu Control Port
91
92
93 */
94 class MotuControlPort
95     : public ControlPort, public MotuPortInfo
96 {
97
98 public:
99
100     MotuControlPort(std::string name,
101                        enum E_Direction direction,
102                    int position)
103         : ControlPort(name, direction),
104           MotuPortInfo(position, 2) // TODO: add more port information parameters here if nescessary
105     {};
106
107
108     virtual ~MotuControlPort() {};
109
110 protected:
111
112 };
113
114 } // end of namespace Streaming
115
116 #endif /* __FFADO_MOTUPORT__ */
117
Note: See TracBrowser for help on using the browser.