Commit 7f63de69 authored by Maxime Perrotin's avatar Maxime Perrotin

had to do "make regenerate" in src/drivers/configuration

this command is not called during the build of Pohic, this is not
correct! if the asn1 compiler version change, the files must be
re-generated
parent 10c0276f
......@@ -10,62 +10,38 @@ extern "C" {
#endif
typedef asn1SccUint __po_hi_c_Node_Addr_T;
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 5
#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 5
#define __po_hi_c_Node_Addr_T_REQUIRED_BYTES_FOR_XER_ENCODING 47
flag __po_hi_c_Node_Addr_T_Equal(const __po_hi_c_Node_Addr_T* pVal1, const __po_hi_c_Node_Addr_T* pVal2);
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);
#ifndef ERR___po_hi_c_Node_Addr_T
#define ERR___po_hi_c_Node_Addr_T 1001 /*(0 .. 31)*/
#endif
#define ERR_NODE_ADDR_T 1 /**/
flag __po_hi_c_Node_Addr_T_IsConstraintValid(const __po_hi_c_Node_Addr_T* pVal, int* pErrCode);
typedef enum {
__po_hi_c_mil1553a = 0,
__po_hi_c_mil1553b = 1
} __po_hi_c_Standard_T;
#define __po_hi_c_Standard_T_REQUIRED_BYTES_FOR_ENCODING 1
#define __po_hi_c_Standard_T_REQUIRED_BITS_FOR_ENCODING 1
#define __po_hi_c_Standard_T_REQUIRED_BYTES_FOR_ACN_ENCODING 1
#define __po_hi_c_Standard_T_REQUIRED_BITS_FOR_ACN_ENCODING 1
#define __po_hi_c_Standard_T_REQUIRED_BYTES_FOR_XER_ENCODING 44
flag __po_hi_c_Standard_T_Equal(const __po_hi_c_Standard_T* pVal1, const __po_hi_c_Standard_T* pVal2);
void __po_hi_c_Standard_T_Initialize(__po_hi_c_Standard_T* pVal);
flag __po_hi_c_Standard_T_IsConstraintValid(const __po_hi_c_Standard_T* val, int* pErrCode);
#ifndef ERR___po_hi_c_Standard_T_unknown_enumeration_value
#define ERR___po_hi_c_Standard_T_unknown_enumeration_value 1003 /**/
#endif
#ifndef ERR___po_hi_c_Standard_T
#define ERR___po_hi_c_Standard_T 1002 /**/
#endif
#define ERR_STANDARD_T 8 /**/
flag __po_hi_c_Standard_T_IsConstraintValid(const __po_hi_c_Standard_T* pVal, int* pErrCode);
typedef enum {
__po_hi_c_controller = 0,
__po_hi_c_terminal = 1,
__po_hi_c_monitor = 2
} __po_hi_c_Mode_T;
#define __po_hi_c_Mode_T_REQUIRED_BYTES_FOR_ENCODING 1
#define __po_hi_c_Mode_T_REQUIRED_BITS_FOR_ENCODING 2
#define __po_hi_c_Mode_T_REQUIRED_BYTES_FOR_ACN_ENCODING 1
#define __po_hi_c_Mode_T_REQUIRED_BITS_FOR_ACN_ENCODING 2
#define __po_hi_c_Mode_T_REQUIRED_BYTES_FOR_XER_ENCODING 36
flag __po_hi_c_Mode_T_Equal(const __po_hi_c_Mode_T* pVal1, const __po_hi_c_Mode_T* pVal2);
void __po_hi_c_Mode_T_Initialize(__po_hi_c_Mode_T* pVal);
flag __po_hi_c_Mode_T_IsConstraintValid(const __po_hi_c_Mode_T* val, int* pErrCode);
#ifndef ERR___po_hi_c_Mode_T_unknown_enumeration_value
#define ERR___po_hi_c_Mode_T_unknown_enumeration_value 1005 /**/
#endif
#ifndef ERR___po_hi_c_Mode_T
#define ERR___po_hi_c_Mode_T 1004 /**/
#endif
#define ERR_MODE_T 15 /**/
flag __po_hi_c_Mode_T_IsConstraintValid(const __po_hi_c_Mode_T* pVal, int* pErrCode);
typedef enum {
__po_hi_c_none = 0,
__po_hi_c_bus_a = 1,
......@@ -73,35 +49,15 @@ typedef enum {
__po_hi_c_both = 3
} __po_hi_c_Bus_T;
#define __po_hi_c_Bus_T_REQUIRED_BYTES_FOR_ENCODING 1
#define __po_hi_c_Bus_T_REQUIRED_BITS_FOR_ENCODING 2
#define __po_hi_c_Bus_T_REQUIRED_BYTES_FOR_ACN_ENCODING 1
#define __po_hi_c_Bus_T_REQUIRED_BITS_FOR_ACN_ENCODING 2
#define __po_hi_c_Bus_T_REQUIRED_BYTES_FOR_XER_ENCODING 26
flag __po_hi_c_Bus_T_Equal(const __po_hi_c_Bus_T* pVal1, const __po_hi_c_Bus_T* pVal2);
void __po_hi_c_Bus_T_Initialize(__po_hi_c_Bus_T* pVal);
flag __po_hi_c_Bus_T_IsConstraintValid(const __po_hi_c_Bus_T* val, int* pErrCode);
#ifndef ERR___po_hi_c_Bus_T_unknown_enumeration_value
#define ERR___po_hi_c_Bus_T_unknown_enumeration_value 1007 /**/
#endif
#ifndef ERR___po_hi_c_Bus_T
#define ERR___po_hi_c_Bus_T 1006 /**/
#endif
#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 --------------------------------------------*/
typedef char __po_hi_c_mil_1553_conf_t_devname[21];
#define __po_hi_c_mil_1553_conf_t_devname_REQUIRED_BYTES_FOR_ENCODING 19
#define __po_hi_c_mil_1553_conf_t_devname_REQUIRED_BITS_FOR_ENCODING 145
#define __po_hi_c_mil_1553_conf_t_devname_REQUIRED_BYTES_FOR_ACN_ENCODING 19
#define __po_hi_c_mil_1553_conf_t_devname_REQUIRED_BITS_FOR_ACN_ENCODING 145
#define __po_hi_c_mil_1553_conf_t_devname_REQUIRED_BYTES_FOR_XER_ENCODING 71
void __po_hi_c_mil_1553_conf_t_devname_Initialize(__po_hi_c_mil_1553_conf_t_devname pVal);
flag __po_hi_c_mil_1553_conf_t_devname_IsConstraintValid(const __po_hi_c_mil_1553_conf_t_devname val, int* pErrCode);
#ifndef ERR___po_hi_c_mil_1553_conf_t_devname
#define ERR___po_hi_c_mil_1553_conf_t_devname 1008 /*(SIZE(1 .. 20))*/
#endif
typedef struct {
__po_hi_c_mil_1553_conf_t_devname devname;
__po_hi_c_Standard_T standard;
......@@ -111,21 +67,30 @@ typedef struct {
flag broadcast;
flag rxblock;
flag txblock;
struct {
unsigned int rxblock:1;
unsigned int txblock:1;
} exist;
} __po_hi_c_mil_1553_conf_t;
#define __po_hi_c_mil_1553_conf_t_REQUIRED_BYTES_FOR_ENCODING 20
#define __po_hi_c_mil_1553_conf_t_REQUIRED_BITS_FOR_ENCODING 160
#define __po_hi_c_mil_1553_conf_t_REQUIRED_BYTES_FOR_ACN_ENCODING 20
#define __po_hi_c_mil_1553_conf_t_REQUIRED_BITS_FOR_ACN_ENCODING 160
#define __po_hi_c_mil_1553_conf_t_REQUIRED_BYTES_FOR_XER_ENCODING 309
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);
void __po_hi_c_mil_1553_conf_t_devname_Initialize(__po_hi_c_mil_1553_conf_t_devname val);
void __po_hi_c_mil_1553_conf_t_Initialize(__po_hi_c_mil_1553_conf_t* pVal);
flag __po_hi_c_mil_1553_conf_t_IsConstraintValid(const __po_hi_c_mil_1553_conf_t* val, int* pErrCode);
#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);
......@@ -134,26 +99,12 @@ flag __po_hi_c_mil_1553_conf_t_IsConstraintValid(const __po_hi_c_mil_1553_conf_t
* have been declared first, in case of parameterized ACN encodings
* ========================================================================= */
#ifdef __cplusplus
}
#define ENUM___po_hi_c_mil1553a __po_hi_c_mil1553a
#define ENUM___po_hi_c_mil1553b __po_hi_c_mil1553b
#define ENUM___po_hi_c_controller __po_hi_c_controller
#define ENUM___po_hi_c_terminal __po_hi_c_terminal
#define ENUM___po_hi_c_monitor __po_hi_c_monitor
#define ENUM___po_hi_c_none __po_hi_c_none
#define ENUM___po_hi_c_bus_a __po_hi_c_bus_a
#define ENUM___po_hi_c_bus_b __po_hi_c_bus_b
#define ENUM___po_hi_c_both __po_hi_c_both
#endif
#endif
#endif
\ No newline at end of file
This diff is collapsed.
#ifndef GENERATED_ASN1SCC_BLUETOOTH_H
#define GENERATED_ASN1SCC_BLUETOOTH_H
#ifndef GENERATED_ASN1SCC_bluetooth_H
#define GENERATED_ASN1SCC_bluetooth_H
/*
Code automatically generated by asn1scc tool
*/
......@@ -10,77 +10,53 @@ extern "C" {
#endif
typedef enum {
__po_hi_c_b250K = 0,
__po_hi_c_b1M = 1,
__po_hi_c_b2M = 2
__po_hi_c_d250K = 0,
__po_hi_c_d1M = 1,
__po_hi_c_d2M = 2
} __po_hi_c_Datarate_T;
#define __po_hi_c_Datarate_T_REQUIRED_BYTES_FOR_ENCODING 1
#define __po_hi_c_Datarate_T_REQUIRED_BITS_FOR_ENCODING 2
#define __po_hi_c_Datarate_T_REQUIRED_BYTES_FOR_ACN_ENCODING 1
#define __po_hi_c_Datarate_T_REQUIRED_BITS_FOR_ACN_ENCODING 2
#define __po_hi_c_Datarate_T_REQUIRED_BYTES_FOR_XER_ENCODING 34
flag __po_hi_c_Datarate_T_Equal(const __po_hi_c_Datarate_T* pVal1, const __po_hi_c_Datarate_T* pVal2);
void __po_hi_c_Datarate_T_Initialize(__po_hi_c_Datarate_T* pVal);
flag __po_hi_c_Datarate_T_IsConstraintValid(const __po_hi_c_Datarate_T* val, int* pErrCode);
#ifndef ERR___po_hi_c_Datarate_T_unknown_enumeration_value
#define ERR___po_hi_c_Datarate_T_unknown_enumeration_value 1002 /**/
#endif
#ifndef ERR___po_hi_c_Datarate_T
#define ERR___po_hi_c_Datarate_T 1001 /**/
#endif
typedef struct {
#define ERR_DATARATE_T 1 /**/
flag __po_hi_c_Datarate_T_IsConstraintValid(const __po_hi_c_Datarate_T* pVal, int* pErrCode);
typedef struct {
byte arr[5];
} __po_hi_c_bluetooth_conf_t_address;
#define __po_hi_c_bluetooth_conf_t_address_REQUIRED_BYTES_FOR_ENCODING 5
#define __po_hi_c_bluetooth_conf_t_address_REQUIRED_BITS_FOR_ENCODING 40
#define __po_hi_c_bluetooth_conf_t_address_REQUIRED_BYTES_FOR_ACN_ENCODING 5
#define __po_hi_c_bluetooth_conf_t_address_REQUIRED_BITS_FOR_ACN_ENCODING 40
#define __po_hi_c_bluetooth_conf_t_address_REQUIRED_BYTES_FOR_XER_ENCODING 63
void __po_hi_c_bluetooth_conf_t_address_Initialize(__po_hi_c_bluetooth_conf_t_address* pVal);
flag __po_hi_c_bluetooth_conf_t_address_IsConstraintValid(const __po_hi_c_bluetooth_conf_t_address* val, int* pErrCode);
#ifndef ERR___po_hi_c_bluetooth_conf_t_address
#define ERR___po_hi_c_bluetooth_conf_t_address 1003 /*(SIZE(5))*/
#endif
} __po_hi_c_Address_T;
typedef asn1SccUint __po_hi_c_bluetooth_conf_t_channel;
#define __po_hi_c_bluetooth_conf_t_channel_REQUIRED_BYTES_FOR_ENCODING 1
#define __po_hi_c_bluetooth_conf_t_channel_REQUIRED_BITS_FOR_ENCODING 7
#define __po_hi_c_bluetooth_conf_t_channel_REQUIRED_BYTES_FOR_ACN_ENCODING 1
#define __po_hi_c_bluetooth_conf_t_channel_REQUIRED_BITS_FOR_ACN_ENCODING 7
#define __po_hi_c_bluetooth_conf_t_channel_REQUIRED_BYTES_FOR_XER_ENCODING 73
flag __po_hi_c_Address_T_Equal(const __po_hi_c_Address_T* pVal1, const __po_hi_c_Address_T* pVal2);
void __po_hi_c_Address_T_Initialize(__po_hi_c_Address_T* pVal);
/*-- __po_hi_c_bluetooth_conf_t --------------------------------------------*/
typedef asn1SccUint __po_hi_c_bluetooth_conf_t_channel;
void __po_hi_c_bluetooth_conf_t_channel_Initialize(__po_hi_c_bluetooth_conf_t_channel* pVal);
flag __po_hi_c_bluetooth_conf_t_channel_IsConstraintValid(const __po_hi_c_bluetooth_conf_t_channel* val, int* pErrCode);
#ifndef ERR___po_hi_c_bluetooth_conf_t_channel
#define ERR___po_hi_c_bluetooth_conf_t_channel 1004 /*(0 .. 125)*/
#endif
typedef struct {
__po_hi_c_bluetooth_conf_t_channel channel;
__po_hi_c_bluetooth_conf_t_address address;
__po_hi_c_Datarate_T datarate;
__po_hi_c_Address_T address;
struct {
unsigned int address:1;
unsigned int datarate:1;
unsigned int address:1;
} exist;
} __po_hi_c_bluetooth_conf_t;
#define __po_hi_c_bluetooth_conf_t_REQUIRED_BYTES_FOR_ENCODING 7
#define __po_hi_c_bluetooth_conf_t_REQUIRED_BITS_FOR_ENCODING 51
#define __po_hi_c_bluetooth_conf_t_REQUIRED_BYTES_FOR_ACN_ENCODING 7
#define __po_hi_c_bluetooth_conf_t_REQUIRED_BITS_FOR_ACN_ENCODING 51
#define __po_hi_c_bluetooth_conf_t_REQUIRED_BYTES_FOR_XER_ENCODING 135
flag __po_hi_c_bluetooth_conf_t_channel_Equal(const __po_hi_c_bluetooth_conf_t_channel* pVal1, const __po_hi_c_bluetooth_conf_t_channel* pVal2);
flag __po_hi_c_bluetooth_conf_t_Equal(const __po_hi_c_bluetooth_conf_t* pVal1, const __po_hi_c_bluetooth_conf_t* pVal2);
void __po_hi_c_bluetooth_conf_t_channel_Initialize(__po_hi_c_bluetooth_conf_t_channel* pVal);
void __po_hi_c_bluetooth_conf_t_Initialize(__po_hi_c_bluetooth_conf_t* pVal);
flag __po_hi_c_bluetooth_conf_t_IsConstraintValid(const __po_hi_c_bluetooth_conf_t* val, int* pErrCode);
#define ERR_BLUETOOTH_CONF_T_CHANNEL 14 /**/
#define ERR_BLUETOOTH_CONF_T_DATARATE 21 /**/
flag __po_hi_c_bluetooth_conf_t_IsConstraintValid(const __po_hi_c_bluetooth_conf_t* pVal, int* pErrCode);
extern const __po_hi_c_bluetooth_conf_t crazyflie_default;
......@@ -89,18 +65,12 @@ extern const __po_hi_c_bluetooth_conf_t crazyflie_default;
* have been declared first, in case of parameterized ACN encodings
* ========================================================================= */
#ifdef __cplusplus
}
#define ENUM___po_hi_c_b250K __po_hi_c_b250K
#define ENUM___po_hi_c_b1M __po_hi_c_b1M
#define ENUM___po_hi_c_b2M __po_hi_c_b2M
#endif
#endif
#endif
\ No newline at end of file
#ifndef GENERATED_ASN1SCC_IP_H
#define GENERATED_ASN1SCC_IP_H
#ifndef GENERATED_ASN1SCC_ip_H
#define GENERATED_ASN1SCC_ip_H
/*
Code automatically generated by asn1scc tool
*/
......@@ -10,124 +10,33 @@ extern "C" {
#endif
typedef asn1SccUint __po_hi_c_Port_T;
typedef asn1SccSint __po_hi_c_Port_T;
#define __po_hi_c_Port_T_REQUIRED_BYTES_FOR_ENCODING 2
#define __po_hi_c_Port_T_REQUIRED_BITS_FOR_ENCODING 15
#define __po_hi_c_Port_T_REQUIRED_BYTES_FOR_ACN_ENCODING 2
#define __po_hi_c_Port_T_REQUIRED_BITS_FOR_ACN_ENCODING 15
#define __po_hi_c_Port_T_REQUIRED_BYTES_FOR_XER_ENCODING 37
flag __po_hi_c_Port_T_Equal(const __po_hi_c_Port_T* pVal1, const __po_hi_c_Port_T* pVal2);
void __po_hi_c_Port_T_Initialize(__po_hi_c_Port_T* pVal);
flag __po_hi_c_Port_T_IsConstraintValid(const __po_hi_c_Port_T* val, int* pErrCode);
#ifndef ERR___po_hi_c_Port_T
#define ERR___po_hi_c_Port_T 1001 /*(0 .. 16535)*/
#endif
#define ERR_PORT_T 1 /**/
flag __po_hi_c_Port_T_IsConstraintValid(const __po_hi_c_Port_T* pVal, int* pErrCode);
typedef enum {
__po_hi_c_ipv4 = 0,
__po_hi_c_ipv6 = 1
} __po_hi_c_Version_T;
#define __po_hi_c_Version_T_REQUIRED_BYTES_FOR_ENCODING 1
#define __po_hi_c_Version_T_REQUIRED_BITS_FOR_ENCODING 1
#define __po_hi_c_Version_T_REQUIRED_BYTES_FOR_ACN_ENCODING 1
#define __po_hi_c_Version_T_REQUIRED_BITS_FOR_ACN_ENCODING 1
#define __po_hi_c_Version_T_REQUIRED_BYTES_FOR_XER_ENCODING 34
flag __po_hi_c_Version_T_Equal(const __po_hi_c_Version_T* pVal1, const __po_hi_c_Version_T* pVal2);
void __po_hi_c_Version_T_Initialize(__po_hi_c_Version_T* pVal);
flag __po_hi_c_Version_T_IsConstraintValid(const __po_hi_c_Version_T* val, int* pErrCode);
#ifndef ERR___po_hi_c_Version_T_unknown_enumeration_value
#define ERR___po_hi_c_Version_T_unknown_enumeration_value 1003 /**/
#endif
#ifndef ERR___po_hi_c_Version_T
#define ERR___po_hi_c_Version_T 1002 /**/
#endif
typedef char __po_hi_c_ip_conf_t_dns[41];
#define __po_hi_c_ip_conf_t_dns_REQUIRED_BYTES_FOR_ENCODING 36
#define __po_hi_c_ip_conf_t_dns_REQUIRED_BITS_FOR_ENCODING 286
#define __po_hi_c_ip_conf_t_dns_REQUIRED_BYTES_FOR_ACN_ENCODING 36
#define __po_hi_c_ip_conf_t_dns_REQUIRED_BITS_FOR_ACN_ENCODING 286
#define __po_hi_c_ip_conf_t_dns_REQUIRED_BYTES_FOR_XER_ENCODING 71
void __po_hi_c_ip_conf_t_dns_Initialize(__po_hi_c_ip_conf_t_dns pVal);
flag __po_hi_c_ip_conf_t_dns_IsConstraintValid(const __po_hi_c_ip_conf_t_dns val, int* pErrCode);
#ifndef ERR___po_hi_c_ip_conf_t_dns
#define ERR___po_hi_c_ip_conf_t_dns 1004 /*(SIZE(1 .. 40))*/
#endif
typedef char __po_hi_c_ip_conf_t_gateway[41];
#define __po_hi_c_ip_conf_t_gateway_REQUIRED_BYTES_FOR_ENCODING 36
#define __po_hi_c_ip_conf_t_gateway_REQUIRED_BITS_FOR_ENCODING 286
#define __po_hi_c_ip_conf_t_gateway_REQUIRED_BYTES_FOR_ACN_ENCODING 36
#define __po_hi_c_ip_conf_t_gateway_REQUIRED_BITS_FOR_ACN_ENCODING 286
#define __po_hi_c_ip_conf_t_gateway_REQUIRED_BYTES_FOR_XER_ENCODING 79
void __po_hi_c_ip_conf_t_gateway_Initialize(__po_hi_c_ip_conf_t_gateway pVal);
flag __po_hi_c_ip_conf_t_gateway_IsConstraintValid(const __po_hi_c_ip_conf_t_gateway val, int* pErrCode);
#ifndef ERR___po_hi_c_ip_conf_t_gateway
#define ERR___po_hi_c_ip_conf_t_gateway 1005 /*(SIZE(1 .. 40))*/
#endif
typedef char __po_hi_c_ip_conf_t_netmask[41];
#define __po_hi_c_ip_conf_t_netmask_REQUIRED_BYTES_FOR_ENCODING 36
#define __po_hi_c_ip_conf_t_netmask_REQUIRED_BITS_FOR_ENCODING 286
#define __po_hi_c_ip_conf_t_netmask_REQUIRED_BYTES_FOR_ACN_ENCODING 36
#define __po_hi_c_ip_conf_t_netmask_REQUIRED_BITS_FOR_ACN_ENCODING 286
#define __po_hi_c_ip_conf_t_netmask_REQUIRED_BYTES_FOR_XER_ENCODING 79
void __po_hi_c_ip_conf_t_netmask_Initialize(__po_hi_c_ip_conf_t_netmask pVal);
flag __po_hi_c_ip_conf_t_netmask_IsConstraintValid(const __po_hi_c_ip_conf_t_netmask val, int* pErrCode);
#ifndef ERR___po_hi_c_ip_conf_t_netmask
#define ERR___po_hi_c_ip_conf_t_netmask 1006 /*(SIZE(1 .. 40))*/
#endif
typedef char __po_hi_c_ip_conf_t_broadcast[41];
#define __po_hi_c_ip_conf_t_broadcast_REQUIRED_BYTES_FOR_ENCODING 36
#define __po_hi_c_ip_conf_t_broadcast_REQUIRED_BITS_FOR_ENCODING 286
#define __po_hi_c_ip_conf_t_broadcast_REQUIRED_BYTES_FOR_ACN_ENCODING 36
#define __po_hi_c_ip_conf_t_broadcast_REQUIRED_BITS_FOR_ACN_ENCODING 286
#define __po_hi_c_ip_conf_t_broadcast_REQUIRED_BYTES_FOR_XER_ENCODING 83
void __po_hi_c_ip_conf_t_broadcast_Initialize(__po_hi_c_ip_conf_t_broadcast pVal);
flag __po_hi_c_ip_conf_t_broadcast_IsConstraintValid(const __po_hi_c_ip_conf_t_broadcast val, int* pErrCode);
#ifndef ERR___po_hi_c_ip_conf_t_broadcast
#define ERR___po_hi_c_ip_conf_t_broadcast 1007 /*(SIZE(1 .. 40))*/
#endif
typedef char __po_hi_c_ip_conf_t_address[41];
#define __po_hi_c_ip_conf_t_address_REQUIRED_BYTES_FOR_ENCODING 36
#define __po_hi_c_ip_conf_t_address_REQUIRED_BITS_FOR_ENCODING 286
#define __po_hi_c_ip_conf_t_address_REQUIRED_BYTES_FOR_ACN_ENCODING 36
#define __po_hi_c_ip_conf_t_address_REQUIRED_BITS_FOR_ACN_ENCODING 286
#define __po_hi_c_ip_conf_t_address_REQUIRED_BYTES_FOR_XER_ENCODING 79
void __po_hi_c_ip_conf_t_address_Initialize(__po_hi_c_ip_conf_t_address pVal);
flag __po_hi_c_ip_conf_t_address_IsConstraintValid(const __po_hi_c_ip_conf_t_address val, int* pErrCode);
#ifndef ERR___po_hi_c_ip_conf_t_address
#define ERR___po_hi_c_ip_conf_t_address 1008 /*(SIZE(1 .. 40))*/
#endif
#define ERR_VERSION_T 8 /**/
flag __po_hi_c_Version_T_IsConstraintValid(const __po_hi_c_Version_T* pVal, int* pErrCode);
/*-- __po_hi_c_ip_conf_t --------------------------------------------*/
typedef char __po_hi_c_ip_conf_t_devname[21];
#define __po_hi_c_ip_conf_t_devname_REQUIRED_BYTES_FOR_ENCODING 19
#define __po_hi_c_ip_conf_t_devname_REQUIRED_BITS_FOR_ENCODING 145
#define __po_hi_c_ip_conf_t_devname_REQUIRED_BYTES_FOR_ACN_ENCODING 19
#define __po_hi_c_ip_conf_t_devname_REQUIRED_BITS_FOR_ACN_ENCODING 145
#define __po_hi_c_ip_conf_t_devname_REQUIRED_BYTES_FOR_XER_ENCODING 59
void __po_hi_c_ip_conf_t_devname_Initialize(__po_hi_c_ip_conf_t_devname pVal);
flag __po_hi_c_ip_conf_t_devname_IsConstraintValid(const __po_hi_c_ip_conf_t_devname val, int* pErrCode);
#ifndef ERR___po_hi_c_ip_conf_t_devname
#define ERR___po_hi_c_ip_conf_t_devname 1009 /*(SIZE(1 .. 20))*/
#endif
typedef char __po_hi_c_ip_conf_t_address[41];
typedef char __po_hi_c_ip_conf_t_broadcast[41];
typedef char __po_hi_c_ip_conf_t_netmask[41];
typedef char __po_hi_c_ip_conf_t_gateway[41];
typedef char __po_hi_c_ip_conf_t_dns[41];
typedef struct {
__po_hi_c_ip_conf_t_devname devname;
......@@ -138,6 +47,7 @@ typedef struct {
__po_hi_c_ip_conf_t_dns dns;
__po_hi_c_Version_T version;
__po_hi_c_Port_T port;
struct {
unsigned int broadcast:1;
unsigned int netmask:1;
......@@ -145,17 +55,40 @@ typedef struct {
unsigned int dns:1;
unsigned int version:1;
} exist;
} __po_hi_c_ip_conf_t;
#define __po_hi_c_ip_conf_t_REQUIRED_BYTES_FOR_ENCODING 200
#define __po_hi_c_ip_conf_t_REQUIRED_BITS_FOR_ENCODING 1596
#define __po_hi_c_ip_conf_t_REQUIRED_BYTES_FOR_ACN_ENCODING 200
#define __po_hi_c_ip_conf_t_REQUIRED_BITS_FOR_ACN_ENCODING 1596
#define __po_hi_c_ip_conf_t_REQUIRED_BYTES_FOR_XER_ENCODING 416
flag __po_hi_c_ip_conf_t_devname_Equal(const __po_hi_c_ip_conf_t_devname val1, const __po_hi_c_ip_conf_t_devname val2);
flag __po_hi_c_ip_conf_t_address_Equal(const __po_hi_c_ip_conf_t_address val1, const __po_hi_c_ip_conf_t_address val2);
flag __po_hi_c_ip_conf_t_broadcast_Equal(const __po_hi_c_ip_conf_t_broadcast val1, const __po_hi_c_ip_conf_t_broadcast val2);
flag __po_hi_c_ip_conf_t_netmask_Equal(const __po_hi_c_ip_conf_t_netmask val1, const __po_hi_c_ip_conf_t_netmask val2);
flag __po_hi_c_ip_conf_t_gateway_Equal(const __po_hi_c_ip_conf_t_gateway val1, const __po_hi_c_ip_conf_t_gateway val2);
flag __po_hi_c_ip_conf_t_dns_Equal(const __po_hi_c_ip_conf_t_dns val1, const __po_hi_c_ip_conf_t_dns val2);
flag __po_hi_c_ip_conf_t_Equal(const __po_hi_c_ip_conf_t* pVal1, const __po_hi_c_ip_conf_t* pVal2);
void __po_hi_c_ip_conf_t_devname_Initialize(__po_hi_c_ip_conf_t_devname val);
void __po_hi_c_ip_conf_t_address_Initialize(__po_hi_c_ip_conf_t_address val);
void __po_hi_c_ip_conf_t_broadcast_Initialize(__po_hi_c_ip_conf_t_broadcast val);
void __po_hi_c_ip_conf_t_netmask_Initialize(__po_hi_c_ip_conf_t_netmask val);
void __po_hi_c_ip_conf_t_gateway_Initialize(__po_hi_c_ip_conf_t_gateway val);
void __po_hi_c_ip_conf_t_dns_Initialize(__po_hi_c_ip_conf_t_dns val);
void __po_hi_c_ip_conf_t_Initialize(__po_hi_c_ip_conf_t* pVal);
flag __po_hi_c_ip_conf_t_IsConstraintValid(const __po_hi_c_ip_conf_t* val, int* pErrCode);
#define ERR_IP_CONF_T_DEVNAME 15 /**/
#define ERR_IP_CONF_T_ADDRESS 22 /**/
#define ERR_IP_CONF_T_BROADCAST 29 /**/
#define ERR_IP_CONF_T_NETMASK 36 /**/
#define ERR_IP_CONF_T_GATEWAY 43 /**/
#define ERR_IP_CONF_T_DNS 50 /**/
#define ERR_IP_CONF_T_VERSION 57 /**/
#define ERR_IP_CONF_T_PORT 68 /**/
flag __po_hi_c_ip_conf_t_IsConstraintValid(const __po_hi_c_ip_conf_t* pVal, int* pErrCode);
extern const __po_hi_c_ip_conf_t localhost1;
extern const __po_hi_c_ip_conf_t localhost2;
......@@ -165,22 +98,12 @@ extern const __po_hi_c_ip_conf_t localhost2;
* have been declared first, in case of parameterized ACN encodings
* ========================================================================= */
#ifdef __cplusplus
}
#define ENUM___po_hi_c_ipv4 __po_hi_c_ipv4
#define ENUM___po_hi_c_ipv6 __po_hi_c_ipv6
#endif
#endif
#endif
\ No newline at end of file
#ifndef GENERATED_ASN1SCC_SERIAL_H
#define GENERATED_ASN1SCC_SERIAL_H
#ifndef GENERATED_ASN1SCC_serial_H
#define GENERATED_ASN1SCC_serial_H
/*
Code automatically generated by asn1scc tool
*/
......@@ -10,7 +10,6 @@ extern "C" {
#endif
typedef enum {
__po_hi_c_b9600 = 0,
__po_hi_c_b19200 = 1,
......@@ -20,82 +19,29 @@ typedef enum {
__po_hi_c_b230400 = 5
} __po_hi_c_Baudrate_T;
#define __po_hi_c_Baudrate_T_REQUIRED_BYTES_FOR_ENCODING 1
#define __po_hi_c_Baudrate_T_REQUIRED_BITS_FOR_ENCODING 3
#define __po_hi_c_Baudrate_T_REQUIRED_BYTES_FOR_ACN_ENCODING 1
#define __po_hi_c_Baudrate_T_REQUIRED_BITS_FOR_ACN_ENCODING 3
#define __po_hi_c_Baudrate_T_REQUIRED_BYTES_FOR_XER_ENCODING 38
flag __po_hi_c_Baudrate_T_Equal(const __po_hi_c_Baudrate_T* pVal1, const __po_hi_c_Baudrate_T* pVal2);
void __po_hi_c_Baudrate_T_Initialize(__po_hi_c_Baudrate_T* pVal);
flag __po_hi_c_Baudrate_T_IsConstraintValid(const __po_hi_c_Baudrate_T* val, int* pErrCode);
#ifndef ERR___po_hi_c_Baudrate_T_unknown_enumeration_value
#define ERR___po_hi_c_Baudrate_T_unknown_enumeration_value 1002 /**/
#endif
#ifndef ERR___po_hi_c_Baudrate_T
#define ERR___po_hi_c_Baudrate_T 1001 /**/
#endif
#define ERR_BAUDRATE_T 1 /**/
flag __po_hi_c_Baudrate_T_IsConstraintValid(const __po_hi_c_Baudrate_T* pVal, int* pErrCode);
typedef enum {
__po_hi_c_even = 0,
__po_hi_c_odd = 1
} __po_hi_c_Parity_T;
#define __po_hi_c_Parity_T_REQUIRED_BYTES_FOR_ENCODING 1
#define __po_hi_c_Parity_T_REQUIRED_BITS_FOR_ENCODING 1
#define __po_hi_c_Parity_T_REQUIRED_BYTES_FOR_ACN_ENCODING 1
#define __po_hi_c_Parity_T_REQUIRED_BITS_FOR_ACN_ENCODING 1
#define __po_hi_c_Parity_T_REQUIRED_BYTES_FOR_XER_ENCODING 30
flag __po_hi_c_Parity_T_Equal(const __po_hi_c_Parity_T* pVal1, const __po_hi_c_Parity_T* pVal2);
void __po_hi_c_Parity_T_Initialize(__po_hi_c_Parity_T* pVal);
flag __po_hi_c_Parity_T_IsConstraintValid(const __po_hi_c_Parity_T* val, int* pErrCode);
#ifndef ERR___po_hi_c_Parity_T_unknown_enumeration_value
#define ERR___po_hi_c_Parity_T_unknown_enumeration_value 1004 /**/
#endif
#ifndef ERR___po_hi_c_Parity_T
#define ERR___po_hi_c_Parity_T 1003 /**/
#endif
typedef asn1SccSint __po_hi_c_serial_conf_t_sending_wait;
#define __po_hi_c_serial_conf_t_sending_wait_REQUIRED_BYTES_FOR_ENCODING 3
#define __po_hi_c_serial_conf_t_sending_wait_REQUIRED_BITS_FOR_ENCODING 24
#define __po_hi_c_serial_conf_t_sending_wait_REQUIRED_BYTES_FOR_ACN_ENCODING 3
#define __po_hi_c_serial_conf_t_sending_wait_REQUIRED_BITS_FOR_ACN_ENCODING 24
#define __po_hi_c_serial_conf_t_sending_wait_REQUIRED_BYTES_FOR_XER_ENCODING 77
void __po_hi_c_serial_conf_t_sending_wait_Initialize(__po_hi_c_serial_conf_t_sending_wait* pVal);
flag __po_hi_c_serial_conf_t_sending_wait_IsConstraintValid(const __po_hi_c_serial_conf_t_sending_wait* val, int* pErrCode);
#ifndef ERR___po_hi_c_serial_conf_t_sending_wait
#define ERR___po_hi_c_serial_conf_t_sending_wait 1005 /*(0 .. 9000000)*/
#endif
typedef asn1SccSint __po_hi_c_serial_conf_t_bits;
#define __po_hi_c_serial_conf_t_bits_REQUIRED_BYTES_FOR_ENCODING 1
#define __po_hi_c_serial_conf_t_bits_REQUIRED_BITS_FOR_ENCODING 1
#define __po_hi_c_serial_conf_t_bits_REQUIRED_BYTES_FOR_ACN_ENCODING 1
#define __po_hi_c_serial_conf_t_bits_REQUIRED_BITS_FOR_ACN_ENCODING 1
#define __po_hi_c_serial_conf_t_bits_REQUIRED_BYTES_FOR_XER_ENCODING 61
void __po_hi_c_serial_conf_t_bits_Initialize(__po_hi_c_serial_conf_t_bits* pVal);
flag __po_hi_c_serial_conf_t_bits_IsConstraintValid(const __po_hi_c_serial_conf_t_bits* val, int* pErrCode);
#ifndef ERR___po_hi_c_serial_conf_t_bits
#define ERR___po_hi_c_serial_conf_t_bits 1006 /*(7 .. 8)*/
#endif
#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 --------------------------------------------*/
typedef char __po_hi_c_serial_conf_t_devname[21];
typedef asn1SccUint __po_hi_c_serial_conf_t_bits;
#define __po_hi_c_serial_conf_t_devname_REQUIRED_BYTES_FOR_ENCODING 19
#define __po_hi_c_serial_conf_t_devname_REQUIRED_BITS_FOR_ENCODING 145
#define __po_hi_c_serial_conf_t_devname_REQUIRED_BYTES_FOR_ACN_ENCODING 19
#define __po_hi_c_serial_conf_t_devname_REQUIRED_BITS_FOR_ACN_ENCODING 145
#define __po_hi_c_serial_conf_t_devname_REQUIRED_BYTES_FOR_XER_ENCODING 67
typedef asn1SccUint __po_hi_c_serial_conf_t_sending_wait;
void __po_hi_c_serial_conf_t_devname_Initialize(__po_hi_c_serial_conf_t_devname pVal);
flag __po_hi_c_serial_conf_t_devname_IsConstraintValid(const __po_hi_c_serial_conf_t_devname val, int* pErrCode);
#ifndef ERR___po_hi_c_serial_conf_t_devname
#define ERR___po_hi_c_serial_conf_t_devname 1007 /*(SIZE(1 .. 20))*/
#endif
typedef struct {
__po_hi_c_serial_conf_t_devname devname;
......@@ -104,6 +50,7 @@ typedef struct {
__po_hi_c_serial_conf_t_bits bits;
__po_hi_c_serial_conf_t_sending_wait sending_wait;
flag use_paritybit;
struct {
unsigned int speed:1;
unsigned int parity:1;
......@@ -111,17 +58,29 @@ typedef struct {
unsigned int sending_wait:1;
unsigned int use_paritybit:1;
} exist;
} __po_hi_c_serial_conf_t;
#define __po_hi_c_serial_conf_t_REQUIRED_BYTES_FOR_ENCODING 23
#define __po_hi_c_serial_conf_t_REQUIRED_BITS_FOR_ENCODING 180
#define __po_hi_c_serial_conf_t_REQUIRED_BYTES_FOR_ACN_ENCODING 23
#define __po_hi_c_serial_conf_t_REQUIRED_BITS_FOR_ACN_ENCODING 180
#define __po_hi_c_serial_conf_t_REQUIRED_BYTES_FOR_XER_ENCODING 250
flag __po_hi_c_serial_conf_t_devname_Equal(const __po_hi_c_serial_conf_t_devname val1, const __po_hi_c_serial_conf_t_devname val2);
flag __po_hi_c_serial_conf_t_bits_Equal(const __po_hi_c_serial_conf_t_bits* pVal1, const __po_hi_c_serial_conf_t_bits* pVal2);
flag __po_hi_c_serial_conf_t_sending_wait_Equal(const __po_hi_c_serial_conf_t_sending_wait* pVal1, const __po_hi_c_serial_conf_t_sending_wait* pVal2);
flag __po_hi_c_serial_conf_t_Equal(const __po_hi_c_serial_conf_t* pVal1, const __po_hi_c_serial_conf_t* pVal2);
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);
void __po_hi_c_serial_conf_t_Initialize(__po_hi_c_serial_conf_t* pVal);
flag __po_hi_c_serial_conf_t_IsConstraintValid(const __po_hi_c_serial_conf_t* val, int* pErrCode);
#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 /**/
flag __po_hi_c_serial_conf_t_IsConstraintValid(const __po_hi_c_serial_conf_t* pVal, int* pErrCode);
extern const __po_hi_c_serial_conf_t linux_ttyS0;
extern const __po_hi_c_serial_conf_t linux_ttyUSB0;
......@@ -135,25 +94,12 @@ extern const __po_hi_c_serial_conf_t leon_rasta_apburasta1;
* have been declared first, in case of parameterized ACN encodings
* ========================================================================= */
#ifdef __cplusplus
}
#define ENUM___po_hi_c_b9600 __po_hi_c_b9600
#define ENUM___po_hi_c_b19200 __po_hi_c_b19200
#define ENUM___po_hi_c_b38400 __po_hi_c_b38400
#define ENUM___po_hi_c_b57600 __po_hi_c_b57600
#define ENUM___po_hi_c_b115200 __po_hi_c_b115200
#define ENUM___po_hi_c_b230400 __po_hi_c_b230400
#define ENUM___po_hi_c_even __po_hi_c_even
#define ENUM___po_hi_c_odd __po_hi_c_odd
#endif
#endif
#endif
\ No newline at end of file
#ifndef GENERATED_ASN1SCC_SPACEWIRE_H
#define GENERATED_ASN1SCC_SPACEWIRE_H
#ifndef GENERATED_ASN1SCC_spacewire_H
#define GENERATED_ASN1SCC_spacewire_H
/*
Code automatically generated by asn1scc tool
*/
......@@ -10,63 +10,36 @@ extern "C" {
#endif
typedef asn1SccUint __po_hi_c_Core_Frequence_T;
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
#define __po_hi_c_Core_Frequence_T_REQUIRED_BYTES_FOR_XER_ENCODING 57
flag __po_hi_c_Core_Frequence_T_Equal(const __po_hi_c_Core_Frequence_T* pVal1, const __po_hi_c_Core_Frequence_T* pVal2);
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);
#ifndef ERR___po_hi_c_Core_Frequence_T
#define ERR___po_hi_c_Core_Frequence_T 1001 /*(0 .. 4294967295)*/
#endif
typedef asn1SccSint __po_hi_c_Node_Addr_T;
#define ERR_CORE_FREQUENCE_T 1 /**/