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

Revision 503, 2.7 kB (checked in by ppalmers, 17 years ago)

- put all libavc stuff into it's own name namespace (AVC)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 /*
2  * Copyright (C) 2005-2007 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 library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public
11  * License version 2.1, as published by the Free Software Foundation;
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
21  * MA 02110-1301 USA
22  */
23
24 #ifndef AVCPLUGINFO_H
25 #define AVCPLUGINFO_H
26
27 #include "avc_generic.h"
28
29 #include <libavc1394/avc1394.h>
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( IOSSerialize& se );
56     virtual bool deserialize( 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.