FACT++
1.0
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
HeadersPower.h
Go to the documentation of this file.
1
#ifndef FACT_HeadersPower
2
#define FACT_HeadersPower
3
4
#include <iosfwd>
5
#include <stdint.h>
6
7
class
QString;
8
class
QDomNamedNodeMap;
9
10
namespace
Power
11
{
12
namespace
State
13
{
14
enum
states_t
15
{
16
kDisconnected
= 1,
17
kConnected
,
18
kSystemOff
,
19
kCameraOn
= 4,
20
kBiasOn
= 8,
21
kDriveOn
= 16,
22
kCameraOff
=
kBiasOn
|
kDriveOn
,
23
kBiasOff
=
kCameraOn
|
kDriveOn
,
24
kDriveOff
=
kCameraOn
|
kBiasOn
,
25
kSystemOn
=
kCameraOn
|
kBiasOn
|
kDriveOn
,
26
kCoolingFailure
27
};
28
};
29
30
struct
Status
31
{
32
bool
fWaterLevelOk
;
33
bool
fWaterFlowOk
;
34
35
bool
fPwr24VOn
;
36
bool
fPwrPumpOn
;
37
bool
fPwrBiasOn
;
38
bool
fPwrDriveOn
;
39
40
bool
fDriveMainSwitchOn
;
41
bool
fDriveFeedbackOn
;
42
43
Status
() { }
44
45
bool
Set
(
bool
&rc,
const
QString &value);
46
bool
Set
(
const
QDomNamedNodeMap &map);
47
48
void
Print
(std::ostream &out,
const
char
*title,
const
bool
&val,
const
char
*
t
=
"enabled"
,
const
char
*f=
"disabled"
);
49
void
Print
(std::ostream &out);
50
51
uint8_t
GetVal
()
const
52
{
53
return
54
fWaterLevelOk <<0 |
55
fWaterFlowOk <<1 |
56
fPwr24VOn <<2 |
57
fPwrPumpOn <<3 |
58
fPwrDriveOn <<4 |
59
fDriveMainSwitchOn <<5 |
60
fDriveFeedbackOn <<6;
61
}
62
63
}
__attribute__
((__packed__));
64
};
65
#endif
Power::Status::GetVal
uint8_t GetVal() const
Definition:
HeadersPower.h:51
Power::State::kCameraOn
Definition:
HeadersPower.h:19
Power::State::__attribute__
enum Power::State::states_t __attribute__
Power::Status::fWaterLevelOk
bool fWaterLevelOk
Definition:
HeadersPower.h:32
Power::State::kCoolingFailure
Definition:
HeadersPower.h:26
Power
Definition:
HeadersPower.h:10
Power::Status::fPwrBiasOn
bool fPwrBiasOn
Definition:
HeadersPower.h:37
Power::Status::fWaterFlowOk
bool fWaterFlowOk
Definition:
HeadersPower.h:33
Power::Status::fPwrDriveOn
bool fPwrDriveOn
Definition:
HeadersPower.h:38
Power::Status::fDriveMainSwitchOn
bool fDriveMainSwitchOn
Definition:
HeadersPower.h:40
Power::Status::fDriveFeedbackOn
bool fDriveFeedbackOn
Definition:
HeadersPower.h:41
Set
bool Set(bool &rc, const QString &value)
Power::State::kDisconnected
Definition:
HeadersPower.h:16
Power::Status
Definition:
HeadersPower.h:30
Power::State::kConnected
Definition:
HeadersPower.h:17
Power::Status::Status
Status()
Definition:
HeadersPower.h:43
Power::Status::fPwr24VOn
bool fPwr24VOn
Definition:
HeadersPower.h:35
Power::State::kBiasOn
Definition:
HeadersPower.h:20
Power::State::kCameraOff
Definition:
HeadersPower.h:22
Power::State::kSystemOn
Definition:
HeadersPower.h:25
Print
void Print(std::ostream &out, const char *title, const bool &val, const char *t="enabled", const char *f="disabled")
Power::State::kBiasOff
Definition:
HeadersPower.h:23
Power::State::kDriveOn
Definition:
HeadersPower.h:21
Power::State::kDriveOff
Definition:
HeadersPower.h:24
t
TT t
Definition:
test_client.c:26
Power::Status::fPwrPumpOn
bool fPwrPumpOn
Definition:
HeadersPower.h:36
Power::State::states_t
states_t
Definition:
HeadersPower.h:14
State
Definition:
HeadersFAD.h:57
Power::State::kSystemOff
Definition:
HeadersPower.h:18
src
HeadersPower.h
Generated on Sun Sep 18 2016 20:50:25 for FACT++ by
1.8.11