libiec61850  1.2.0
mms_common.h
Go to the documentation of this file.
1 /*
2  * mms_common.h
3  *
4  * Copyright 2013, 2014 Michael Zillgith
5  *
6  * This file is part of libIEC61850.
7  *
8  * libIEC61850 is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation, either version 3 of the License, or
11  * (at your option) any later version.
12  *
13  * libIEC61850 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
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with libIEC61850. If not, see <http://www.gnu.org/licenses/>.
20  *
21  * See COPYING file for the complete license text.
22  */
23 
24 #include "libiec61850_common_api.h"
25 
26 #ifndef MMS_COMMON_H_
27 #define MMS_COMMON_H_
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
38 typedef enum
39 {
40  /* generic error codes */
50 
52 
53  /* confirmed error PDU codes */
55 
57 
65 
68 
71 
73 
75 
81  MMS_ERROR_ACCESS_OBJECT_VALUE_INVALID = 85, /* for DataAccessError 11 */
82  MMS_ERROR_ACCESS_TEMPORARILY_UNAVAILABLE = 86, /* for DataAccessError 2 */
83 
94 
95  /* reject codes */
102 
103 } MmsError;
104 
105 typedef enum
106 {
127  MMS_BCD = 11,
135 } MmsType;
136 
137 typedef struct sMmsDomain MmsDomain;
138 
139 typedef struct sMmsAccessSpecifier
140 {
141  MmsDomain* domain;
143  int arrayIndex; /* -1 --> no index present / ignore index */
146 
147 typedef struct
148 {
149  char* domainId;
150  char* itemId;
151  int32_t arrayIndex; /* -1 --> no index present / ignore index */
154 
155 typedef struct sMmsNamedVariableList* MmsNamedVariableList;
156 typedef struct sMmsAccessSpecifier* MmsNamedVariableListEntry;
157 
161 typedef struct {
162  uint16_t arc[10];
163  int arcCount;
165 
169 typedef struct {
173 
177 #ifdef __cplusplus
178 }
179 #endif
180 
181 #endif /* MMS_COMMON_H_ */
Definition: mms_common.h:128
Definition: mms_common.h:58
char * variableName
Definition: mms_common.h:142
Definition: mms_common.h:132
Definition: mms_common.h:56
Definition: mms_common.h:108
Definition: mms_common.h:42
struct sMmsAccessSpecifier * MmsNamedVariableListEntry
Definition: mms_common.h:156
Definition: mms_common.h:118
Definition: mms_common.h:82
char * componentName
Definition: mms_common.h:152
Definition: mms_named_variable_list.h:39
Definition: mms_common.h:127
Definition: mms_common.h:96
Definition: mms_common.h:44
MmsDomain * domain
Definition: mms_common.h:141
Definition: mms_common.h:86
Definition: mms_common.h:116
Definition: mms_common.h:80
Definition: mms_common.h:46
Definition: mms_common.h:88
int arrayIndex
Definition: mms_common.h:143
Definition: mms_common.h:59
Definition: mms_common.h:124
Definition: mms_common.h:147
Definition: mms_common.h:92
int aeQualifier
Definition: mms_common.h:171
Definition: mms_common.h:62
Definition: mms_common.h:77
Definition: mms_common.h:110
Definition: mms_common.h:97
Definition: mms_common.h:74
Definition: mms_common.h:54
Definition: mms_common.h:112
int arcCount
Definition: mms_common.h:163
Definition: mms_common.h:72
Definition: mms_common.h:49
Definition: mms_common.h:126
Definition: mms_common.h:84
Definition: mms_common.h:66
Definition: mms_common.h:41
Definition: mms_common.h:63
Definition: mms_common.h:81
Definition: mms_common.h:89
Definition: mms_common.h:122
Definition: mms_common.h:43
int32_t arrayIndex
Definition: mms_common.h:151
Definition: mms_common.h:51
Definition: mms_common.h:114
Definition: mms_common.h:100
Definition: mms_common.h:61
Definition: mms_common.h:91
Definition: mms_common.h:45
Definition: mms_device_model.h:64
Definition: mms_common.h:139
Definition: mms_common.h:69
Definition: mms_common.h:99
char * domainId
Definition: mms_common.h:149
Definition: mms_common.h:76
Definition: mms_common.h:120
Definition: mms_common.h:134
ItuObjectIdentifier apTitle
Definition: mms_common.h:170
Definition: mms_common.h:130
Definition: mms_common.h:47
Definition: mms_common.h:48
Definition: mms_common.h:98
ITU (International Telecommunication Union) object identifier (OID)
Definition: mms_common.h:161
Definition: mms_common.h:125
ISO application reference (specifies an ISO application endpoint)
Definition: mms_common.h:169
char * componentName
Definition: mms_common.h:144
Definition: mms_common.h:60
Definition: mms_common.h:90
Definition: mms_common.h:87
char * itemId
Definition: mms_common.h:150
Definition: mms_common.h:79
Definition: mms_common.h:101
MmsError
Definition: mms_common.h:38
Definition: mms_common.h:85
MmsType
Definition: mms_common.h:105