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

Revision 618, 2.0 kB (checked in by ppalmers, 13 years ago)

move serialization routines to libutil such that they can be used for non-AVC stuff too (fireworks EFC)

Line 
1 /*
2  * Copyright (C)      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 library is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU Lesser General Public
12  * License version 2.1, as published by the Free Software Foundation;
13  *
14  * This library 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 GNU
17  * Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with this library; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
22  * MA 02110-1301 USA
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::IOSSerialize& se );
41     virtual bool deserialize( Util::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::IOSSerialize& se );
60     virtual bool deserialize( Util::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.