Nix (Dev)
3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
enums.hpp
Go to the documentation of this file.
1
#ifndef IV_SRC_CHANNELS_ENUMS_HPP_
2
#define IV_SRC_CHANNELS_ENUMS_HPP_
3
4
#include "
alarms/enums.hpp
"
5
#include "
core/color.hpp
"
6
7
namespace
iv::channels
8
{
9
10
enum class
eInhibitionCondition
11
{
12
Close
,
13
Open
14
};
15
16
enum class
eAnalogSensorType
17
{
18
Voltage
= 0,
19
PT100
= 1,
20
Current
= 2,
21
Calculated
= 6,
22
23
Time
= 19,
24
ActiveIntensity
= 24,
// Internally, they will be downloaded as normal Current
25
PassiveIntensity
= 25,
// Internally, they will be downloaded as normal Current
26
27
// Only for Tim28
28
ThermocoupleTypeB
= 14,
29
ThermocoupleTypeC
= 18,
30
ThermocoupleTypeD
= 20,
31
ThermocoupleTypeE
= 16,
32
ThermocoupleTypeG
= 17,
33
ThermocoupleTypeJ
= 10,
34
ThermocoupleTypeK
= 9,
35
ThermocoupleTypeN
= 15,
36
ThermocoupleTypeR
= 12,
37
ThermocoupleTypeS
= 13,
38
ThermocoupleTypeT
= 11,
39
40
// Not used
41
InternalCompensationPT
[[maybe_unused]] = 7,
42
ExternalCompensationPT
[[maybe_unused]] = 8,
43
rE
[[maybe_unused]] = 3,
44
Lazo
[[maybe_unused]] = 4,
45
NiquelCromoNiquel
[[maybe_unused]] = 5,
46
RTD3Wires
[[maybe_unused]] = 21,
47
RTD4Wires
[[maybe_unused]] = 22,
48
Potentiometer10K
[[maybe_unused]] = 23,
49
50
// Not downloadable
51
TimeUtc
= 31,
52
};
53
54
enum class
eChannelArea
55
{
56
All
= 0x0,
57
Bridge
= 0x2,
58
Cargo
= 0x4,
59
Ecr
= 0x1
60
};
61
62
enum class
eChannelBaseType
63
{
64
VirtualAnalog
,
65
VirtualDigital
,
66
VirtualString
,
67
WiredAnalog
,
68
WiredDigital
,
69
};
70
71
enum class
eChannelSpecificType
72
{
73
//Wired Types
74
DigitalInput
,
75
DigitalOutput
,
76
AnalogInput
,
77
AnalogOutput
,
78
79
//Virtual Types
80
AnalogSoftware
,
81
DigitalSoftware
,
82
VirtualString
,
83
Command
,
84
85
// Virtual logic types
86
BroadcastCommand
,
87
88
//TODO RAG: debe morir en no mucho tiempo
89
Software
,
90
91
//No se sabe para que sirve
92
AnalogTimer
,
93
94
//Esperando por si al final se usa o no
95
SerialDigitalInput
,
96
SerialDigitalOutput
,
97
SerialLineCommand
,
98
SerialAnalogInput
,
99
SerialAnalogOutput
,
100
};
101
102
enum class
eDigitalValue
103
{
104
Close
,
105
Open
106
};
107
108
inline
eChannelBaseType
toBaseType
(
eChannelSpecificType
specificType)
109
{
110
switch
(specificType)
111
{
112
case
eChannelSpecificType::DigitalInput
:
113
case
eChannelSpecificType::DigitalOutput
:
114
return
eChannelBaseType::WiredDigital
;
115
116
case
eChannelSpecificType::AnalogInput
:
117
case
eChannelSpecificType::AnalogOutput
:
118
return
eChannelBaseType::WiredAnalog
;
119
120
case
eChannelSpecificType::Command
:
121
case
eChannelSpecificType::DigitalSoftware
:
122
case
eChannelSpecificType::Software
:
123
case
eChannelSpecificType::BroadcastCommand
:
124
return
eChannelBaseType::VirtualDigital
;
125
126
case
eChannelSpecificType::AnalogSoftware
:
127
case
eChannelSpecificType::AnalogTimer
:
128
return
eChannelBaseType::VirtualAnalog
;
129
130
case
eChannelSpecificType::SerialDigitalInput
:
131
case
eChannelSpecificType::SerialDigitalOutput
:
132
case
eChannelSpecificType::SerialLineCommand
:
133
return
eChannelBaseType::VirtualDigital
;
134
135
case
eChannelSpecificType::SerialAnalogInput
:
136
case
eChannelSpecificType::SerialAnalogOutput
:
137
return
eChannelBaseType::VirtualAnalog
;
138
139
case
eChannelSpecificType::VirtualString
:
140
return
eChannelBaseType::VirtualString
;
141
}
142
143
return
eChannelBaseType::VirtualDigital
;
144
}
145
146
}
// namespace iv::channels
147
148
#endif
//IV_SRC_CHANNELS_ENUMS_HPP_
enums.hpp
color.hpp
iv::channels
Definition
AlarmsManager.hpp:17
iv::channels::eInhibitionCondition
eInhibitionCondition
Definition
enums.hpp:11
iv::channels::eInhibitionCondition::Open
@ Open
iv::channels::eInhibitionCondition::Close
@ Close
iv::channels::eChannelSpecificType
eChannelSpecificType
Definition
enums.hpp:72
iv::channels::eChannelSpecificType::AnalogInput
@ AnalogInput
iv::channels::eChannelSpecificType::AnalogTimer
@ AnalogTimer
iv::channels::eChannelSpecificType::SerialAnalogOutput
@ SerialAnalogOutput
iv::channels::eChannelSpecificType::SerialDigitalOutput
@ SerialDigitalOutput
iv::channels::eChannelSpecificType::SerialDigitalInput
@ SerialDigitalInput
iv::channels::eChannelSpecificType::BroadcastCommand
@ BroadcastCommand
iv::channels::eChannelSpecificType::SerialAnalogInput
@ SerialAnalogInput
iv::channels::eChannelSpecificType::DigitalInput
@ DigitalInput
iv::channels::eChannelSpecificType::SerialLineCommand
@ SerialLineCommand
iv::channels::eChannelSpecificType::AnalogSoftware
@ AnalogSoftware
iv::channels::eChannelSpecificType::Software
@ Software
iv::channels::eChannelSpecificType::VirtualString
@ VirtualString
iv::channels::eChannelSpecificType::DigitalSoftware
@ DigitalSoftware
iv::channels::eChannelSpecificType::AnalogOutput
@ AnalogOutput
iv::channels::eChannelSpecificType::DigitalOutput
@ DigitalOutput
iv::channels::eChannelSpecificType::Command
@ Command
iv::channels::toBaseType
eChannelBaseType toBaseType(eChannelSpecificType specificType)
Definition
enums.hpp:108
iv::channels::eChannelBaseType
eChannelBaseType
Definition
enums.hpp:63
iv::channels::eChannelBaseType::VirtualDigital
@ VirtualDigital
iv::channels::eChannelBaseType::WiredDigital
@ WiredDigital
iv::channels::eChannelBaseType::VirtualAnalog
@ VirtualAnalog
iv::channels::eChannelBaseType::VirtualString
@ VirtualString
iv::channels::eChannelBaseType::WiredAnalog
@ WiredAnalog
iv::channels::eAnalogSensorType
eAnalogSensorType
Definition
enums.hpp:17
iv::channels::eAnalogSensorType::ThermocoupleTypeC
@ ThermocoupleTypeC
iv::channels::eAnalogSensorType::Current
@ Current
iv::channels::eAnalogSensorType::PT100
@ PT100
iv::channels::eAnalogSensorType::Potentiometer10K
@ Potentiometer10K
iv::channels::eAnalogSensorType::Calculated
@ Calculated
iv::channels::eAnalogSensorType::ExternalCompensationPT
@ ExternalCompensationPT
iv::channels::eAnalogSensorType::NiquelCromoNiquel
@ NiquelCromoNiquel
iv::channels::eAnalogSensorType::Voltage
@ Voltage
iv::channels::eAnalogSensorType::ThermocoupleTypeB
@ ThermocoupleTypeB
iv::channels::eAnalogSensorType::ThermocoupleTypeE
@ ThermocoupleTypeE
iv::channels::eAnalogSensorType::RTD3Wires
@ RTD3Wires
iv::channels::eAnalogSensorType::TimeUtc
@ TimeUtc
iv::channels::eAnalogSensorType::ThermocoupleTypeK
@ ThermocoupleTypeK
iv::channels::eAnalogSensorType::ThermocoupleTypeS
@ ThermocoupleTypeS
iv::channels::eAnalogSensorType::Time
@ Time
iv::channels::eAnalogSensorType::PassiveIntensity
@ PassiveIntensity
iv::channels::eAnalogSensorType::RTD4Wires
@ RTD4Wires
iv::channels::eAnalogSensorType::InternalCompensationPT
@ InternalCompensationPT
iv::channels::eAnalogSensorType::rE
@ rE
iv::channels::eAnalogSensorType::ThermocoupleTypeD
@ ThermocoupleTypeD
iv::channels::eAnalogSensorType::ActiveIntensity
@ ActiveIntensity
iv::channels::eAnalogSensorType::ThermocoupleTypeR
@ ThermocoupleTypeR
iv::channels::eAnalogSensorType::ThermocoupleTypeN
@ ThermocoupleTypeN
iv::channels::eAnalogSensorType::ThermocoupleTypeJ
@ ThermocoupleTypeJ
iv::channels::eAnalogSensorType::Lazo
@ Lazo
iv::channels::eAnalogSensorType::ThermocoupleTypeT
@ ThermocoupleTypeT
iv::channels::eAnalogSensorType::ThermocoupleTypeG
@ ThermocoupleTypeG
iv::channels::eDigitalValue
eDigitalValue
Definition
enums.hpp:103
iv::channels::eChannelArea
eChannelArea
Definition
enums.hpp:55
iv::channels::eChannelArea::Ecr
@ Ecr
iv::channels::eChannelArea::All
@ All
iv::channels::eChannelArea::Bridge
@ Bridge
iv::channels::eChannelArea::Cargo
@ Cargo
src
channels
enums.hpp
Generated by
1.12.0