Commit 55002a14 authored by Thanassis Tsiodras's avatar Thanassis Tsiodras

ASN1SCC files have no business inside functional block code - they break the...

ASN1SCC files have no business inside functional block code - they break the build every time we upgrade ASN1SCC.
parent cc2c2eaa
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
/*
Code automatically generated by asn1scc tool
*/
#include <limits.h>
#include <string.h>
#include <math.h>
#include "dataview-uniq.h"
#if !defined(_MSC_VER) || _MSC_VER >= 1800
void asn1SccT_Int32_Initialize(asn1SccT_Int32* pVal)
{
*pVal = (asn1SccT_Int32) -2147483648LL;
}
#endif
flag asn1SccT_Int32_IsConstraintValid(const asn1SccT_Int32* pVal, int* pErrCode)
{
flag ret = TRUE;
*pErrCode=0;
(void)pVal;
ret = (-2147483648LL <= *pVal && *pVal <= 2147483647LL);
*pErrCode = ret ? 0 : ERR_asn1SccT_Int32;
return ret;
}
#if !defined(_MSC_VER) || _MSC_VER >= 1800
void asn1SccT_UInt32_Initialize(asn1SccT_UInt32* pVal)
{
*pVal = (asn1SccT_UInt32) 0;
}
#endif
flag asn1SccT_UInt32_IsConstraintValid(const asn1SccT_UInt32* pVal, int* pErrCode)
{
flag ret = TRUE;
*pErrCode=0;
(void)pVal;
ret = (*pVal <= 4294967295LL);
*pErrCode = ret ? 0 : ERR_asn1SccT_UInt32;
return ret;
}
#if !defined(_MSC_VER) || _MSC_VER >= 1800
void asn1SccT_Int8_Initialize(asn1SccT_Int8* pVal)
{
*pVal = (asn1SccT_Int8) -128;
}
#endif
flag asn1SccT_Int8_IsConstraintValid(const asn1SccT_Int8* pVal, int* pErrCode)
{
flag ret = TRUE;
*pErrCode=0;
(void)pVal;
ret = (-128 <= *pVal && *pVal <= 127);
*pErrCode = ret ? 0 : ERR_asn1SccT_Int8;
return ret;
}
#if !defined(_MSC_VER) || _MSC_VER >= 1800
void asn1SccT_UInt8_Initialize(asn1SccT_UInt8* pVal)
{
*pVal = (asn1SccT_UInt8) 0;
}
#endif
flag asn1SccT_UInt8_IsConstraintValid(const asn1SccT_UInt8* pVal, int* pErrCode)
{
flag ret = TRUE;
*pErrCode=0;
(void)pVal;
ret = (*pVal <= 255);
*pErrCode = ret ? 0 : ERR_asn1SccT_UInt8;
return ret;
}
#if !defined(_MSC_VER) || _MSC_VER >= 1800
void asn1SccT_Boolean_Initialize(asn1SccT_Boolean* pVal)
{
*pVal = (asn1SccT_Boolean) FALSE;
}
#endif
flag asn1SccT_Boolean_IsConstraintValid(const asn1SccT_Boolean* pVal, int* pErrCode)
{
flag ret = TRUE;
*pErrCode=0;
(void)pVal;
ret = TRUE; *pErrCode = 0;
return ret;
}
#if !defined(_MSC_VER) || _MSC_VER >= 1800
void asn1SccT_INTEGER_Initialize(asn1SccT_INTEGER* pVal)
{
*pVal = (asn1SccT_INTEGER) 0;
}
#endif
flag asn1SccT_INTEGER_IsConstraintValid(const asn1SccT_INTEGER* pVal, int* pErrCode)
{
flag ret = TRUE;
*pErrCode=0;
(void)pVal;
ret = (*pVal <= 255);
*pErrCode = ret ? 0 : ERR_asn1SccT_INTEGER;
return ret;
}
#if !defined(_MSC_VER) || _MSC_VER >= 1800
void asn1SccT_SEQUENCE_Initialize(asn1SccT_SEQUENCE* pVal)
{
*pVal = (asn1SccT_SEQUENCE) {
.x = 0,
.y = 0
};
}
#endif
flag asn1SccT_SEQUENCE_IsConstraintValid(const asn1SccT_SEQUENCE* pVal, int* pErrCode)
{
flag ret = TRUE;
*pErrCode=0;
(void)pVal;
ret = asn1SccT_INTEGER_IsConstraintValid(&pVal->x, pErrCode);
if (ret) {
ret = asn1SccT_INTEGER_IsConstraintValid(&pVal->y, pErrCode);
}
return ret;
}
#ifndef GENERATED_ASN1SCC_DATAVIEW_UNIQ_H
#define GENERATED_ASN1SCC_DATAVIEW_UNIQ_H
/*
Code automatically generated by asn1scc tool
*/
#include "asn1crt.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef asn1SccSint asn1SccT_Int32;
#define asn1SccT_Int32_REQUIRED_BYTES_FOR_ENCODING 4
#define asn1SccT_Int32_REQUIRED_BITS_FOR_ENCODING 32
#define asn1SccT_Int32_REQUIRED_BYTES_FOR_ACN_ENCODING 4
#define asn1SccT_Int32_REQUIRED_BITS_FOR_ACN_ENCODING 32
#define asn1SccT_Int32_REQUIRED_BYTES_FOR_XER_ENCODING 39
void asn1SccT_Int32_Initialize(asn1SccT_Int32* pVal);
flag asn1SccT_Int32_IsConstraintValid(const asn1SccT_Int32* val, int* pErrCode);
#ifndef ERR_asn1SccT_Int32
#define ERR_asn1SccT_Int32 1001 /*(-2147483648 .. 2147483647)*/
#endif
typedef asn1SccUint asn1SccT_UInt32;
#define asn1SccT_UInt32_REQUIRED_BYTES_FOR_ENCODING 4
#define asn1SccT_UInt32_REQUIRED_BITS_FOR_ENCODING 32
#define asn1SccT_UInt32_REQUIRED_BYTES_FOR_ACN_ENCODING 4
#define asn1SccT_UInt32_REQUIRED_BITS_FOR_ACN_ENCODING 32
#define asn1SccT_UInt32_REQUIRED_BYTES_FOR_XER_ENCODING 41
void asn1SccT_UInt32_Initialize(asn1SccT_UInt32* pVal);
flag asn1SccT_UInt32_IsConstraintValid(const asn1SccT_UInt32* val, int* pErrCode);
#ifndef ERR_asn1SccT_UInt32
#define ERR_asn1SccT_UInt32 1002 /*(0 .. 4294967295)*/
#endif
typedef asn1SccSint asn1SccT_Int8;
#define asn1SccT_Int8_REQUIRED_BYTES_FOR_ENCODING 1
#define asn1SccT_Int8_REQUIRED_BITS_FOR_ENCODING 8
#define asn1SccT_Int8_REQUIRED_BYTES_FOR_ACN_ENCODING 1
#define asn1SccT_Int8_REQUIRED_BITS_FOR_ACN_ENCODING 8
#define asn1SccT_Int8_REQUIRED_BYTES_FOR_XER_ENCODING 37
void asn1SccT_Int8_Initialize(asn1SccT_Int8* pVal);
flag asn1SccT_Int8_IsConstraintValid(const asn1SccT_Int8* val, int* pErrCode);
#ifndef ERR_asn1SccT_Int8
#define ERR_asn1SccT_Int8 1003 /*(-128 .. 127)*/
#endif
typedef asn1SccUint asn1SccT_UInt8;
#define asn1SccT_UInt8_REQUIRED_BYTES_FOR_ENCODING 1
#define asn1SccT_UInt8_REQUIRED_BITS_FOR_ENCODING 8
#define asn1SccT_UInt8_REQUIRED_BYTES_FOR_ACN_ENCODING 1
#define asn1SccT_UInt8_REQUIRED_BITS_FOR_ACN_ENCODING 8
#define asn1SccT_UInt8_REQUIRED_BYTES_FOR_XER_ENCODING 39
void asn1SccT_UInt8_Initialize(asn1SccT_UInt8* pVal);
flag asn1SccT_UInt8_IsConstraintValid(const asn1SccT_UInt8* val, int* pErrCode);
#ifndef ERR_asn1SccT_UInt8
#define ERR_asn1SccT_UInt8 1004 /*(0 .. 255)*/
#endif
typedef flag asn1SccT_Boolean;
#define asn1SccT_Boolean_REQUIRED_BYTES_FOR_ENCODING 1
#define asn1SccT_Boolean_REQUIRED_BITS_FOR_ENCODING 1
#define asn1SccT_Boolean_REQUIRED_BYTES_FOR_ACN_ENCODING 1
#define asn1SccT_Boolean_REQUIRED_BITS_FOR_ACN_ENCODING 1
#define asn1SccT_Boolean_REQUIRED_BYTES_FOR_XER_ENCODING 36
void asn1SccT_Boolean_Initialize(asn1SccT_Boolean* pVal);
flag asn1SccT_Boolean_IsConstraintValid(const asn1SccT_Boolean* val, int* pErrCode);
typedef asn1SccUint asn1SccT_INTEGER;
#define asn1SccT_INTEGER_REQUIRED_BYTES_FOR_ENCODING 1
#define asn1SccT_INTEGER_REQUIRED_BITS_FOR_ENCODING 8
#define asn1SccT_INTEGER_REQUIRED_BYTES_FOR_ACN_ENCODING 1
#define asn1SccT_INTEGER_REQUIRED_BITS_FOR_ACN_ENCODING 8
#define asn1SccT_INTEGER_REQUIRED_BYTES_FOR_XER_ENCODING 43
void asn1SccT_INTEGER_Initialize(asn1SccT_INTEGER* pVal);
flag asn1SccT_INTEGER_IsConstraintValid(const asn1SccT_INTEGER* val, int* pErrCode);
#ifndef ERR_asn1SccT_INTEGER
#define ERR_asn1SccT_INTEGER 1005 /*(0 .. 255)*/
#endif
typedef struct {
asn1SccT_INTEGER x;
asn1SccT_INTEGER y;
} asn1SccT_SEQUENCE;
#define asn1SccT_SEQUENCE_REQUIRED_BYTES_FOR_ENCODING 2
#define asn1SccT_SEQUENCE_REQUIRED_BITS_FOR_ENCODING 16
#define asn1SccT_SEQUENCE_REQUIRED_BYTES_FOR_ACN_ENCODING 2
#define asn1SccT_SEQUENCE_REQUIRED_BITS_FOR_ACN_ENCODING 16
#define asn1SccT_SEQUENCE_REQUIRED_BYTES_FOR_XER_ENCODING 79
void asn1SccT_SEQUENCE_Initialize(asn1SccT_SEQUENCE* pVal);
flag asn1SccT_SEQUENCE_IsConstraintValid(const asn1SccT_SEQUENCE* 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
}
#endif
#endif
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment