1553.h 5.54 KB
Newer Older
yoogx's avatar
yoogx committed
1
2
#ifndef GENERATED_ASN1SCC_1553_H
#define GENERATED_ASN1SCC_1553_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_Node_Addr_T;

yoogx's avatar
yoogx committed
16
#define __po_hi_c_Node_Addr_T_REQUIRED_BYTES_FOR_ENCODING       1 
17
#define __po_hi_c_Node_Addr_T_REQUIRED_BITS_FOR_ENCODING        5
yoogx's avatar
yoogx committed
18
19
20
#define __po_hi_c_Node_Addr_T_REQUIRED_BYTES_FOR_ACN_ENCODING   1 
#define __po_hi_c_Node_Addr_T_REQUIRED_BITS_FOR_ACN_ENCODING    5
#define __po_hi_c_Node_Addr_T_REQUIRED_BYTES_FOR_XER_ENCODING   47
21
22
23

void __po_hi_c_Node_Addr_T_Initialize(__po_hi_c_Node_Addr_T* pVal);
flag __po_hi_c_Node_Addr_T_IsConstraintValid(const __po_hi_c_Node_Addr_T* val, int* pErrCode);
yoogx's avatar
yoogx committed
24
25
26
#ifndef ERR___po_hi_c_Node_Addr_T 
#define ERR___po_hi_c_Node_Addr_T		1001  /*(0 .. 31)*/
#endif
27
28
29
30
31
32

typedef enum {
    __po_hi_c_mil1553a = 0,
    __po_hi_c_mil1553b = 1
} __po_hi_c_Standard_T;

yoogx's avatar
yoogx committed
33
#define __po_hi_c_Standard_T_REQUIRED_BYTES_FOR_ENCODING       1 
34
#define __po_hi_c_Standard_T_REQUIRED_BITS_FOR_ENCODING        1
yoogx's avatar
yoogx committed
35
36
37
#define __po_hi_c_Standard_T_REQUIRED_BYTES_FOR_ACN_ENCODING   1 
#define __po_hi_c_Standard_T_REQUIRED_BITS_FOR_ACN_ENCODING    1
#define __po_hi_c_Standard_T_REQUIRED_BYTES_FOR_XER_ENCODING   44
38
39
40

void __po_hi_c_Standard_T_Initialize(__po_hi_c_Standard_T* pVal);
flag __po_hi_c_Standard_T_IsConstraintValid(const __po_hi_c_Standard_T* val, int* pErrCode);
yoogx's avatar
yoogx committed
41
42
43
44
45
46
#ifndef ERR___po_hi_c_Standard_T_unknown_enumeration_value 
#define ERR___po_hi_c_Standard_T_unknown_enumeration_value		1003  /**/
#endif
#ifndef ERR___po_hi_c_Standard_T 
#define ERR___po_hi_c_Standard_T		1002  /**/
#endif
47
48
49
50
51
52
53

typedef enum {
    __po_hi_c_controller = 0,
    __po_hi_c_terminal = 1,
    __po_hi_c_monitor = 2
} __po_hi_c_Mode_T;

yoogx's avatar
yoogx committed
54
#define __po_hi_c_Mode_T_REQUIRED_BYTES_FOR_ENCODING       1 
55
#define __po_hi_c_Mode_T_REQUIRED_BITS_FOR_ENCODING        2
yoogx's avatar
yoogx committed
56
57
58
#define __po_hi_c_Mode_T_REQUIRED_BYTES_FOR_ACN_ENCODING   1 
#define __po_hi_c_Mode_T_REQUIRED_BITS_FOR_ACN_ENCODING    2
#define __po_hi_c_Mode_T_REQUIRED_BYTES_FOR_XER_ENCODING   36
59
60
61

void __po_hi_c_Mode_T_Initialize(__po_hi_c_Mode_T* pVal);
flag __po_hi_c_Mode_T_IsConstraintValid(const __po_hi_c_Mode_T* val, int* pErrCode);
yoogx's avatar
yoogx committed
62
63
64
65
66
67
#ifndef ERR___po_hi_c_Mode_T_unknown_enumeration_value 
#define ERR___po_hi_c_Mode_T_unknown_enumeration_value		1005  /**/
#endif
#ifndef ERR___po_hi_c_Mode_T 
#define ERR___po_hi_c_Mode_T		1004  /**/
#endif
68
69
70
71
72
73
74
75

typedef enum {
    __po_hi_c_none = 0,
    __po_hi_c_bus_a = 1,
    __po_hi_c_bus_b = 2,
    __po_hi_c_both = 3
} __po_hi_c_Bus_T;

yoogx's avatar
yoogx committed
76
#define __po_hi_c_Bus_T_REQUIRED_BYTES_FOR_ENCODING       1 
77
#define __po_hi_c_Bus_T_REQUIRED_BITS_FOR_ENCODING        2
yoogx's avatar
yoogx committed
78
79
80
#define __po_hi_c_Bus_T_REQUIRED_BYTES_FOR_ACN_ENCODING   1 
#define __po_hi_c_Bus_T_REQUIRED_BITS_FOR_ACN_ENCODING    2
#define __po_hi_c_Bus_T_REQUIRED_BYTES_FOR_XER_ENCODING   26
81

