spacewire.h 3.21 KB
Newer Older
1
2
3
4
#ifndef _INC_SPACEWIRE_H
#define _INC_SPACEWIRE_H
/*
Code automatically generated by asn1scc tool
5
6
Date was: 10/07/2011
Time was: 11:19:23
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
*/

#include "asn1crt.h"

#ifdef  __cplusplus
extern "C" {
#endif



typedef asn1SccSint __po_hi_c_Core_Frequence_T;

#define __po_hi_c_Core_Frequence_T_REQUIRED_BYTES_FOR_ENCODING        4
#define __po_hi_c_Core_Frequence_T_REQUIRED_BITS_FOR_ENCODING        32
#define __po_hi_c_Core_Frequence_T_REQUIRED_BYTES_FOR_ACN_ENCODING       4
#define __po_hi_c_Core_Frequence_T_REQUIRED_BITS_FOR_ACN_ENCODING        32

#ifndef ERR___po_hi_c_Core_Frequence_T 
#define ERR___po_hi_c_Core_Frequence_T		1000 /* (0..4294967295) */
#endif

void __po_hi_c_Core_Frequence_T_Initialize(__po_hi_c_Core_Frequence_T* pVal);
flag __po_hi_c_Core_Frequence_T_IsConstraintValid(const __po_hi_c_Core_Frequence_T* val, int* pErrCode);


typedef asn1SccSint __po_hi_c_Node_Addr_T;

#define __po_hi_c_Node_Addr_T_REQUIRED_BYTES_FOR_ENCODING        1
#define __po_hi_c_Node_Addr_T_REQUIRED_BITS_FOR_ENCODING        8
#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        8

#ifndef ERR___po_hi_c_Node_Addr_T 
#define ERR___po_hi_c_Node_Addr_T		1001 /* (0..255) */
#endif

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);


typedef asn1SccSint __po_hi_c_Clock_Division_T;

#define __po_hi_c_Clock_Division_T_REQUIRED_BYTES_FOR_ENCODING        1
#define __po_hi_c_Clock_Division_T_REQUIRED_BITS_FOR_ENCODING        8
#define __po_hi_c_Clock_Division_T_REQUIRED_BYTES_FOR_ACN_ENCODING       1
#define __po_hi_c_Clock_Division_T_REQUIRED_BITS_FOR_ACN_ENCODING        8

#ifndef ERR___po_hi_c_Clock_Division_T 
#define ERR___po_hi_c_Clock_Division_T		1002 /* (0..255) */
#endif

void __po_hi_c_Clock_Division_T_Initialize(__po_hi_c_Clock_Division_T* pVal);
flag __po_hi_c_Clock_Division_T_IsConstraintValid(const __po_hi_c_Clock_Division_T* val, int* pErrCode);


typedef struct {
    char devname[21];
    __po_hi_c_Node_Addr_T nodeaddr;
    __po_hi_c_Core_Frequence_T corefreq;
    __po_hi_c_Clock_Division_T clockdiv;
    flag remove_prot_id;
    flag rxblock;
    flag txblock;
    struct {
71
72
        unsigned int corefreq:1;
        unsigned int clockdiv:1;
73
74
75
76
77
78
        unsigned int remove_prot_id:1;
        unsigned int rxblock:1;
        unsigned int txblock:1;
    } exist;
} __po_hi_c_spacewire_conf_t;

79
80
#define __po_hi_c_spacewire_conf_t_REQUIRED_BYTES_FOR_ENCODING        26
#define __po_hi_c_spacewire_conf_t_REQUIRED_BITS_FOR_ENCODING        201
81
#define __po_hi_c_spacewire_conf_t_REQUIRED_BYTES_FOR_ACN_ENCODING       28
82
#define __po_hi_c_spacewire_conf_t_REQUIRED_BITS_FOR_ACN_ENCODING        221
83
84
85
86
87
88
89
90
91

#ifndef ERR___po_hi_c_spacewire_conf_t_devname 
#define ERR___po_hi_c_spacewire_conf_t_devname		1003 /* (SIZE (1..20)) */
#endif

void __po_hi_c_spacewire_conf_t_Initialize(__po_hi_c_spacewire_conf_t* pVal);
flag __po_hi_c_spacewire_conf_t_IsConstraintValid(const __po_hi_c_spacewire_conf_t* val, int* pErrCode);


92
93
extern  __po_hi_c_spacewire_conf_t leon_rasta_spw_sender;
extern  __po_hi_c_spacewire_conf_t leon_rasta_spw_receiver;
94
95
96
97
98
99

#ifdef  __cplusplus
}
#endif

#endif