ip.h 7.21 KB
Newer Older
yoogx's avatar
yoogx committed
1
2
#ifndef GENERATED_ASN1SCC_IP_H
#define GENERATED_ASN1SCC_IP_H
3
4
5
6
7
8
9
10
11
12
13
14
15
/*
Code automatically generated by asn1scc tool
*/
#include "asn1crt.h"

#ifdef  __cplusplus
extern "C" {
#endif



typedef asn1SccSint __po_hi_c_Port_T;

yoogx's avatar
yoogx committed
16
#define __po_hi_c_Port_T_REQUIRED_BYTES_FOR_ENCODING       2 
17
#define __po_hi_c_Port_T_REQUIRED_BITS_FOR_ENCODING        15
yoogx's avatar
yoogx committed
18
19
20
#define __po_hi_c_Port_T_REQUIRED_BYTES_FOR_ACN_ENCODING   2 
#define __po_hi_c_Port_T_REQUIRED_BITS_FOR_ACN_ENCODING    15
#define __po_hi_c_Port_T_REQUIRED_BYTES_FOR_XER_ENCODING   37
21
22
23

void __po_hi_c_Port_T_Initialize(__po_hi_c_Port_T* pVal);
flag __po_hi_c_Port_T_IsConstraintValid(const __po_hi_c_Port_T* val, int* pErrCode);
yoogx's avatar
yoogx committed
24
25
26
#ifndef ERR___po_hi_c_Port_T 
#define ERR___po_hi_c_Port_T		1001  /*(0 .. 16535)*/
#endif
27
28
29
30
31
32

typedef enum {
    __po_hi_c_ipv4 = 0,
    __po_hi_c_ipv6 = 1
} __po_hi_c_Version_T;

yoogx's avatar
yoogx committed
33
#define __po_hi_c_Version_T_REQUIRED_BYTES_FOR_ENCODING       1 
34
#define __po_hi_c_Version_T_REQUIRED_BITS_FOR_ENCODING        1
yoogx's avatar
yoogx committed
35
36
37
#define __po_hi_c_Version_T_REQUIRED_BYTES_FOR_ACN_ENCODING   1 
#define __po_hi_c_Version_T_REQUIRED_BITS_FOR_ACN_ENCODING    1
#define __po_hi_c_Version_T_REQUIRED_BYTES_FOR_XER_ENCODING   34
38

yoogx's avatar
yoogx committed
39
40
void __po_hi_c_Version_T_Initialize(__po_hi_c_Version_T* pVal);
flag __po_hi_c_Version_T_IsConstraintValid(const __po_hi_c_Version_T* val, int* pErrCode);
41
#ifndef ERR___po_hi_c_Version_T_unknown_enumeration_value 
yoogx's avatar
yoogx committed
42
43
44
45
#define ERR___po_hi_c_Version_T_unknown_enumeration_value		1003  /**/
#endif
#ifndef ERR___po_hi_c_Version_T 
#define ERR___po_hi_c_Version_T		1002  /**/
46
47
#endif

yoogx's avatar
yoogx committed
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
typedef char __po_hi_c_ip_conf_t_dns[41];

#define __po_hi_c_ip_conf_t_dns_REQUIRED_BYTES_FOR_ENCODING       36 
#define __po_hi_c_ip_conf_t_dns_REQUIRED_BITS_FOR_ENCODING        286
#define __po_hi_c_ip_conf_t_dns_REQUIRED_BYTES_FOR_ACN_ENCODING   36 
#define __po_hi_c_ip_conf_t_dns_REQUIRED_BITS_FOR_ACN_ENCODING    286
#define __po_hi_c_ip_conf_t_dns_REQUIRED_BYTES_FOR_XER_ENCODING   71

void __po_hi_c_ip_conf_t_dns_Initialize(__po_hi_c_ip_conf_t_dns pVal);
flag __po_hi_c_ip_conf_t_dns_IsConstraintValid(const __po_hi_c_ip_conf_t_dns val, int* pErrCode);
#ifndef ERR___po_hi_c_ip_conf_t_dns 
#define ERR___po_hi_c_ip_conf_t_dns		1004  /*(SIZE(1 .. 40))*/
#endif

typedef char __po_hi_c_ip_conf_t_gateway[41];

#define __po_hi_c_ip_conf_t_gateway_REQUIRED_BYTES_FOR_ENCODING       36 
#define __po_hi_c_ip_conf_t_gateway_REQUIRED_BITS_FOR_ENCODING        286
#define __po_hi_c_ip_conf_t_gateway_REQUIRED_BYTES_FOR_ACN_ENCODING   36 
#define __po_hi_c_ip_conf_t_gateway_REQUIRED_BITS_FOR_ACN_ENCODING    286
#define __po_hi_c_ip_conf_t_gateway_REQUIRED_BYTES_FOR_XER_ENCODING   79

void __po_hi_c_ip_conf_t_gateway_Initialize(__po_hi_c_ip_conf_t_gateway pVal);
flag __po_hi_c_ip_conf_t_gateway_IsConstraintValid(const __po_hi_c_ip_conf_t_gateway val, int* pErrCode);
#ifndef ERR___po_hi_c_ip_conf_t_gateway 
#define ERR___po_hi_c_ip_conf_t_gateway		1005  /*(SIZE(1 .. 40))*/
#endif

typedef char __po_hi_c_ip_conf_t_netmask[41];

#define __po_hi_c_ip_conf_t_netmask_REQUIRED_BYTES_FOR_ENCODING       36 
#define __po_hi_c_ip_conf_t_netmask_REQUIRED_BITS_FOR_ENCODING        286
#define __po_hi_c_ip_conf_t_netmask_REQUIRED_BYTES_FOR_ACN_ENCODING   36 
#define __po_hi_c_ip_conf_t_netmask_REQUIRED_BITS_FOR_ACN_ENCODING    286
#define __po_hi_c_ip_conf_t_netmask_REQUIRED_BYTES_FOR_XER_ENCODING   79

void __po_hi_c_ip_conf_t_netmask_Initialize(__po_hi_c_ip_conf_t_netmask pVal);
flag __po_hi_c_ip_conf_t_netmask_IsConstraintValid(const __po_hi_c_ip_conf_t_netmask val, int* pErrCode);
#ifndef ERR___po_hi_c_ip_conf_t_netmask 
#define ERR___po_hi_c_ip_conf_t_netmask		1006  /*(SIZE(1 .. 40))*/
#endif

typedef char __po_hi_c_ip_conf_t_broadcast[41];

#define __po_hi_c_ip_conf_t_broadcast_REQUIRED_BYTES_FOR_ENCODING       36 
#define __po_hi_c_ip_conf_t_broadcast_REQUIRED_BITS_FOR_ENCODING        286
#define __po_hi_c_ip_conf_t_broadcast_REQUIRED_BYTES_FOR_ACN_ENCODING   36 
#define __po_hi_c_ip_conf_t_broadcast_REQUIRED_BITS_FOR_ACN_ENCODING    286
#define __po_hi_c_ip_conf_t_broadcast_REQUIRED_BYTES_FOR_XER_ENCODING   83

void __po_hi_c_ip_conf_t_broadcast_Initialize(__po_hi_c_ip_conf_t_broadcast pVal);
flag __po_hi_c_ip_conf_t_broadcast_IsConstraintValid(const __po_hi_c_ip_conf_t_broadcast val, int* pErrCode);
#ifndef ERR___po_hi_c_ip_conf_t_broadcast 
#define ERR___po_hi_c_ip_conf_t_broadcast		1007  /*(SIZE(1 .. 40))*/
#endif

typedef char __po_hi_c_ip_conf_t_address[41];
105

yoogx's avatar
yoogx committed
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
#define __po_hi_c_ip_conf_t_address_REQUIRED_BYTES_FOR_ENCODING       36 
#define __po_hi_c_ip_conf_t_address_REQUIRED_BITS_FOR_ENCODING        286
#define __po_hi_c_ip_conf_t_address_REQUIRED_BYTES_FOR_ACN_ENCODING   36 
#define __po_hi_c_ip_conf_t_address_REQUIRED_BITS_FOR_ACN_ENCODING    286
#define __po_hi_c_ip_conf_t_address_REQUIRED_BYTES_FOR_XER_ENCODING   79

void __po_hi_c_ip_conf_t_address_Initialize(__po_hi_c_ip_conf_t_address pVal);
flag __po_hi_c_ip_conf_t_address_IsConstraintValid(const __po_hi_c_ip_conf_t_address val, int* pErrCode);
#ifndef ERR___po_hi_c_ip_conf_t_address 
#define ERR___po_hi_c_ip_conf_t_address		1008  /*(SIZE(1 .. 40))*/
#endif

typedef char __po_hi_c_ip_conf_t_devname[21];

#define __po_hi_c_ip_conf_t_devname_REQUIRED_BYTES_FOR_ENCODING       19 
#define __po_hi_c_ip_conf_t_devname_REQUIRED_BITS_FOR_ENCODING        145
#define __po_hi_c_ip_conf_t_devname_REQUIRED_BYTES_FOR_ACN_ENCODING   19 
#define __po_hi_c_ip_conf_t_devname_REQUIRED_BITS_FOR_ACN_ENCODING    145
#define __po_hi_c_ip_conf_t_devname_REQUIRED_BYTES_FOR_XER_ENCODING   59

void __po_hi_c_ip_conf_t_devname_Initialize(__po_hi_c_ip_conf_t_devname pVal);
flag __po_hi_c_ip_conf_t_devname_IsConstraintValid(const __po_hi_c_ip_conf_t_devname val, int* pErrCode);
#ifndef ERR___po_hi_c_ip_conf_t_devname 
#define ERR___po_hi_c_ip_conf_t_devname		1009  /*(SIZE(1 .. 20))*/
#endif
131
132

typedef struct {
yoogx's avatar
yoogx committed
133
134
135
136
137
138
    __po_hi_c_ip_conf_t_devname devname;
    __po_hi_c_ip_conf_t_address address;
    __po_hi_c_ip_conf_t_broadcast broadcast;
    __po_hi_c_ip_conf_t_netmask netmask;
    __po_hi_c_ip_conf_t_gateway gateway;
    __po_hi_c_ip_conf_t_dns dns;
139
140
141
    __po_hi_c_Version_T version;
    __po_hi_c_Port_T port;
    struct {
jdelange's avatar
jdelange committed
142
143
144
145
        unsigned int broadcast:1;
        unsigned int netmask:1;
        unsigned int gateway:1;
        unsigned int dns:1;
146
147
148
149
        unsigned int version:1;
    } exist;
} __po_hi_c_ip_conf_t;

yoogx's avatar
yoogx committed
150
#define __po_hi_c_ip_conf_t_REQUIRED_BYTES_FOR_ENCODING       200 
jdelange's avatar
jdelange committed
151
#define __po_hi_c_ip_conf_t_REQUIRED_BITS_FOR_ENCODING        1596
yoogx's avatar
yoogx committed
152
153
154
#define __po_hi_c_ip_conf_t_REQUIRED_BYTES_FOR_ACN_ENCODING   200 
#define __po_hi_c_ip_conf_t_REQUIRED_BITS_FOR_ACN_ENCODING    1596
#define __po_hi_c_ip_conf_t_REQUIRED_BYTES_FOR_XER_ENCODING   416
155
156
157
158
159

void __po_hi_c_ip_conf_t_Initialize(__po_hi_c_ip_conf_t* pVal);
flag __po_hi_c_ip_conf_t_IsConstraintValid(const __po_hi_c_ip_conf_t* val, int* pErrCode);


yoogx's avatar
yoogx committed
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
extern const __po_hi_c_ip_conf_t localhost1;
extern const __po_hi_c_ip_conf_t localhost2; 

/* ================= Encoding/Decoding function prototypes =================
 * These functions are placed at the end of the file to make sure all types
 * have been declared first, in case of parameterized ACN encodings
 * ========================================================================= */









 

178
179
180
181
182

#ifdef  __cplusplus
}
#define ENUM___po_hi_c_ipv4	__po_hi_c_ipv4
#define ENUM___po_hi_c_ipv6	__po_hi_c_ipv6
yoogx's avatar
yoogx committed
183

184
185
186
#endif

#endif