Commit dd174a67 authored by yoogx's avatar yoogx
Browse files

* Regenerate all ASN.1 headers

parent f6b6f56b
/* #ifndef GENERATED_ASN1SCC_1553_H
* This is a part of PolyORB-HI-C distribution, a minimal #define GENERATED_ASN1SCC_1553_H
* 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
/* /*
Code automatically generated by asn1scc tool Code automatically generated by asn1scc tool
Date was: 2/7/2012
Time was: 15:35:34
*/ */
#include "asn1crt.h" #include "asn1crt.h"
#ifdef __cplusplus #ifdef __cplusplus
...@@ -32,13 +19,11 @@ typedef asn1SccSint __po_hi_c_Node_Addr_T; ...@@ -32,13 +19,11 @@ typedef asn1SccSint __po_hi_c_Node_Addr_T;
#define __po_hi_c_Node_Addr_T_REQUIRED_BITS_FOR_ACN_ENCODING 5 #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 #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
void __po_hi_c_Node_Addr_T_Initialize(__po_hi_c_Node_Addr_T* pVal); 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); 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 { typedef enum {
__po_hi_c_mil1553a = 0, __po_hi_c_mil1553a = 0,
...@@ -51,13 +36,14 @@ typedef enum { ...@@ -51,13 +36,14 @@ typedef enum {
#define __po_hi_c_Standard_T_REQUIRED_BITS_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 #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
void __po_hi_c_Standard_T_Initialize(__po_hi_c_Standard_T* pVal); 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); 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 { typedef enum {
__po_hi_c_controller = 0, __po_hi_c_controller = 0,
...@@ -69,15 +55,16 @@ typedef enum { ...@@ -69,15 +55,16 @@ typedef enum {
#define __po_hi_c_Mode_T_REQUIRED_BITS_FOR_ENCODING 2 #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_BYTES_FOR_ACN_ENCODING 1
#define __po_hi_c_Mode_T_REQUIRED_BITS_FOR_ACN_ENCODING 2 #define __po_hi_c_Mode_T_REQUIRED_BITS_FOR_ACN_ENCODING 2
#define __po_hi_c_Mode_T_REQUIRED_BYTES_FOR_XER_ENCODING 40 #define __po_hi_c_Mode_T_REQUIRED_BYTES_FOR_XER_ENCODING 36
#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
void __po_hi_c_Mode_T_Initialize(__po_hi_c_Mode_T* pVal); 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); 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 { typedef enum {
__po_hi_c_none = 0, __po_hi_c_none = 0,
...@@ -90,18 +77,33 @@ typedef enum { ...@@ -90,18 +77,33 @@ typedef enum {
#define __po_hi_c_Bus_T_REQUIRED_BITS_FOR_ENCODING 2 #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_BYTES_FOR_ACN_ENCODING 1
#define __po_hi_c_Bus_T_REQUIRED_BITS_FOR_ACN_ENCODING 2 #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_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 #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 #endif
void __po_hi_c_Bus_T_Initialize(__po_hi_c_Bus_T* pVal); typedef char __po_hi_c_mil_1553_conf_t_devname[21];
flag __po_hi_c_Bus_T_IsConstraintValid(const __po_hi_c_Bus_T* val, int* pErrCode);
#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 { typedef struct {
char devname[21]; __po_hi_c_mil_1553_conf_t_devname devname;
__po_hi_c_Standard_T standard; __po_hi_c_Standard_T standard;
__po_hi_c_Mode_T mode; __po_hi_c_Mode_T mode;
__po_hi_c_Bus_T bus; __po_hi_c_Bus_T bus;
...@@ -117,19 +119,29 @@ typedef struct { ...@@ -117,19 +119,29 @@ typedef struct {
#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_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_BYTES_FOR_ACN_ENCODING 20
#define __po_hi_c_mil_1553_conf_t_REQUIRED_BITS_FOR_ACN_ENCODING 180 #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 315 #define __po_hi_c_mil_1553_conf_t_REQUIRED_BYTES_FOR_XER_ENCODING 309
#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
void __po_hi_c_mil_1553_conf_t_Initialize(__po_hi_c_mil_1553_conf_t* pVal); 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); 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 #ifdef __cplusplus
} }
#define ENUM___po_hi_c_mil1553a __po_hi_c_mil1553a #define ENUM___po_hi_c_mil1553a __po_hi_c_mil1553a
...@@ -141,6 +153,7 @@ flag __po_hi_c_mil_1553_conf_t_IsConstraintValid(const __po_hi_c_mil_1553_conf_t ...@@ -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_a __po_hi_c_bus_a
#define ENUM___po_hi_c_bus_b __po_hi_c_bus_b #define ENUM___po_hi_c_bus_b __po_hi_c_bus_b
#define ENUM___po_hi_c_both __po_hi_c_both #define ENUM___po_hi_c_both __po_hi_c_both
#endif #endif
#endif #endif
/* #ifndef ASN1SCC_ASN1CRT_H_
* This is a part of PolyORB-HI-C distribution, a minimal #define ASN1SCC_ASN1CRT_H_
* 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
#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 #ifdef __cplusplus
extern "C" { extern "C" {
...@@ -21,18 +20,18 @@ extern "C" { ...@@ -21,18 +20,18 @@ extern "C" {
#endif #endif
#ifndef TRUE #ifndef TRUE
#define TRUE 1 #define TRUE true
#endif #endif
#ifndef FALSE #ifndef FALSE
#define FALSE 0 #define FALSE false
#endif #endif
#ifndef WORD_SIZE #ifndef WORD_SIZE
#define WORD_SIZE 8 #define WORD_SIZE 8
#endif #endif
typedef int asn1SccSint32; typedef int asn1SccSint32;
typedef unsigned int asn1SccUint32; typedef unsigned int asn1SccUint32;
...@@ -50,8 +49,16 @@ typedef asn1SccSint32 asn1SccSint; ...@@ -50,8 +49,16 @@ typedef asn1SccSint32 asn1SccSint;
#endif #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; typedef char NullType;
...@@ -89,6 +96,7 @@ typedef struct { ...@@ -89,6 +96,7 @@ typedef struct {
#define ERR_INSUFFICIENT_DATA 101 #define ERR_INSUFFICIENT_DATA 101
#define ERR_INCORRECT_PER_STREAM 102 #define ERR_INCORRECT_PER_STREAM 102
#define ERR_INVALID_CHOICE_ALTERNATIVE 103 #define ERR_INVALID_CHOICE_ALTERNATIVE 103
#define ERR_INVALID_ENUM_VALUE 104
#define ERR_INVALID_XML_FILE 200 #define ERR_INVALID_XML_FILE 200
#define ERR_INVALID_BER_FILE 201 #define ERR_INVALID_BER_FILE 201
#define ERR_BER_LENGTH_MISMATCH 202 #define ERR_BER_LENGTH_MISMATCH 202
...@@ -237,6 +245,25 @@ flag Acn_Dec_Real_IEEE754_64_big_endian(BitStream* pBitStrm, double* pRealValue) ...@@ -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_32_little_endian(BitStream* pBitStrm, double* pRealValue);
flag Acn_Dec_Real_IEEE754_64_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*/ /* Length Determinant functions*/
void Acn_Enc_Length(BitStream* pBitStrm, asn1SccSint lengthValue, int lengthSizeInBits); void Acn_Enc_Length(BitStream* pBitStrm, asn1SccSint lengthValue, int lengthSizeInBits);
...@@ -254,6 +281,9 @@ flag BitStream_ReadPartialByte(BitStream* pBitStrm, byte *v, byte nbits); ...@@ -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 BitStream_AppendPartialByte(BitStream* pBitStrm, byte v, byte nbits, flag negate);
void Xer_EncodeXmlHeader(ByteStream* pByteStrm, const char* xmlHeader); void Xer_EncodeXmlHeader(ByteStream* pByteStrm, const char* xmlHeader);
flag Xer_EncodeComment(ByteStream* pByteStrm, const char* comment, int *pErrCode); flag Xer_EncodeComment(ByteStream* pByteStrm, const char* comment, int *pErrCode);
...@@ -328,8 +358,8 @@ flag NextTagMatches(ByteStream* pByteStrm, BerTag tag); ...@@ -328,8 +358,8 @@ flag NextTagMatches(ByteStream* pByteStrm, BerTag tag);
int GetStrmPos(ByteStream* pByteStrm); int GetStrmPos(ByteStream* pByteStrm);
flag LA_Next_Two_Bytes_00(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) #define CHECK_BIT_STREAM(pBitStrm) assert((pBitStrm)->currentByte*8+(pBitStrm)->currentBit<=(pBitStrm)->count*8)
......
/* #ifndef GENERATED_ASN1SCC_IP_H
* This is a part of PolyORB-HI-C distribution, a minimal #define GENERATED_ASN1SCC_IP_H
* 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
/* /*
Code automatically generated by asn1scc tool Code automatically generated by asn1scc tool
Date was: 2/7/2012
Time was: 15:35:34
*/ */
#include "asn1crt.h" #include "asn1crt.h"
#ifdef __cplusplus #ifdef __cplusplus
...@@ -32,13 +19,11 @@ typedef asn1SccSint __po_hi_c_Port_T; ...@@ -32,13 +19,11 @@ typedef asn1SccSint __po_hi_c_Port_T;
#define __po_hi_c_Port_T_REQUIRED_BITS_FOR_ACN_ENCODING 15 #define __po_hi_c_Port_T_REQUIRED_BITS_FOR_ACN_ENCODING 15
#define __po_hi_c_Port_T_REQUIRED_BYTES_FOR_XER_ENCODING 37 #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
void __po_hi_c_Port_T_Initialize(__po_hi_c_Port_T* pVal); 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); 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 { typedef enum {
__po_hi_c_ipv4 = 0, __po_hi_c_ipv4 = 0,
...@@ -51,21 +36,106 @@ typedef enum { ...@@ -51,21 +36,106 @@ typedef enum {
#define __po_hi_c_Version_T_REQUIRED_BITS_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_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 #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 #endif
void __po_hi_c_Version_T_Initialize(__po_hi_c_Version_T* pVal); typedef char __po_hi_c_ip_conf_t_dns[41];
flag __po_hi_c_Version_T_IsConstraintValid(const __po_hi_c_Version_T* val, int* pErrCode);
#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 { typedef struct {
char devname[21]; __po_hi_c_ip_conf_t_devname devname;
char address[41]; __po_hi_c_ip_conf_t_address address;
char broadcast[41]; __po_hi_c_ip_conf_t_broadcast broadcast;
char netmask[41]; __po_hi_c_ip_conf_t_netmask netmask;
char gateway[41]; __po_hi_c_ip_conf_t_gateway gateway;
char dns[41]; __po_hi_c_ip_conf_t_dns dns;
__po_hi_c_Version_T version; __po_hi_c_Version_T version;
__po_hi_c_Port_T port; __po_hi_c_Port_T port;
struct { struct {
...@@ -79,40 +149,38 @@ typedef struct { ...@@ -79,40 +149,38 @@ typedef struct {
#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_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_BYTES_FOR_ACN_ENCODING 200
#define __po_hi_c_ip_conf_t_REQUIRED_BITS_FOR_ACN_ENCODING 1816 #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 #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
void __po_hi_c_ip_conf_t_Initialize(__po_hi_c_ip_conf_t* pVal); 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); 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 const __po_hi_c_ip_conf_t localhost1;
extern __po_hi_c_ip_conf_t localhost2; 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 #ifdef __cplusplus
} }
#define ENUM___po_hi_c_ipv4 __po_hi_c_ipv4 #define ENUM___po_hi_c_ipv4 __po_hi_c_ipv4
#define ENUM___po_hi_c_ipv6 __po_hi_c_ipv6 #define ENUM___po_hi_c_ipv6 __po_hi_c_ipv6
#endif #endif
#endif #endif
/* #ifndef GENERATED_ASN1SCC_SERIAL_H
* This is a part of PolyORB-HI-C distribution, a minimal #define GENERATED_ASN1SCC_SERIAL_H
* middleware written for generated code from AADL models.
* You should use it with the Ocarina toolsuite.