root/trunk/libffado/src/libavc/general/avc_signal_format.h

Revision 824, 1.9 kB (checked in by wagi, 16 years ago)

- moved cmd_serialize.h Util:: namespace to Util::Cmd:: in order to avoid ambiguities with serialize.h
- bebob: enhanced mixer stuff added (not finished)

Line 
1 /*
2  * Copyright (C) 2005-2007 by Pieter Palmers
3  * Copyright (C) 2005-2007 by Daniel Wagner
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 AVCSIGNALFORMAT_H
26 #define AVCSIGNALFORMAT_H
27
28 #include "avc_generic.h"
29
30 #include <libavc1394/avc1394.h>
31
32 namespace AVC {
33
34 class OutputPlugSignalFormatCmd: public AVCCommand
35 {
36 public:
37     OutputPlugSignalFormatCmd(Ieee1394Service& ieee1394service);
38     virtual ~OutputPlugSignalFormatCmd();
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 "OutputPlugSignalFormatCmd"; }
45    
46     byte_t m_plug;
47     byte_t m_eoh;
48     byte_t m_form;
49     byte_t m_fmt;
50     byte_t m_fdf[3];
51 };
52
53 class InputPlugSignalFormatCmd: public AVCCommand
54 {
55 public:
56     InputPlugSignalFormatCmd(Ieee1394Service& ieee1394service);
57     virtual ~InputPlugSignalFormatCmd();
58
59     virtual bool serialize( Util::Cmd::IOSSerialize& se );
60     virtual bool deserialize( Util::Cmd::IISDeserialize& de );
61
62     virtual const char* getCmdName() const
63     { return "InputPlugSignalFormatCmd"; }
64    
65     byte_t m_plug;
66     byte_t m_eoh;
67     byte_t m_form;
68     byte_t m_fmt;
69     byte_t m_fdf[3];
70 };
71
72
73 }
74
75 #endif // AVCSIGNALFORMAT_H
Note: See TracBrowser for help on using the browser.