Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
defines.hpp
Go to the documentation of this file.
1#ifndef IV_SRC_CHANNELS_DEFINES_HPP_
2#define IV_SRC_CHANNELS_DEFINES_HPP_
3
4#include "core/types.hpp"
5
6namespace iv::channels
7{
8
9namespace constants
10{
11
13
14struct Offsets
15{
16private:
17 inline static constexpr iv::types::channelOrder offsetLimitByLom {64};
18 inline static constexpr iv::types::channelOrder offsetLimitForAswByLom {100};
19
20public:
22
23 inline static constexpr iv::types::channelOrder offsetComm {100};
24 inline static constexpr iv::types::channelOrder offsetCommEnd {offsetComm + 99};
25 inline static constexpr iv::types::channelOrder offsetAsw {200};
27 inline static constexpr iv::types::channelOrder offsetDsw {200};
29 inline static constexpr iv::types::channelOrder offsetSw {200};
31 inline static constexpr iv::types::channelOrder offsetMemory {300};
33 inline static constexpr iv::types::channelOrder offsetCmd {400};
35 inline static constexpr iv::types::channelOrder offsetInternMemory {500};
36 inline static constexpr iv::types::channelOrder offsetBroadcastCommand {600};
39
40 //To restrict in some places of the editor
42 {
43 inline static constexpr iv::types::channelOrder offsetLomAsw {203};
45 inline static constexpr iv::types::channelOrder offsetLomDsw {203};
47 };
48
50 {
51 inline static constexpr iv::types::channelOrder offsetPmmStart {228};
53 };
54
55 inline static constexpr iv::types::channelOrder offsetAnalogTimer {2600};
56 inline static constexpr iv::types::channelOrder offsetAnalogTimerEnd {2699};
57
59 inline static constexpr iv::types::channelOrder offsetSerialChannelIdEnd {1999};
60 inline static constexpr iv::types::channelOrder offsetAnalogTank {2600};
61
62 inline static constexpr iv::types::channelOrder offsetStationOnlyChannels {3000};
63};
64
66{
67 inline static const iv::types::logic::channelGlobalId offsetGlobalIdChannelDio {0}; // 64 channels
68 inline static const iv::types::logic::channelGlobalId offsetGlobalIdChannelCmd {64}; // 64 channels
69 inline static const iv::types::logic::channelGlobalId offsetGlobalIdChannelMem {128}; // 64 channels
70 inline static const iv::types::logic::channelGlobalId offsetGlobalIdChannelDsw {192}; // 64 channels
72 inline static const iv::types::logic::channelGlobalId offsetGlobalIdChannelAsw {320}; // 128 channels
73 inline static const iv::types::logic::channelGlobalId offsetGlobalIdChannelAio {448}; // 64 channels
75};
76
77struct Index
78{
79 inline static constexpr iv::types::indexChannel indexInternalCommChannel {0x2400};
80 inline static constexpr iv::types::indexChannel indexDigitalChannelOffset {0x3000};
81 inline static constexpr iv::types::indexChannel indexAnalogChannelOffset {0x3400};
82 inline static constexpr iv::types::indexChannel indexCommandChannelOffset {0x3800};
83 inline static constexpr iv::types::indexChannel indexAnalogInternal {0x4000};
84 inline static constexpr iv::types::indexChannel indexDigitalInternalChOffset {0x4400};
85 inline static constexpr iv::types::indexChannel indexMemoryChOffset {0x3C00};// Compatibility with old versions
90 inline static constexpr iv::types::indexChannel indexStationOnlyChannelsOffset {UINT16_MAX};
91};
92
93}// namespace constants
94
95}// namespace iv::channels
96
97#endif//IV_SRC_CHANNELS_DEFINES_HPP_
constexpr iv::types::channelValue noValueSerialLineLom
Definition defines.hpp:12
Definition AlarmsManager.hpp:17
uint32_t channelGlobalId
Definition types.hpp:127
uint32_t indexChannel
Definition types.hpp:87
uint16_t channelOrder
Definition types.hpp:68
double channelValue
Definition types.hpp:67
Definition defines.hpp:66
static const iv::types::logic::channelGlobalId offsetGlobalIdChannelBroadcastCommand
Definition defines.hpp:71
static const iv::types::logic::channelGlobalId offsetGlobalIdChannelAio
Definition defines.hpp:73
static const iv::types::logic::channelGlobalId offsetGlobalIdChannelDsw
Definition defines.hpp:70
static const iv::types::logic::channelGlobalId offsetGlobalIdChannelCmd
Definition defines.hpp:68
static const iv::types::logic::channelGlobalId offsetGlobalIdChannelAsw
Definition defines.hpp:72
static const iv::types::logic::channelGlobalId offsetGlobalIdChannelDio
Definition defines.hpp:67
static const iv::types::logic::channelGlobalId offsetGlobalIdChannelMem
Definition defines.hpp:69
static const iv::types::logic::channelGlobalId offsetGlobalIdEnd
Definition defines.hpp:74
Definition defines.hpp:78
static constexpr iv::types::indexChannel indexAnalogChannelOffset
Definition defines.hpp:81
static constexpr iv::types::indexChannel indexMemoryChOffset
Definition defines.hpp:85
static constexpr iv::types::indexChannel indexDigitalInternalChOffset
Definition defines.hpp:84
static constexpr iv::types::indexChannel indexInternalCommChannel
Definition defines.hpp:79
static constexpr iv::types::indexChannel indexSerialAnalogOutputChannelOffset
Definition defines.hpp:89
static constexpr iv::types::indexChannel indexSerialDigitalChannelOffset
Definition defines.hpp:86
static constexpr iv::types::indexChannel indexSerialAnalogInputChannelOffset
Definition defines.hpp:87
static constexpr iv::types::indexChannel indexDigitalChannelOffset
Definition defines.hpp:80
static constexpr iv::types::indexChannel indexStationOnlyChannelsOffset
Definition defines.hpp:90
static constexpr iv::types::indexChannel indexSerialDigitalOutputChannelOffset
Definition defines.hpp:88
static constexpr iv::types::indexChannel indexAnalogInternal
Definition defines.hpp:83
static constexpr iv::types::indexChannel indexCommandChannelOffset
Definition defines.hpp:82
static constexpr iv::types::channelOrder offsetLomDswEnd
Definition defines.hpp:46
static constexpr iv::types::channelOrder offsetLomAswEnd
Definition defines.hpp:44
static constexpr iv::types::channelOrder offsetLomAsw
Definition defines.hpp:43
static constexpr iv::types::channelOrder offsetLomDsw
Definition defines.hpp:45
static constexpr iv::types::channelOrder offsetPmmEnd
Definition defines.hpp:52
static constexpr iv::types::channelOrder offsetPmmStart
Definition defines.hpp:51
Definition defines.hpp:15
static constexpr iv::types::channelOrder offsetCommEnd
Definition defines.hpp:24
static constexpr iv::types::channelOrder offsetCmd
Definition defines.hpp:33
static constexpr iv::types::channelOrder offsetComm
Definition defines.hpp:23
static constexpr iv::types::channelOrder offsetAswEnd
Definition defines.hpp:26
static constexpr iv::types::channelOrder offsetMemoryEnd
Definition defines.hpp:32
static constexpr iv::types::channelOrder offsetAsw
Definition defines.hpp:25
static constexpr iv::types::channelOrder offsetStationOnlyChannels
Definition defines.hpp:62
static constexpr iv::types::channelOrder offsetInternMemory
Definition defines.hpp:35
static constexpr iv::types::channelOrder offsetAnalogTimer
Definition defines.hpp:55
static constexpr iv::types::channelOrder offsetMemory
Definition defines.hpp:31
static constexpr iv::types::channelOrder offsetDsw
Definition defines.hpp:27
static constexpr iv::types::channelOrder offsetSw
Definition defines.hpp:29
static constexpr iv::types::channelOrder offsetCmdEnd
Definition defines.hpp:34
static constexpr iv::types::channelOrder offsetAnalogTimerEnd
Definition defines.hpp:56
static constexpr iv::types::channelOrder offsetBroadcastCommandEnd
Definition defines.hpp:37
static constexpr iv::types::channelOrder offsetSerialChannelIdStart
Definition defines.hpp:58
static constexpr iv::types::channelOrder testChannelId
Definition defines.hpp:21
static constexpr iv::types::channelOrder offsetBroadcastCommand
Definition defines.hpp:36
static constexpr iv::types::channelOrder offsetSwEnd
Definition defines.hpp:30
static constexpr iv::types::channelOrder offsetLimitByLom
Definition defines.hpp:17
static constexpr iv::types::channelOrder offsetAnalogTank
Definition defines.hpp:60
static constexpr iv::types::channelOrder offsetSerialChannelIdEnd
Definition defines.hpp:59
static constexpr iv::types::channelOrder offsetDswEnd
Definition defines.hpp:28
static constexpr iv::types::channelOrder offsetLimitForAswByLom
Definition defines.hpp:18