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
......@@ -31,24 +31,40 @@ extern "C" {
#define WORD_SIZE 8
#endif
#ifndef FP_WORD_SIZE
#define FP_WORD_SIZE 8
#endif
typedef float asn1Real32;
typedef double asn1Real64;
typedef int asn1SccSint32;
typedef unsigned int asn1SccUint32;
typedef unsigned char byte;
typedef int asn1SccSint32;
typedef unsigned int asn1SccUint32;
#if WORD_SIZE==8
typedef long long asn1SccSint64;
typedef unsigned long long asn1SccUint64;
#if WORD_SIZE==8
typedef asn1SccUint64 asn1SccUint;
typedef asn1SccSint64 asn1SccSint;
#else
typedef asn1SccUint32 asn1SccUint;
typedef asn1SccSint32 asn1SccSint;
#endif
#if FP_WORD_SIZE==8
typedef asn1Real64 asn1Real;
#else
typedef asn1Real32 asn1Real;
#endif
#ifdef _MSC_VER
# ifndef INFINITY
# define INFINITY (DBL_MAX+DBL_MAX)
......@@ -127,24 +143,27 @@ flag BitStream_ReadByte(BitStream* pBitStrm, byte* v);
void BitStream_EncodeUnConstraintWholeNumber(BitStream* pBitStrm, asn1SccSint v);
void BitStream_EncodeSemiConstraintWholeNumber(BitStream* pBitStrm, asn1SccSint v, asn1SccSint min);
void BitStream_EncodeSemiConstraintPosWholeNumber(BitStream* pBitStrm, asn1SccUint v, asn1SccUint min);
void BitStream_EncodeConstraintWholeNumber(BitStream* pBitStrm, asn1SccSint v, asn1SccSint min, asn1SccSint max);
void BitStream_EncodeConstraintPosWholeNumber(BitStream* pBitStrm, asn1SccUint v, asn1SccUint min, asn1SccUint max);
flag BitStream_DecodeUnConstraintWholeNumber(BitStream* pBitStrm, asn1SccSint* v);
flag BitStream_DecodeSemiConstraintWholeNumber(BitStream* pBitStrm, asn1SccSint* v, asn1SccSint min);
flag BitStream_DecodeSemiConstraintPosWholeNumber(BitStream* pBitStrm, asn1SccUint* v, asn1SccUint min);
flag BitStream_DecodeConstraintWholeNumber(BitStream* pBitStrm, asn1SccSint* v, asn1SccSint min, asn1SccSint max);
flag BitStream_DecodeConstraintPosWholeNumber(BitStream* pBitStrm, asn1SccUint* v, asn1SccUint min, asn1SccUint max);
void BitStream_EncodeReal(BitStream* pBitStrm, double v);
flag BitStream_DecodeReal(BitStream* pBitStrm, double* v);
void BitStream_EncodeReal(BitStream* pBitStrm, asn1Real v);
flag BitStream_DecodeReal(BitStream* pBitStrm, asn1Real* v);
void CalculateMantissaAndExponent(double d, int* exp, asn1SccUint* mantissa);
double GetDoubleByMantissaAndExp(asn1SccUint mantissa, int exp);
void CalculateMantissaAndExponent(asn1Real d, int* exp, asn1SccUint64* mantissa);
asn1Real GetDoubleByMantissaAndExp(asn1SccUint mantissa, int exp);
int GetNumberOfBitsForNonNegativeInteger(asn1SccUint v);
......@@ -168,15 +187,15 @@ void Acn_AlignToNextWord(BitStream* pBitStrm);
void Acn_AlignToNextDWord(BitStream* pBitStrm);
/*ACN Integer functions*/
void Acn_Enc_Int_PositiveInteger_ConstSize(BitStream* pBitStrm, asn1SccSint intVal, int encodedSizeInBits);
void Acn_Enc_Int_PositiveInteger_ConstSize_8(BitStream* pBitStrm, asn1SccSint intVal);
void Acn_Enc_Int_PositiveInteger_ConstSize_big_endian_16(BitStream* pBitStrm, asn1SccSint intVal);
void Acn_Enc_Int_PositiveInteger_ConstSize_big_endian_32(BitStream* pBitStrm, asn1SccSint intVal);
void Acn_Enc_Int_PositiveInteger_ConstSize_big_endian_64(BitStream* pBitStrm, asn1SccSint intVal);
void Acn_Enc_Int_PositiveInteger_ConstSize_little_endian_16(BitStream* pBitStrm, asn1SccSint intVal);
void Acn_Enc_Int_PositiveInteger_ConstSize_little_endian_32(BitStream* pBitStrm, asn1SccSint intVal);
void Acn_Enc_Int_PositiveInteger_ConstSize_little_endian_64(BitStream* pBitStrm, asn1SccSint intVal);
void Acn_Enc_Int_PositiveInteger_VarSize_LengthEmbedded(BitStream* pBitStrm, asn1SccSint intVal);
void Acn_Enc_Int_PositiveInteger_ConstSize(BitStream* pBitStrm, asn1SccUint intVal, int encodedSizeInBits);
void Acn_Enc_Int_PositiveInteger_ConstSize_8(BitStream* pBitStrm, asn1SccUint intVal);
void Acn_Enc_Int_PositiveInteger_ConstSize_big_endian_16(BitStream* pBitStrm, asn1SccUint intVal);
void Acn_Enc_Int_PositiveInteger_ConstSize_big_endian_32(BitStream* pBitStrm, asn1SccUint intVal);
void Acn_Enc_Int_PositiveInteger_ConstSize_big_endian_64(BitStream* pBitStrm, asn1SccUint intVal);
void Acn_Enc_Int_PositiveInteger_ConstSize_little_endian_16(BitStream* pBitStrm, asn1SccUint intVal);
void Acn_Enc_Int_PositiveInteger_ConstSize_little_endian_32(BitStream* pBitStrm, asn1SccUint intVal);
void Acn_Enc_Int_PositiveInteger_ConstSize_little_endian_64(BitStream* pBitStrm, asn1SccUint intVal);
void Acn_Enc_Int_PositiveInteger_VarSize_LengthEmbedded(BitStream* pBitStrm, asn1SccUint intVal);
void Acn_Enc_Int_TwosComplement_ConstSize(BitStream* pBitStrm, asn1SccSint intVal, int encodedSizeInBits);
void Acn_Enc_Int_TwosComplement_ConstSize_8(BitStream* pBitStrm, asn1SccSint intVal);
......@@ -188,26 +207,29 @@ void Acn_Enc_Int_TwosComplement_ConstSize_little_endian_32(BitStream* pBitStrm,
void Acn_Enc_Int_TwosComplement_ConstSize_little_endian_64(BitStream* pBitStrm, asn1SccSint intVal);
void Acn_Enc_Int_TwosComplement_VarSize_LengthEmbedded(BitStream* pBitStrm, asn1SccSint intVal);
void Acn_Enc_Int_BCD_ConstSize(BitStream* pBitStrm, asn1SccSint intVal, int encodedSizeInNibbles);
void Acn_Enc_Int_BCD_VarSize_LengthEmbedded(BitStream* pBitStrm, asn1SccSint intVal);
void Acn_Enc_Int_BCD_VarSize_NullTerminated(BitStream* pBitStrm, asn1SccSint intVal); //encoding ends when 'F' is reached
void Acn_Enc_Int_BCD_ConstSize(BitStream* pBitStrm, asn1SccUint intVal, int encodedSizeInNibbles);
void Acn_Enc_Int_BCD_VarSize_LengthEmbedded(BitStream* pBitStrm, asn1SccUint intVal);
void Acn_Enc_Int_BCD_VarSize_NullTerminated(BitStream* pBitStrm, asn1SccUint intVal); /*encoding ends when 'F' is reached*/
void Acn_Enc_Int_ASCII_ConstSize(BitStream* pBitStrm, asn1SccSint intVal, int encodedSizeInBytes);
void Acn_Enc_Int_ASCII_VarSize_LengthEmbedded(BitStream* pBitStrm, asn1SccSint intVal);
void Acn_Enc_Int_ASCII_VarSize_NullTerminated(BitStream* pBitStrm, asn1SccSint intVal); //encoding ends when 0x0 is reached
void Acn_Enc_SInt_ASCII_ConstSize(BitStream* pBitStrm, asn1SccSint intVal, int encodedSizeInBytes);
void Acn_Enc_SInt_ASCII_VarSize_LengthEmbedded(BitStream* pBitStrm, asn1SccSint intVal);
void Acn_Enc_SInt_ASCII_VarSize_NullTerminated(BitStream* pBitStrm, asn1SccSint intVal, byte null_character); /*encoding ends when null_character is reached*/
void Acn_Enc_UInt_ASCII_ConstSize(BitStream* pBitStrm, asn1SccUint intVal, int encodedSizeInBytes);
void Acn_Enc_UInt_ASCII_VarSize_LengthEmbedded(BitStream* pBitStrm, asn1SccUint intVal);
void Acn_Enc_UInt_ASCII_VarSize_NullTerminated(BitStream* pBitStrm, asn1SccUint intVal, byte null_character); /*encoding ends when null_character is reached*/
/*ACN Decode Integer functions*/
flag Acn_Dec_Int_PositiveInteger_ConstSize(BitStream* pBitStrm, asn1SccSint* pIntVal, int encodedSizeInBits);
flag Acn_Dec_Int_PositiveInteger_ConstSize_8(BitStream* pBitStrm, asn1SccSint* pIntVal);
flag Acn_Dec_Int_PositiveInteger_ConstSize_big_endian_16(BitStream* pBitStrm, asn1SccSint* pIntVal);
flag Acn_Dec_Int_PositiveInteger_ConstSize_big_endian_32(BitStream* pBitStrm, asn1SccSint* pIntVal);
flag Acn_Dec_Int_PositiveInteger_ConstSize_big_endian_64(BitStream* pBitStrm, asn1SccSint* pIntVal);
flag Acn_Dec_Int_PositiveInteger_ConstSize_little_endian_16(BitStream* pBitStrm, asn1SccSint* pIntVal);
flag Acn_Dec_Int_PositiveInteger_ConstSize_little_endian_32(BitStream* pBitStrm, asn1SccSint* pIntVal);
flag Acn_Dec_Int_PositiveInteger_ConstSize_little_endian_64(BitStream* pBitStrm, asn1SccSint* pIntVal);
flag Acn_Dec_Int_PositiveInteger_VarSize_LengthEmbedded(BitStream* pBitStrm, asn1SccSint* pIntVal);
flag Acn_Dec_Int_PositiveInteger_ConstSize(BitStream* pBitStrm, asn1SccUint* pIntVal, int encodedSizeInBits);
flag Acn_Dec_Int_PositiveInteger_ConstSize_8(BitStream* pBitStrm, asn1SccUint* pIntVal);
flag Acn_Dec_Int_PositiveInteger_ConstSize_big_endian_16(BitStream* pBitStrm, asn1SccUint* pIntVal);
flag Acn_Dec_Int_PositiveInteger_ConstSize_big_endian_32(BitStream* pBitStrm, asn1SccUint* pIntVal);
flag Acn_Dec_Int_PositiveInteger_ConstSize_big_endian_64(BitStream* pBitStrm, asn1SccUint* pIntVal);
flag Acn_Dec_Int_PositiveInteger_ConstSize_little_endian_16(BitStream* pBitStrm, asn1SccUint* pIntVal);
flag Acn_Dec_Int_PositiveInteger_ConstSize_little_endian_32(BitStream* pBitStrm, asn1SccUint* pIntVal);
flag Acn_Dec_Int_PositiveInteger_ConstSize_little_endian_64(BitStream* pBitStrm, asn1SccUint* pIntVal);
flag Acn_Dec_Int_PositiveInteger_VarSize_LengthEmbedded(BitStream* pBitStrm, asn1SccUint* pIntVal);
flag Acn_Dec_Int_TwosComplement_ConstSize(BitStream* pBitStrm, asn1SccSint* pIntVal, int encodedSizeInBits);
flag Acn_Dec_Int_TwosComplement_ConstSize_8(BitStream* pBitStrm, asn1SccSint* pIntVal);
......@@ -219,15 +241,20 @@ flag Acn_Dec_Int_TwosComplement_ConstSize_little_endian_32(BitStream* pBitStrm,
flag Acn_Dec_Int_TwosComplement_ConstSize_little_endian_64(BitStream* pBitStrm, asn1SccSint* pIntVal);
flag Acn_Dec_Int_TwosComplement_VarSize_LengthEmbedded(BitStream* pBitStrm, asn1SccSint* pIntVal);
flag Acn_Dec_Int_BCD_ConstSize(BitStream* pBitStrm, asn1SccSint* pIntVal, int encodedSizeInNibbles);
flag Acn_Dec_Int_BCD_VarSize_LengthEmbedded(BitStream* pBitStrm, asn1SccSint* pIntVal);
//encoding ends when 'F' is reached
flag Acn_Dec_Int_BCD_VarSize_NullTerminated(BitStream* pBitStrm, asn1SccSint* pIntVal);
flag Acn_Dec_Int_BCD_ConstSize(BitStream* pBitStrm, asn1SccUint* pIntVal, int encodedSizeInNibbles);
flag Acn_Dec_Int_BCD_VarSize_LengthEmbedded(BitStream* pBitStrm, asn1SccUint* pIntVal);
/*encoding ends when 'F' is reached*/
flag Acn_Dec_Int_BCD_VarSize_NullTerminated(BitStream* pBitStrm, asn1SccUint* pIntVal);
flag Acn_Dec_Int_ASCII_ConstSize(BitStream* pBitStrm, asn1SccSint* pIntVal, int encodedSizeInBytes);
flag Acn_Dec_Int_ASCII_VarSize_LengthEmbedded(BitStream* pBitStrm, asn1SccSint* pIntVal);
flag Acn_Dec_Int_ASCII_VarSize_NullTerminated(BitStream* pBitStrm, asn1SccSint* pIntVal);
//flag Acn_Dec_Int_ASCII_NullTerminated_FormattedInteger(BitStream* pBitStrm, const char* format, asn1SccSint* pIntVal);
flag Acn_Dec_SInt_ASCII_ConstSize(BitStream* pBitStrm, asn1SccSint* pIntVal, int encodedSizeInBytes);
flag Acn_Dec_SInt_ASCII_VarSize_LengthEmbedded(BitStream* pBitStrm, asn1SccSint* pIntVal);
flag Acn_Dec_SInt_ASCII_VarSize_NullTerminated(BitStream* pBitStrm, asn1SccSint* pIntVal, byte null_character);
flag Acn_Dec_UInt_ASCII_ConstSize(BitStream* pBitStrm, asn1SccUint* pIntVal, int encodedSizeInBytes);
flag Acn_Dec_UInt_ASCII_VarSize_LengthEmbedded(BitStream* pBitStrm, asn1SccUint* pIntVal);
flag Acn_Dec_UInt_ASCII_VarSize_NullTerminated(BitStream* pBitStrm, asn1SccUint* pIntVal, byte null_character);
/*flag Acn_Dec_Int_ASCII_NullTerminated_FormattedInteger(BitStream* pBitStrm, const char* format, asn1SccSint* pIntVal);*/
/* Boolean Decode */
......@@ -235,15 +262,15 @@ flag Acn_Dec_Int_ASCII_VarSize_NullTerminated(BitStream* pBitStrm, asn1SccSint*
flag BitStream_ReadBitPattern(BitStream* pBitStrm, const byte* patternToRead, int nBitsToRead, flag* pBoolValue);
/*Real encoding functions*/
void Acn_Enc_Real_IEEE754_32_big_endian(BitStream* pBitStrm, double realValue);
void Acn_Enc_Real_IEEE754_64_big_endian(BitStream* pBitStrm, double realValue);
void Acn_Enc_Real_IEEE754_32_little_endian(BitStream* pBitStrm, double realValue);
void Acn_Enc_Real_IEEE754_64_little_endian(BitStream* pBitStrm, double realValue);
void Acn_Enc_Real_IEEE754_32_big_endian(BitStream* pBitStrm, asn1Real realValue);
void Acn_Enc_Real_IEEE754_64_big_endian(BitStream* pBitStrm, asn1Real realValue);
void Acn_Enc_Real_IEEE754_32_little_endian(BitStream* pBitStrm, asn1Real realValue);
void Acn_Enc_Real_IEEE754_64_little_endian(BitStream* pBitStrm, asn1Real realValue);
flag Acn_Dec_Real_IEEE754_32_big_endian(BitStream* pBitStrm, double* pRealValue);
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);
flag Acn_Dec_Real_IEEE754_32_big_endian(BitStream* pBitStrm, asn1Real* pRealValue);
flag Acn_Dec_Real_IEEE754_64_big_endian(BitStream* pBitStrm, asn1Real* pRealValue);
flag Acn_Dec_Real_IEEE754_32_little_endian(BitStream* pBitStrm, asn1Real* pRealValue);
flag Acn_Dec_Real_IEEE754_64_little_endian(BitStream* pBitStrm, asn1Real* pRealValue);
/*String functions*/
void Acn_Enc_String_Ascii_FixSize (BitStream* pBitStrm, asn1SccSint max, const char* strVal);
......@@ -253,6 +280,8 @@ void Acn_Enc_String_Ascii_Internal_Field_Determinant (BitStream* pBitStrm, as
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);
void Acn_Enc_IA5String_CharIndex_External_Field_Determinant(BitStream* pBitStrm, asn1SccSint max, const char* strVal);
void Acn_Enc_IA5String_CharIndex_Internal_Field_Determinant(BitStream* pBitStrm, asn1SccSint max, 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);
......@@ -261,14 +290,16 @@ flag Acn_Dec_String_Ascii_Internal_Field_Determinant (BitStream* pBitStrm, as
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);
flag Acn_Dec_IA5String_CharIndex_External_Field_Determinant(BitStream* pBitStrm, asn1SccSint max, asn1SccSint extSizeDeterminatFld, char* strVal);
flag Acn_Dec_IA5String_CharIndex_Internal_Field_Determinant(BitStream* pBitStrm, asn1SccSint max, asn1SccSint min, char* strVal);
/* Length Determinant functions*/
void Acn_Enc_Length(BitStream* pBitStrm, asn1SccSint lengthValue, int lengthSizeInBits);
void Acn_Enc_Length(BitStream* pBitStrm, asn1SccUint lengthValue, int lengthSizeInBits);
flag Acn_Dec_Length(BitStream* pBitStrm, asn1SccSint* pLengthValue, int lengthSizeInBits);
flag Acn_Dec_Length(BitStream* pBitStrm, asn1SccUint* pLengthValue, int lengthSizeInBits);
......@@ -288,9 +319,10 @@ void Xer_EncodeXmlHeader(ByteStream* pByteStrm, const char* xmlHeader);
flag Xer_EncodeComment(ByteStream* pByteStrm, const char* comment, int *pErrCode);
flag Xer_EncodeInteger(ByteStream* pByteStrm, const char* elementTag, asn1SccSint value, int *pErrCode, int level);
flag Xer_EncodePosInteger(ByteStream* pByteStrm, const char* elementTag, asn1SccUint value, int *pErrCode, int level);
flag Xer_EncodeBoolean(ByteStream* pByteStrm, const char* elementTag, flag value, int *pErrCode, int level);
flag Xer_EncodeEnumerated(ByteStream* pByteStrm, const char* elementTag, const char* value, int *pErrCode, int level);
flag Xer_EncodeReal(ByteStream* pByteStrm, const char* elementTag, double value, int *pErrCode, int level);
flag Xer_EncodeReal(ByteStream* pByteStrm, const char* elementTag, asn1Real value, int *pErrCode, int level);
flag Xer_EncodeString(ByteStream* pByteStrm, const char* elementTag, const char* value, int *pErrCode, int level);
flag Xer_EncodeOctetString(ByteStream* pByteStrm, const char* elementTag, const byte value[], int nCount, int *pErrCode, int level);
flag Xer_EncodeBitString(ByteStream* pByteStrm, const char* elementTag, const byte value[], int nCount, int *pErrCode, int level);
......@@ -298,12 +330,13 @@ flag Xer_EncodeBitString(ByteStream* pByteStrm, const char* elementTag, const by
flag Xer_DecodeInteger(ByteStream* pByteStrm, const char* elementTag, asn1SccSint* value, int *pErrCode);
flag Xer_DecodePosInteger(ByteStream* pByteStrm, const char* elementTag, asn1SccUint* value, int *pErrCode);
flag Xer_DecodeBoolean(ByteStream* pByteStrm, const char* elementTag, flag* value, int *pErrCode);
flag Xer_DecodeEnumerated(ByteStream* pByteStrm, const char* elementTag, char* value, int *pErrCode);
flag Xer_DecodeReal(ByteStream* pByteStrm, const char* elementTag, double* value, int *pErrCode);
flag Xer_DecodeReal(ByteStream* pByteStrm, const char* elementTag, asn1Real* value, int *pErrCode);
flag Xer_DecodeString(ByteStream* pByteStrm, const char* elementTag, char* value, int *pErrCode);
flag Xer_DecodeOctetString(ByteStream* pByteStrm, const char* elementTag, byte value[], long* nCount, int *pErrCode);
flag Xer_DecodeBitString(ByteStream* pByteStrm, const char* elementTag, byte value[], long* nCount, int *pErrCode);
flag Xer_DecodeOctetString(ByteStream* pByteStrm, const char* elementTag, byte value[], int bufferMaxSize, int* nCount, int *pErrCode);
flag Xer_DecodeBitString(ByteStream* pByteStrm, const char* elementTag, byte value[], int bufferMaxSize, int* nCount, int *pErrCode);
flag Xer_EncodeComplexElementStart(ByteStream* pByteStrm, const char* elementTag, XmlAttributeArray* pAttrs, int *pErrCode, int level);
flag Xer_EncodeComplexElementEnd(ByteStream* pByteStrm, const char* elementTag, int *pErrCode, int level);
flag Xer_DecodeComplexElementStart(ByteStream* pByteStrm, const char* elementTag, XmlAttributeArray* pAttrs, int *pErrCode);
......@@ -337,8 +370,8 @@ flag BerDecodeInteger(ByteStream* pByteStrm, BerTag tag, asn1SccSint *value, int
flag BerEncodeBoolean(ByteStream* pByteStrm, BerTag tag, flag value, int *pErrCode);
flag BerDecodeBoolean(ByteStream* pByteStrm, BerTag tag, flag *value, int *pErrCode);
flag BerEncodeReal(ByteStream* pByteStrm, BerTag tag, double value, int *pErrCode);
flag BerDecodeReal(ByteStream* pByteStrm, BerTag tag, double *value, int *pErrCode);
flag BerEncodeReal(ByteStream* pByteStrm, BerTag tag, asn1Real value, int *pErrCode);
flag BerDecodeReal(ByteStream* pByteStrm, BerTag tag, asn1Real *value, int *pErrCode);
flag BerEncodeIA5String(ByteStream* pByteStrm, BerTag tag, const char* value, int length, int *pErrCode);
flag BerDecodeIA5String(ByteStream* pByteStrm, BerTag tag, char* value, int maxLength, int *pErrCode);
......@@ -355,12 +388,22 @@ flag BerDecodeOctetString(ByteStream* pByteStrm, BerTag tag, byte* value, int *o
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);
#if WORD_SIZE==8
extern const asn1SccUint64 ber_aux[];
#else
extern const asn1SccUint32 ber_aux[];
#endif
asn1SccUint int2uint(asn1SccSint v);
asn1SccSint uint2int(asn1SccUint v, int uintSizeInBytes);
#define CHECK_BIT_STREAM(pBitStrm) assert((pBitStrm)->currentByte*8+(pBitStrm)->currentBit<=(pBitStrm)->count*8)
#ifdef _MSC_VER
......
#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];