1553.h 3.36 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
flag __po_hi_c_Node_Addr_T_Equal(const __po_hi_c_Node_Addr_T* pVal1, const __po_hi_c_Node_Addr_T* pVal2);
17
18
19

void __po_hi_c_Node_Addr_T_Initialize(__po_hi_c_Node_Addr_T* pVal);

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

27
flag __po_hi_c_Standard_T_Equal(const __po_hi_c_Standard_T* pVal1, const __po_hi_c_Standard_T* pVal2);
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;

39
flag __po_hi_c_Mode_T_Equal(const __po_hi_c_Mode_T* pVal1, const __po_hi_c_Mode_T* pVal2);
40
41
42

void __po_hi_c_Mode_T_Initialize(__po_hi_c_Mode_T* pVal);

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

52
flag __po_hi_c_Bus_T_Equal(const __po_hi_c_Bus_T* pVal1, const __po_hi_c_Bus_T* pVal2);
53

yoogx's avatar
yoogx committed
54
void __po_hi_c_Bus_T_Initialize(__po_hi_c_Bus_T* pVal);
55

56
57
58
#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
59
typedef char __po_hi_c_mil_1553_conf_t_devname[21];
60
61

typedef struct {
yoogx's avatar
yoogx committed
62
    __po_hi_c_mil_1553_conf_t_devname devname;
63
64
65
66
67
68
69
    __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;
70

71
72
73
74
    struct {
        unsigned int rxblock:1;
        unsigned int txblock:1;
    } exist;
75

76
77
} __po_hi_c_mil_1553_conf_t;

78
79
80
flag __po_hi_c_mil_1553_conf_t_devname_Equal(const __po_hi_c_mil_1553_conf_t_devname val1, const __po_hi_c_mil_1553_conf_t_devname val2);

flag __po_hi_c_mil_1553_conf_t_Equal(const __po_hi_c_mil_1553_conf_t* pVal1, const __po_hi_c_mil_1553_conf_t* pVal2);
81

82
void __po_hi_c_mil_1553_conf_t_devname_Initialize(__po_hi_c_mil_1553_conf_t_devname val);
83
84
void __po_hi_c_mil_1553_conf_t_Initialize(__po_hi_c_mil_1553_conf_t* pVal);

85
86
87
88
89
90
91
92
93
#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  /**/
flag __po_hi_c_mil_1553_conf_t_IsConstraintValid(const __po_hi_c_mil_1553_conf_t* pVal, int* pErrCode);
94

yoogx's avatar
yoogx committed
95
96
97
98
99
100
101
102
103
 

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

 

104
105
106

#ifdef  __cplusplus
}
yoogx's avatar
yoogx committed
107

108
109
#endif

110
#endif