spacewire.h 2.75 KB
Newer Older
1
2
#ifndef GENERATED_ASN1SCC_spacewire_H
#define GENERATED_ASN1SCC_spacewire_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_Core_Frequence_T;
14
15
16
17


void __po_hi_c_Core_Frequence_T_Initialize(__po_hi_c_Core_Frequence_T* pVal);

18
19
20
21
#define ERR_CORE_FREQUENCE_T		1  /**/
flag __po_hi_c_Core_Frequence_T_IsConstraintValid(const __po_hi_c_Core_Frequence_T* pVal, int* pErrCode);
typedef asn1SccUint __po_hi_c_Node_Addr_T;

22
23
24

void __po_hi_c_Node_Addr_T_Initialize(__po_hi_c_Node_Addr_T* pVal);

25
26
27
28
#define ERR_NODE_ADDR_T		8  /**/
flag __po_hi_c_Node_Addr_T_IsConstraintValid(const __po_hi_c_Node_Addr_T* pVal, int* pErrCode);
typedef asn1SccUint __po_hi_c_Clock_Division_T;

29

yoogx's avatar
yoogx committed
30
void __po_hi_c_Clock_Division_T_Initialize(__po_hi_c_Clock_Division_T* pVal);
31

32
33
34
#define ERR_CLOCK_DIVISION_T		15  /**/
flag __po_hi_c_Clock_Division_T_IsConstraintValid(const __po_hi_c_Clock_Division_T* pVal, int* pErrCode);
/*-- __po_hi_c_spacewire_conf_t --------------------------------------------*/
yoogx's avatar
yoogx committed
35
typedef char __po_hi_c_spacewire_conf_t_devname[21];
36
typedef struct {
yoogx's avatar
yoogx committed
37
    __po_hi_c_spacewire_conf_t_devname devname;
38
39
40
    __po_hi_c_Node_Addr_T nodeaddr;
    __po_hi_c_Core_Frequence_T corefreq;
    __po_hi_c_Clock_Division_T clockdiv;
jdelange's avatar
jdelange committed
41
    flag use_router;
42
43
44
    flag remove_prot_id;
    flag rxblock;
    flag txblock;
45

46
    struct {
47
48
        unsigned int corefreq:1;
        unsigned int clockdiv:1;
jdelange's avatar
jdelange committed
49
        unsigned int use_router:1;
50
51
52
53
        unsigned int remove_prot_id:1;
        unsigned int rxblock:1;
        unsigned int txblock:1;
    } exist;
54

55
56
} __po_hi_c_spacewire_conf_t;

57
void __po_hi_c_spacewire_conf_t_devname_Initialize(__po_hi_c_spacewire_conf_t_devname val);
58
59
void __po_hi_c_spacewire_conf_t_Initialize(__po_hi_c_spacewire_conf_t* pVal);

60
61
62
63
64
65
66
67
68
#define ERR_SPACEWIRE_CONF_T		90  /**/
#define ERR_SPACEWIRE_CONF_T_DEVNAME		22  /**/
#define ERR_SPACEWIRE_CONF_T_NODEADDR		29  /**/
#define ERR_SPACEWIRE_CONF_T_COREFREQ		40  /**/
#define ERR_SPACEWIRE_CONF_T_CLOCKDIV		51  /**/
#define ERR_SPACEWIRE_CONF_T_USE_ROUTER		62  /**/
#define ERR_SPACEWIRE_CONF_T_REMOVE_PROT_ID		69  /**/
#define ERR_SPACEWIRE_CONF_T_RXBLOCK		76  /**/
#define ERR_SPACEWIRE_CONF_T_TXBLOCK		83  /**/
69
flag __po_hi_c_spacewire_conf_t_IsConstraintValid(const __po_hi_c_spacewire_conf_t* pVal, int* pErrCode);
70

yoogx's avatar
yoogx committed
71
72
73
74
75
76
77
78
79
80
extern const __po_hi_c_spacewire_conf_t leon_rasta_spw_sender;
extern const __po_hi_c_spacewire_conf_t leon_rasta_spw_receiver; 

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

 

81
82
83

#ifdef  __cplusplus
}
yoogx's avatar
yoogx committed
84

85
86
#endif

Maxime Perrotin's avatar
Maxime Perrotin committed
87
#endif