root/trunk/libffado/src/fireworks/efc/efc_cmds_hardware_ctrl.h

Revision 639, 2.2 kB (checked in by ppalmers, 17 years ago)

- Introduce a generic infrastructure for FFADODevices to present the clock sources they support and their state
- Implement this infrastructure for BeBoB devices
- Implement this infrastructure for ECHO Fireworks devices

Line 
1 /*
2  * Copyright (C) 2007 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 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 FIREWORKS_EFC_CMD_HARDWARE_CTRL_H
25 #define FIREWORKS_EFC_CMD_HARDWARE_CTRL_H
26
27 #include "efc_cmd.h"
28
29 namespace FireWorks {
30
31 class EfcGetClockCmd : public EfcCmd
32 {
33 public:
34     EfcGetClockCmd();
35     virtual ~EfcGetClockCmd() {};
36
37     virtual bool serialize( Util::IOSSerialize& se );
38     virtual bool deserialize( Util::IISDeserialize& de );
39
40     virtual const char* getCmdName() const
41     { return "EfcGetClockCmd"; }
42
43     virtual void showEfcCmd();
44
45     uint32_t    m_clock;
46     uint32_t    m_samplerate;
47     uint32_t    m_index;
48 };
49
50 class EfcSetClockCmd : public EfcCmd
51 {
52 public:
53     EfcSetClockCmd();
54     virtual ~EfcSetClockCmd() {};
55
56     virtual bool serialize( Util::IOSSerialize& se );
57     virtual bool deserialize( Util::IISDeserialize& de );
58
59     virtual const char* getCmdName() const
60     { return "EfcSetClockCmd"; }
61
62     virtual void showEfcCmd();
63
64     uint32_t    m_clock;
65     uint32_t    m_samplerate;
66     uint32_t    m_index;
67 };
68
69 class EfcPhyReconnectCmd : public EfcCmd
70 {
71 public:
72     EfcPhyReconnectCmd();
73     virtual ~EfcPhyReconnectCmd() {};
74
75     virtual bool serialize( Util::IOSSerialize& se );
76     virtual bool deserialize( Util::IISDeserialize& de );
77
78     virtual const char* getCmdName() const
79     { return "EfcPhyReconnectCmd"; }
80
81     virtual void showEfcCmd();
82 };
83
84 } // namespace FireWorks
85
86 #endif // FIREWORKS_EFC_CMD_HARDWARE_CTRL_H
Note: See TracBrowser for help on using the browser.