root/trunk/libffado/src/bebob/terratec/terratec_cmd.h

Revision 2802, 4.1 kB (checked in by jwoithe, 3 years ago)

Cosmetic: "Firewire" becomes "FireWire?".

Officially both the "F" and "W" were capitalised in the FireWire? name, so
reflect this throughout FFADO's source tree. This mostly affects comments.

This patch originated from pander on the ffado-devel mailing list. To
maintain consistency, the committed version has been expanded to include
files not originally included in the original patch.

Line 
1 /*
2  * Copyright (C) 2005-2008 by Pieter Palmers
3  *
4  * This file is part of FFADO
5  * FFADO = Free FireWire (pro-)audio drivers for linux
6  *
7  * FFADO is based upon FreeBoB
8  *
9  * This program is free software: you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation, either version 2 of the License, or
12  * (at your option) version 3 of the License.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
21  *
22  */
23
24 #ifndef TERRATECVENDORDEPENDENT_H
25 #define TERRATECVENDORDEPENDENT_H
26
27 #include "libavc/general/avc_generic.h"
28 #include "libutil/cmd_serialize.h"
29 #include "libavc/general/avc_vendor_dependent_cmd.h"
30
31 namespace BeBoB {
32 namespace Terratec {
33
34 class TerratecVendorDependentCmd: public AVC::VendorDependentCmd
35 {
36 public:
37     TerratecVendorDependentCmd(Ieee1394Service& ieee1394service);
38     virtual ~TerratecVendorDependentCmd() {};
39
40     virtual bool serialize( Util::Cmd::IOSSerialize& se );
41     virtual bool deserialize( Util::Cmd::IISDeserialize& de );
42
43     virtual const char* getCmdName() const
44     { return "TerratecVendorDependentCmd"; }
45
46 protected:
47     byte_t m_subfunction;
48 };
49
50 class TerratecSyncStateCmd: public TerratecVendorDependentCmd
51 {
52 public:
53     TerratecSyncStateCmd(Ieee1394Service& ieee1394service);
54     virtual ~TerratecSyncStateCmd() {};
55
56     virtual bool serialize( Util::Cmd::IOSSerialize& se );
57     virtual bool deserialize( Util::Cmd::IISDeserialize& de );
58
59     virtual const char* getCmdName() const
60     { return "TerratecSyncStateCmd"; }
61
62     byte_t m_syncstate;
63 };
64
65 class TerratecStoreMixerSettingsCmd: public TerratecVendorDependentCmd
66 {
67 public:
68     TerratecStoreMixerSettingsCmd(Ieee1394Service& ieee1394service);
69     virtual ~TerratecStoreMixerSettingsCmd() {};
70
71     virtual bool serialize( Util::Cmd::IOSSerialize& se );
72     virtual bool deserialize( Util::Cmd::IISDeserialize& de );
73
74     virtual const char* getCmdName() const
75     { return "TerratecStoreMixerSettingsCmd"; }
76 };
77
78 class TerratecSetMidiRemoteChannelCmd: public TerratecVendorDependentCmd
79 {
80 public:
81     TerratecSetMidiRemoteChannelCmd(Ieee1394Service& ieee1394service);
82     virtual ~TerratecSetMidiRemoteChannelCmd() {};
83
84     virtual bool serialize( Util::Cmd::IOSSerialize& se );
85     virtual bool deserialize( Util::Cmd::IISDeserialize& de );
86
87     virtual const char* getCmdName() const
88     { return "TerratecSetMidiRemoteChannelCmd"; }
89
90     byte_t m_midichannel;
91 };
92
93 class TerratecSetMidiControlCmd: public TerratecVendorDependentCmd
94 {
95 public:
96     TerratecSetMidiControlCmd(Ieee1394Service& ieee1394service);
97     virtual ~TerratecSetMidiControlCmd() {};
98
99     virtual bool serialize( Util::Cmd::IOSSerialize& se );
100     virtual bool deserialize( Util::Cmd::IISDeserialize& de );
101
102     virtual const char* getCmdName() const
103     { return "TerratecSetMidiControlCmd"; }
104
105     byte_t m_mixercontrol;
106     byte_t m_midicontroller;
107 };
108
109 class TerratecSetDefaultRoutingCmd: public TerratecVendorDependentCmd
110 {
111 public:
112     TerratecSetDefaultRoutingCmd(Ieee1394Service& ieee1394service);
113     virtual ~TerratecSetDefaultRoutingCmd() {};
114
115     virtual bool serialize( Util::Cmd::IOSSerialize& se );
116     virtual bool deserialize( Util::Cmd::IISDeserialize& de );
117
118     virtual const char* getCmdName() const
119     { return "TerratecSetDefaultRoutingCmd"; }
120
121     byte_t m_output;
122     byte_t m_source;
123 };
124
125 class TerratecDeviceIdCmd: public TerratecVendorDependentCmd
126 {
127 public:
128     TerratecDeviceIdCmd(Ieee1394Service& ieee1394service);
129     virtual ~TerratecDeviceIdCmd() {};
130
131     virtual bool serialize( Util::Cmd::IOSSerialize& se );
132     virtual bool deserialize( Util::Cmd::IISDeserialize& de );
133
134     virtual const char* getCmdName() const
135     { return "TerratecDeviceIdCmd"; }
136
137     byte_t m_deviceid;
138 };
139
140 }
141 }
142
143 #endif // TERRATECVENDORDEPENDENT_H
Note: See TracBrowser for help on using the browser.