Commit dd174a67 authored by yoogx's avatar yoogx

* Regenerate all ASN.1 headers

parent f6b6f56b
/*
* This is a part of PolyORB-HI-C distribution, a minimal
* middleware written for generated code from AADL models.
* You should use it with the Ocarina toolsuite.
*
* For more informations, please visit http://taste.tuxfamily.org/wiki
*
* Copyright (C) 2014 ESA & ISAE.
*/
#ifndef _INC_1553_H
#define _INC_1553_H
#ifndef GENERATED_ASN1SCC_1553_H
#define GENERATED_ASN1SCC_1553_H
/*
Code automatically generated by asn1scc tool
Date was: 2/7/2012
Time was: 15:35:34
*/
#include "asn1crt.h"
#ifdef __cplusplus
......@@ -26,38 +13,37 @@ extern "C" {
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_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
#ifndef ERR___po_hi_c_Node_Addr_T
#define ERR___po_hi_c_Node_Addr_T 1000 /* (0..31) */
#endif
#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
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
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_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
#ifndef ERR___po_hi_c_Standard_T_unknown_enumeration_value
#define ERR___po_hi_c_Standard_T_unknown_enumeration_value 1001 /* invalid enumeration value */
#endif
#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
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
typedef enum {
__po_hi_c_controller = 0,
......@@ -65,19 +51,20 @@ typedef enum {
__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_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 40
#ifndef ERR___po_hi_c_Mode_T_unknown_enumeration_value
#define ERR___po_hi_c_Mode_T_unknown_enumeration_value 1002 /* invalid enumeration value */
#endif
#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
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
typedef enum {
__po_hi_c_none = 0,
......@@ -86,22 +73,37 @@ 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_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 28
#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
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 1003 /* invalid 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
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);
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 {
char devname[21];
__po_hi_c_mil_1553_conf_t_devname devname;
__po_hi_c_Standard_T standard;
__po_hi_c_Mode_T mode;
__po_hi_c_Bus_T bus;
......@@ -115,20 +117,30 @@ typedef struct {
} 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_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 23
#define __po_hi_c_mil_1553_conf_t_REQUIRED_BITS_FOR_ACN_ENCODING 180
#define __po_hi_c_mil_1553_conf_t_REQUIRED_BYTES_FOR_XER_ENCODING 315
#ifndef ERR___po_hi_c_mil_1553_conf_t_devname
#define ERR___po_hi_c_mil_1553_conf_t_devname 1004 /* (SIZE (1..20)) */
#endif
#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
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);
/* ================= 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
* ========================================================================= */
#ifdef __cplusplus
}
......@@ -141,6 +153,7 @@ flag __po_hi_c_mil_1553_conf_t_IsConstraintValid(const __po_hi_c_mil_1553_conf_t
#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
/*
* This is a part of PolyORB-HI-C distribution, a minimal
* middleware written for generated code from AADL models.
* You should use it with the Ocarina toolsuite.
*
* For more informations, please visit http://taste.tuxfamily.org/wiki
*
* Copyright (C) 2014 ESA & ISAE.
*/
#ifndef _INC_PER_UTIL_H
#define _INC_PER_UTIL_H
#ifndef ASN1SCC_ASN1CRT_H_
#define ASN1SCC_ASN1CRT_H_
#if (!defined(_MSC_VER) || _MSC_VER >= 1800)
# ifndef SWIG
# include <stdbool.h>
# endif
#else
typedef unsigned char bool;
#define true 1
#define false 0
#endif
#ifdef __cplusplus
extern "C" {
......@@ -21,18 +20,18 @@ extern "C" {
#endif
#ifndef TRUE
#define TRUE 1
#define TRUE true
#endif
#ifndef FALSE
#define FALSE 0
#define FALSE false
#endif
#ifndef WORD_SIZE
#define WORD_SIZE 8
#endif
typedef int asn1SccSint32;
typedef unsigned int asn1SccUint32;
......@@ -50,8 +49,16 @@ typedef asn1SccSint32 asn1SccSint;
#endif
#ifdef _MSC_VER
# ifndef INFINITY
# define INFINITY (DBL_MAX+DBL_MAX)
# endif
# ifndef NAN
# define NAN (INFINITY-INFINITY)
# endif
#endif
typedef int flag;
typedef bool flag;
typedef char NullType;
......@@ -89,6 +96,7 @@ typedef struct {
#define ERR_INSUFFICIENT_DATA 101
#define ERR_INCORRECT_PER_STREAM 102
#define ERR_INVALID_CHOICE_ALTERNATIVE 103
#define ERR_INVALID_ENUM_VALUE 104
#define ERR_INVALID_XML_FILE 200
#define ERR_INVALID_BER_FILE 201
#define ERR_BER_LENGTH_MISMATCH 202
......@@ -237,6 +245,25 @@ flag Acn_Dec_Real_IEEE754_64_big_endian(BitStream* pBitStrm, double* pRealValue)
flag Acn_Dec_Real_IEEE754_32_little_endian(BitStream* pBitStrm, double* pRealValue);
flag Acn_Dec_Real_IEEE754_64_little_endian(BitStream* pBitStrm, double* pRealValue);
/*String functions*/
void Acn_Enc_String_Ascii_FixSize (BitStream* pBitStrm, asn1SccSint max, const char* strVal);
void Acn_Enc_String_Ascii_Null_Teminated (BitStream* pBitStrm, asn1SccSint max, char null_character, const char* strVal);
void Acn_Enc_String_Ascii_External_Field_Determinant (BitStream* pBitStrm, asn1SccSint max, const char* strVal);
void Acn_Enc_String_Ascii_Internal_Field_Determinant (BitStream* pBitStrm, asn1SccSint max, asn1SccSint min, const char* strVal);
void Acn_Enc_String_CharIndex_FixSize (BitStream* pBitStrm, asn1SccSint max, byte allowedCharSet[], int charSetSize, const char* strVal);
void Acn_Enc_String_CharIndex_External_Field_Determinant(BitStream* pBitStrm, asn1SccSint max, byte allowedCharSet[], int charSetSize, const char* strVal);
void Acn_Enc_String_CharIndex_Internal_Field_Determinant(BitStream* pBitStrm, asn1SccSint max, byte allowedCharSet[], int charSetSize, asn1SccSint min, const char* strVal);
flag Acn_Dec_String_Ascii_FixSize (BitStream* pBitStrm, asn1SccSint max, char* strVal);
flag Acn_Dec_String_Ascii_Null_Teminated (BitStream* pBitStrm, asn1SccSint max, char null_character, char* strVal);
flag Acn_Dec_String_Ascii_External_Field_Determinant (BitStream* pBitStrm, asn1SccSint max, asn1SccSint extSizeDeterminatFld, char* strVal);
flag Acn_Dec_String_Ascii_Internal_Field_Determinant (BitStream* pBitStrm, asn1SccSint max, asn1SccSint min, char* strVal);
flag Acn_Dec_String_CharIndex_FixSize (BitStream* pBitStrm, asn1SccSint max, byte allowedCharSet[], int charSetSize, char* strVal);
flag Acn_Dec_String_CharIndex_External_Field_Determinant(BitStream* pBitStrm, asn1SccSint max, byte allowedCharSet[], int charSetSize, asn1SccSint extSizeDeterminatFld, char* strVal);
flag Acn_Dec_String_CharIndex_Internal_Field_Determinant(BitStream* pBitStrm, asn1SccSint max, byte allowedCharSet[], int charSetSize, asn1SccSint min, char* strVal);
/* Length Determinant functions*/
void Acn_Enc_Length(BitStream* pBitStrm, asn1SccSint lengthValue, int lengthSizeInBits);
......@@ -254,6 +281,9 @@ flag BitStream_ReadPartialByte(BitStream* pBitStrm, byte *v, byte nbits);
void BitStream_AppendPartialByte(BitStream* pBitStrm, byte v, byte nbits, flag negate);
void Xer_EncodeXmlHeader(ByteStream* pByteStrm, const char* xmlHeader);
flag Xer_EncodeComment(ByteStream* pByteStrm, const char* comment, int *pErrCode);
......@@ -328,8 +358,8 @@ flag NextTagMatches(ByteStream* pByteStrm, BerTag tag);
int GetStrmPos(ByteStream* pByteStrm);
flag LA_Next_Two_Bytes_00(ByteStream* pByteStrm);
asn1SccSint milbus_encode(asn1SccSint val);
asn1SccSint milbus_decode(asn1SccSint val);
#define CHECK_BIT_STREAM(pBitStrm) assert((pBitStrm)->currentByte*8+(pBitStrm)->currentBit<=(pBitStrm)->count*8)
......
/*
* This is a part of PolyORB-HI-C distribution, a minimal
* middleware written for generated code from AADL models.
* You should use it with the Ocarina toolsuite.
*
* For more informations, please visit http://taste.tuxfamily.org/wiki
*
* Copyright (C) 2014 ESA & ISAE.
*/
#ifndef _INC_IP_H
#define _INC_IP_H
#ifndef GENERATED_ASN1SCC_IP_H
#define GENERATED_ASN1SCC_IP_H
/*
Code automatically generated by asn1scc tool
Date was: 2/7/2012
Time was: 15:35:34
*/
#include "asn1crt.h"
#ifdef __cplusplus
......@@ -26,46 +13,129 @@ extern "C" {
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_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
#ifndef ERR___po_hi_c_Port_T
#define ERR___po_hi_c_Port_T 1000 /* (0..16535) */
#endif
#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
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
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_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
#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
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 1001 /* invalid 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
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);
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
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 struct {
char devname[21];
char address[41];
char broadcast[41];
char netmask[41];
char gateway[41];
char dns[41];
__po_hi_c_ip_conf_t_devname devname;
__po_hi_c_ip_conf_t_address address;
__po_hi_c_ip_conf_t_broadcast broadcast;
__po_hi_c_ip_conf_t_netmask netmask;
__po_hi_c_ip_conf_t_gateway gateway;
__po_hi_c_ip_conf_t_dns dns;
__po_hi_c_Version_T version;
__po_hi_c_Port_T port;
struct {
......@@ -77,42 +147,40 @@ typedef struct {
} 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_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 227
#define __po_hi_c_ip_conf_t_REQUIRED_BITS_FOR_ACN_ENCODING 1816
#define __po_hi_c_ip_conf_t_REQUIRED_BYTES_FOR_XER_ENCODING 416
#ifndef ERR___po_hi_c_ip_conf_t_devname
#define ERR___po_hi_c_ip_conf_t_devname 1002 /* (SIZE (1..20)) */
#endif
#ifndef ERR___po_hi_c_ip_conf_t_address
#define ERR___po_hi_c_ip_conf_t_address 1003 /* (SIZE (1..40)) */
#endif
#ifndef ERR___po_hi_c_ip_conf_t_broadcast
#define ERR___po_hi_c_ip_conf_t_broadcast 1004 /* (SIZE (1..40)) */
#endif
#ifndef ERR___po_hi_c_ip_conf_t_netmask
#define ERR___po_hi_c_ip_conf_t_netmask 1005 /* (SIZE (1..40)) */
#endif
#ifndef ERR___po_hi_c_ip_conf_t_gateway
#define ERR___po_hi_c_ip_conf_t_gateway 1006 /* (SIZE (1..40)) */
#endif
#ifndef ERR___po_hi_c_ip_conf_t_dns
#define ERR___po_hi_c_ip_conf_t_dns 1007 /* (SIZE (1..40)) */
#endif
#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
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);
extern __po_hi_c_ip_conf_t localhost1;
extern __po_hi_c_ip_conf_t localhost2;
extern const __po_hi_c_ip_conf_t localhost1;
extern const __po_hi_c_ip_conf_t localhost2;
/* ================= 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
* ========================================================================= */
#ifdef __cplusplus
}
#define ENUM___po_hi_c_ipv4 __po_hi_c_ipv4
#define ENUM___po_hi_c_ipv6 __po_hi_c_ipv6
#endif
#endif
/*
* This is a part of PolyORB-HI-C distribution, a minimal
* middleware written for generated code from AADL models.
* You should use it with the Ocarina toolsuite.
*
* For more informations, please visit http://taste.tuxfamily.org/wiki
*
* Copyright (C) 2014 ESA & ISAE.
*/
#ifndef _INC_SERIAL_H
#define _INC_SERIAL_H
#ifndef GENERATED_ASN1SCC_SERIAL_H
#define GENERATED_ASN1SCC_SERIAL_H
/*
Code automatically generated by asn1scc tool
Date was: 2/7/2012
Time was: 15:35:35
*/
#include "asn1crt.h"
#ifdef __cplusplus
......@@ -33,45 +20,89 @@ 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_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 42
#ifndef ERR___po_hi_c_Baudrate_T_unknown_enumeration_value
#define ERR___po_hi_c_Baudrate_T_unknown_enumeration_value 1000 /* invalid enumeration value */
#endif
#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
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
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_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 32
#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
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 1001 /* invalid 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
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);
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
typedef char __po_hi_c_serial_conf_t_devname[21];
#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
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 {
char devname[21];
__po_hi_c_serial_conf_t_devname devname;
__po_hi_c_Baudrate_T speed;
__po_hi_c_Parity_T parity;
asn1SccSint bits;
asn1SccSint sending_wait;
__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;
......@@ -82,32 +113,35 @@ typedef struct {
} exist;