1553.h 3.85 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
/*
Code automatically generated by asn1scc tool
*/
#include "asn1crt.h"

#ifdef  __cplusplus
extern "C" {
#endif


13
typedef asn1SccUint __po_hi_c_Node_Addr_T;
14
15
16
17


void __po_hi_c_Node_Addr_T_Initialize(__po_hi_c_Node_Addr_T* pVal);

18
19
#define ERR_NODE_ADDR_T		1  /**/
flag __po_hi_c_Node_Addr_T_IsConstraintValid(const __po_hi_c_Node_Addr_T* pVal, int* pErrCode);
20
21
22
23
24
typedef enum {
    __po_hi_c_mil1553a = 0,
    __po_hi_c_mil1553b = 1
} __po_hi_c_Standard_T;

Maxime Perrotin's avatar
Maxime Perrotin committed
25
26
27
// please use the following macros to avoid breaking code.
#define __po_hi_c_Standard_T_mil1553a __po_hi_c_mil1553a
#define __po_hi_c_Standard_T_mil1553b __po_hi_c_mil1553b
28
29
30

void __po_hi_c_Standard_T_Initialize(__po_hi_c_Standard_T* pVal);

31
32
#define ERR_STANDARD_T		8  /**/
flag __po_hi_c_Standard_T_IsConstraintValid(const __po_hi_c_Standard_T* pVal, int* pErrCode);
33
34
35
36
37
38
typedef enum {
    __po_hi_c_controller = 0,
    __po_hi_c_terminal = 1,
    __po_hi_c_monitor = 2
} __po_hi_c_Mode_T;

Maxime Perrotin's avatar
Maxime Perrotin committed
39
40
41
42
// please use the following macros to avoid breaking code.
#define __po_hi_c_Mode_T_controller __po_hi_c_controller
#define __po_hi_c_Mode_T_terminal __po_hi_c_terminal
#define __po_hi_c_Mode_T_monitor __po_hi_c_monitor
43
44
45

void __po_hi_c_Mode_T_Initialize(__po_hi_c_Mode_T* pVal);

46
47
#define ERR_MODE_T		15  /**/
flag __po_hi_c_Mode_T_IsConstraintValid(const __po_hi_c_Mode_T* pVal, int* pErrCode);
48
49
50
51
52
53
54
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;

Maxime Perrotin's avatar
Maxime Perrotin committed
55
56
57
58
59
// please use the following macros to avoid breaking code.
#define __po_hi_c_Bus_T_none __po_hi_c_none
#define __po_hi_c_Bus_T_bus_a __po_hi_c_bus_a
#define __po_hi_c_Bus_T_bus_b __po_hi_c_bus_b
#define __po_hi_c_Bus_T_both __po_hi_c_both
60

yoogx's avatar
yoogx committed
61
void __po_hi_c_Bus_T_Initialize(__po_hi_c_Bus_T* pVal);
62

63
64
65
#define ERR_BUS_T		22  /**/
flag __po_hi_c_Bus_T_IsConstraintValid(const __po_hi_c_Bus_T* pVal, int* pErrCode);
/*-- __po_hi_c_mil_1553_conf_t --------------------------------------------*/
yoogx's avatar
yoogx committed
66
typedef char __po_hi_c_mil_1553_conf_t_devname[21];
67
typedef struct {
yoogx's avatar
yoogx committed
68
    __po_hi_c_mil_1553_conf_t_devname devname;
69
70
71
72
73
74
75
    __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;
76

77
78
79
80
    struct {
        unsigned int rxblock:1;
        unsigned int txblock:1;
    } exist;
81

82
83
} __po_hi_c_mil_1553_conf_t;

84
void __po_hi_c_mil_1553_conf_t_devname_Initialize(__po_hi_c_mil_1553_conf_t_devname val);
85
86
void __po_hi_c_mil_1553_conf_t_Initialize(__po_hi_c_mil_1553_conf_t* pVal);

87
<<<<<<< HEAD
Maxime Perrotin's avatar
Maxime Perrotin committed
88
#define ERR_MIL_1553_CONF_T		105  /**/
89
#define ERR_MIL_1553_CONF_T_DEVNAME		29  /**/
Maxime Perrotin's avatar
Maxime Perrotin committed
90
91
92
93
94
95
96
#define ERR_MIL_1553_CONF_T_STANDARD_2		43  /**/
#define ERR_MIL_1553_CONF_T_MODE_2		55  /**/
#define ERR_MIL_1553_CONF_T_BUS_2		67  /**/
#define ERR_MIL_1553_CONF_T_TERMADDR_2		79  /**/
#define ERR_MIL_1553_CONF_T_BROADCAST		84  /**/
#define ERR_MIL_1553_CONF_T_RXBLOCK		91  /**/
#define ERR_MIL_1553_CONF_T_TXBLOCK		98  /**/
97
=======
98
99
100
101
102
103
104
105
106
#define ERR_MIL_1553_CONF_T		101  /**/
#define ERR_MIL_1553_CONF_T_DEVNAME		29  /**/
#define ERR_MIL_1553_CONF_T_STANDARD		36  /**/
#define ERR_MIL_1553_CONF_T_MODE		47  /**/
#define ERR_MIL_1553_CONF_T_BUS		58  /**/
#define ERR_MIL_1553_CONF_T_TERMADDR		69  /**/
#define ERR_MIL_1553_CONF_T_BROADCAST		80  /**/
#define ERR_MIL_1553_CONF_T_RXBLOCK		87  /**/
#define ERR_MIL_1553_CONF_T_TXBLOCK		94  /**/
107
>>>>>>> 0e86b129902a792f4ae0c4a6bacb781c57331060
108
flag __po_hi_c_mil_1553_conf_t_IsConstraintValid(const __po_hi_c_mil_1553_conf_t* pVal, int* pErrCode);
109

yoogx's avatar
yoogx committed
110
111
112
113
114
115
116
117
118
 

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

 

119
120
121

#ifdef  __cplusplus
}
yoogx's avatar
yoogx committed
122

123
124
#endif

Maxime Perrotin's avatar
Maxime Perrotin committed
125
#endif