1 |
/* |
---|
2 |
* Copyright (C) 2005-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 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 3 of the License, or |
---|
12 |
* (at your option) any later version. |
---|
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 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::Cmd::IOSSerialize& se ); |
---|
38 |
virtual bool deserialize( Util::Cmd::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::Cmd::IOSSerialize& se ); |
---|
57 |
virtual bool deserialize( Util::Cmd::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::Cmd::IOSSerialize& se ); |
---|
76 |
virtual bool deserialize( Util::Cmd::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 |
---|