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

Revision 1498, 2.7 kB (checked in by ppalmers, 15 years ago)

Merge all changes from 2.0 branch into trunk (since r1361). This _should_ contain all forward merges done in the mean time. At this moment in time both branches should be in sync.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 /*
2  * Copyright (C) 2005-2008 by Daniel Wagner
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 AVCPLUGINFO_H
25 #define AVCPLUGINFO_H
26
27 #include "avc_generic.h"
28
29 #define AVC1394_CMD_PLUG_INFO 0x02
30
31 #define AVC1394_PLUG_INFO_SUBFUNCTION_SERIAL_BUS_ISOCHRONOUS_AND_EXTERNAL_PLUG 0x00
32 #define AVC1394_PLUG_INFO_SUBFUNCTION_SERIAL_BUS_ASYNCHRONOUS_PLUG             0x01
33 #define AVC1394_PLUG_INFO_SUBFUNCTION_SERIAL_BUS_GENERIC_BUS_PLUG_BLUETOOTH    0x40
34 #define AVC1394_PLUG_INFO_SUBFUNCTION_SERIAL_BUS_NOT_USED                      0xFF
35
36
37 namespace AVC {
38
39
40 class PlugInfoCmd: public AVCCommand
41 {
42 public:
43     enum ESubFunction {
44         eSF_SerialBusIsochronousAndExternalPlug  = AVC1394_PLUG_INFO_SUBFUNCTION_SERIAL_BUS_ISOCHRONOUS_AND_EXTERNAL_PLUG,
45         eSF_SerialBusAsynchonousPlug             = AVC1394_PLUG_INFO_SUBFUNCTION_SERIAL_BUS_ASYNCHRONOUS_PLUG,
46         eSF_SerialBusPlug                        = AVC1394_PLUG_INFO_SUBFUNCTION_SERIAL_BUS_GENERIC_BUS_PLUG_BLUETOOTH,
47         eSF_NotUsed                              = AVC1394_PLUG_INFO_SUBFUNCTION_SERIAL_BUS_NOT_USED,
48     };
49
50     PlugInfoCmd( Ieee1394Service& ieee1394service,
51          ESubFunction eSubFunction = eSF_SerialBusIsochronousAndExternalPlug );
52     PlugInfoCmd( const PlugInfoCmd& rhs );
53     virtual ~PlugInfoCmd();
54
55     virtual bool serialize( Util::Cmd::IOSSerialize& se );
56     virtual bool deserialize( Util::Cmd::IISDeserialize& de );
57
58     virtual void clear();
59
60     virtual const char* getCmdName() const
61     { return "PlugInfoCmd"; }
62
63     nr_of_plugs_t m_serialBusIsochronousInputPlugs;
64     nr_of_plugs_t m_serialBusIsochronousOutputPlugs;
65     nr_of_plugs_t m_externalInputPlugs;
66     nr_of_plugs_t m_externalOutputPlugs;
67     nr_of_plugs_t m_serialBusAsynchronousInputPlugs;
68     nr_of_plugs_t m_serialBusAsynchronousOuputPlugs;
69     nr_of_plugs_t m_destinationPlugs;
70     nr_of_plugs_t m_sourcePlugs;
71
72     bool setSubFunction( ESubFunction subFunction );
73
74 protected:
75     subfunction_t m_subFunction;
76
77 };
78
79 }
80
81 #endif // AVCPLUGINFO_H
Note: See TracBrowser for help on using the browser.