serial.h 3.78 KB
Newer Older
1
2
#ifndef GENERATED_ASN1SCC_serial_H
#define GENERATED_ASN1SCC_serial_H
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
Code automatically generated by asn1scc tool
*/
#include "asn1crt.h"

#ifdef  __cplusplus
extern "C" {
#endif


typedef enum {
    __po_hi_c_b9600 = 0,
    __po_hi_c_b19200 = 1,
    __po_hi_c_b38400 = 2,
    __po_hi_c_b57600 = 3,
    __po_hi_c_b115200 = 4,
    __po_hi_c_b230400 = 5
} __po_hi_c_Baudrate_T;

Maxime Perrotin's avatar
Maxime Perrotin committed
22
23
24
25
26
27
28
// please use the following macros to avoid breaking code.
#define __po_hi_c_Baudrate_T_b9600 __po_hi_c_b9600
#define __po_hi_c_Baudrate_T_b19200 __po_hi_c_b19200
#define __po_hi_c_Baudrate_T_b38400 __po_hi_c_b38400
#define __po_hi_c_Baudrate_T_b57600 __po_hi_c_b57600
#define __po_hi_c_Baudrate_T_b115200 __po_hi_c_b115200
#define __po_hi_c_Baudrate_T_b230400 __po_hi_c_b230400
29
30
31

void __po_hi_c_Baudrate_T_Initialize(__po_hi_c_Baudrate_T* pVal);

32
33
#define ERR_BAUDRATE_T		1  /**/
flag __po_hi_c_Baudrate_T_IsConstraintValid(const __po_hi_c_Baudrate_T* pVal, int* pErrCode);
34
35
36
37
38
typedef enum {
    __po_hi_c_even = 0,
    __po_hi_c_odd = 1
} __po_hi_c_Parity_T;

Maxime Perrotin's avatar
Maxime Perrotin committed
39
40
41
// please use the following macros to avoid breaking code.
#define __po_hi_c_Parity_T_even __po_hi_c_even
#define __po_hi_c_Parity_T_odd __po_hi_c_odd
42

yoogx's avatar
yoogx committed
43
44
void __po_hi_c_Parity_T_Initialize(__po_hi_c_Parity_T* pVal);

45
46
47
#define ERR_PARITY_T		8  /**/
flag __po_hi_c_Parity_T_IsConstraintValid(const __po_hi_c_Parity_T* pVal, int* pErrCode);
/*-- __po_hi_c_serial_conf_t --------------------------------------------*/
yoogx's avatar
yoogx committed
48
typedef char __po_hi_c_serial_conf_t_devname[21];
49
typedef asn1SccUint __po_hi_c_serial_conf_t_bits;
yoogx's avatar
yoogx committed
50

51
typedef asn1SccUint __po_hi_c_serial_conf_t_sending_wait;
yoogx's avatar
yoogx committed
52

53
typedef struct {
yoogx's avatar
yoogx committed
54
    __po_hi_c_serial_conf_t_devname devname;
55
56
    __po_hi_c_Baudrate_T speed;
    __po_hi_c_Parity_T parity;
yoogx's avatar
yoogx committed
57
58
    __po_hi_c_serial_conf_t_bits bits;
    __po_hi_c_serial_conf_t_sending_wait sending_wait;
59
    flag use_paritybit;
60

61
62
63
64
    struct {
        unsigned int speed:1;
        unsigned int parity:1;
        unsigned int bits:1;
65
        unsigned int sending_wait:1;
66
67
        unsigned int use_paritybit:1;
    } exist;
68

69
70
} __po_hi_c_serial_conf_t;

71
72
73
void __po_hi_c_serial_conf_t_devname_Initialize(__po_hi_c_serial_conf_t_devname val);
void __po_hi_c_serial_conf_t_bits_Initialize(__po_hi_c_serial_conf_t_bits* pVal);
void __po_hi_c_serial_conf_t_sending_wait_Initialize(__po_hi_c_serial_conf_t_sending_wait* pVal);
74
75
void __po_hi_c_serial_conf_t_Initialize(__po_hi_c_serial_conf_t* pVal);

76
<<<<<<< HEAD
Maxime Perrotin's avatar
Maxime Perrotin committed
77
#define ERR_SERIAL_CONF_T		67  /**/
78
#define ERR_SERIAL_CONF_T_DEVNAME		15  /**/
Maxime Perrotin's avatar
Maxime Perrotin committed
79
80
81
82
83
#define ERR_SERIAL_CONF_T_SPEED_2		29  /**/
#define ERR_SERIAL_CONF_T_PARITY_2		41  /**/
#define ERR_SERIAL_CONF_T_BITS		46  /**/
#define ERR_SERIAL_CONF_T_SENDING_WAIT		53  /**/
#define ERR_SERIAL_CONF_T_USE_PARITYBIT		60  /**/
84
=======
85
86
87
88
89
90
91
#define ERR_SERIAL_CONF_T		65  /**/
#define ERR_SERIAL_CONF_T_DEVNAME		15  /**/
#define ERR_SERIAL_CONF_T_SPEED		22  /**/
#define ERR_SERIAL_CONF_T_PARITY		33  /**/
#define ERR_SERIAL_CONF_T_BITS		44  /**/
#define ERR_SERIAL_CONF_T_SENDING_WAIT		51  /**/
#define ERR_SERIAL_CONF_T_USE_PARITYBIT		58  /**/
92
>>>>>>> 0e86b129902a792f4ae0c4a6bacb781c57331060
93
flag __po_hi_c_serial_conf_t_IsConstraintValid(const __po_hi_c_serial_conf_t* pVal, int* pErrCode);
94

yoogx's avatar
yoogx committed
95
96
97
98
99
100
101
102
103
104
105
106
107
108
extern const __po_hi_c_serial_conf_t linux_ttyS0;
extern const __po_hi_c_serial_conf_t linux_ttyUSB0;
extern const __po_hi_c_serial_conf_t linux_ttyUSB1;
extern const __po_hi_c_serial_conf_t linux_ttyUSB2;
extern const __po_hi_c_serial_conf_t leon_rasta_apburasta0;
extern const __po_hi_c_serial_conf_t leon_rasta_apburasta1; 

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

 

109
110
111

#ifdef  __cplusplus
}
yoogx's avatar
yoogx committed
112

113
114
#endif

Maxime Perrotin's avatar
Maxime Perrotin committed
115
#endif