yoogx's avatar
yoogx committed
82
83
void __po_hi_c_Bus_T_Initialize(__po_hi_c_Bus_T* pVal);
flag __po_hi_c_Bus_T_IsConstraintValid(const __po_hi_c_Bus_T* val, int* pErrCode);
84
#ifndef ERR___po_hi_c_Bus_T_unknown_enumeration_value 
yoogx's avatar
yoogx committed
85
86
87
88
#define ERR___po_hi_c_Bus_T_unknown_enumeration_value		1007  /**/
#endif
#ifndef ERR___po_hi_c_Bus_T 
#define ERR___po_hi_c_Bus_T		1006  /**/
89
90
#endif

yoogx's avatar
yoogx committed
91
typedef char __po_hi_c_mil_1553_conf_t_devname[21];
92

yoogx's avatar
yoogx committed
93
94
95
96
97
98
99
100
101
102
103
#define __po_hi_c_mil_1553_conf_t_devname_REQUIRED_BYTES_FOR_ENCODING       19 
#define __po_hi_c_mil_1553_conf_t_devname_REQUIRED_BITS_FOR_ENCODING        145
#define __po_hi_c_mil_1553_conf_t_devname_REQUIRED_BYTES_FOR_ACN_ENCODING   19 
#define __po_hi_c_mil_1553_conf_t_devname_REQUIRED_BITS_FOR_ACN_ENCODING    145
#define __po_hi_c_mil_1553_conf_t_devname_REQUIRED_BYTES_FOR_XER_ENCODING   71

void __po_hi_c_mil_1553_conf_t_devname_Initialize(__po_hi_c_mil_1553_conf_t_devname pVal);
flag __po_hi_c_mil_1553_conf_t_devname_IsConstraintValid(const __po_hi_c_mil_1553_conf_t_devname val, int* pErrCode);
#ifndef ERR___po_hi_c_mil_1553_conf_t_devname 
#define ERR___po_hi_c_mil_1553_conf_t_devname		1008  /*(SIZE(1 .. 20))*/
#endif
104
105

typedef struct {
yoogx's avatar
yoogx committed
106
    __po_hi_c_mil_1553_conf_t_devname devname;
107
108
109
110
111
112
113
114
115
116
117
118
119
    __po_hi_c_Standard_T standard;
    __po_hi_c_Mode_T mode;
    __po_hi_c_Bus_T bus;
    __po_hi_c_Node_Addr_T termaddr;
    flag broadcast;
    flag rxblock;
    flag txblock;
    struct {
        unsigned int rxblock:1;
        unsigned int txblock:1;
    } exist;
} __po_hi_c_mil_1553_conf_t;

yoogx's avatar
yoogx committed
120
#define __po_hi_c_mil_1553_conf_t_REQUIRED_BYTES_FOR_ENCODING       20 
121
#define __po_hi_c_mil_1553_conf_t_REQUIRED_BITS_FOR_ENCODING        160
yoogx's avatar
yoogx committed
122
123
124
#define __po_hi_c_mil_1553_conf_t_REQUIRED_BYTES_FOR_ACN_ENCODING   20 
#define __po_hi_c_mil_1553_conf_t_REQUIRED_BITS_FOR_ACN_ENCODING    160
#define __po_hi_c_mil_1553_conf_t_REQUIRED_BYTES_FOR_XER_ENCODING   309
125
126
127
128
129

void __po_hi_c_mil_1553_conf_t_Initialize(__po_hi_c_mil_1553_conf_t* pVal);
flag __po_hi_c_mil_1553_conf_t_IsConstraintValid(const __po_hi_c_mil_1553_conf_t* val, int* pErrCode);


yoogx's avatar
yoogx committed
130
131
132
133
134
135
136
137
138
139
140
141
142
143
 

/* ================= 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
 * ========================================================================= */






 

144
145
146
147
148
149
150
151
152
153
154
155

#ifdef  __cplusplus
}
#define ENUM___po_hi_c_mil1553a	__po_hi_c_mil1553a
#define ENUM___po_hi_c_mil1553b	__po_hi_c_mil1553b
#define ENUM___po_hi_c_controller	__po_hi_c_controller
#define ENUM___po_hi_c_terminal	__po_hi_c_terminal
#define ENUM___po_hi_c_monitor	__po_hi_c_monitor
#define ENUM___po_hi_c_none	__po_hi_c_none
#define ENUM___po_hi_c_bus_a	__po_hi_c_bus_a
#define ENUM___po_hi_c_bus_b	__po_hi_c_bus_b
#define ENUM___po_hi_c_both	__po_hi_c_both
yoogx's avatar
yoogx committed
156

157
158
159
#endif

#endif