Commit a0672a83 authored by Vijay C's avatar Vijay C

Merge branch 'Uplift_SIDL_2.1-126' into '3GPP_TTCN_System_Simulator'

Uplifted SIDL 2.1-126 on 3GPP_TTCN_System_Simulator Branch

See merge request firecell/rdsubscription/sequansrd!66
parents 493da9ae 3cc9a5bc
/*
******************************************************************
*
* Module : ACP - Asynchronous Communication Protocol
*
* Purpose : THIS FILE IS AUTOMATICALLY GENERATED !
*
*****************************************************************
*
* Copyright (c) 2014-2021 SEQUANS Communications.
* All rights reserved.
*
* This is confidential and proprietary source code of SEQUANS
* Communications. The use of the present source code and all
* its derived forms is exclusively governed by the restricted
* terms and conditions set forth in the SEQUANS
* Communications' EARLY ADOPTER AGREEMENT and/or LICENCE
* AGREEMENT. The present source code and all its derived
* forms can ONLY and EXCLUSIVELY be used with SEQUANS
* Communications' products. The distribution/sale of the
* present source code and all its derived forms is EXCLUSIVELY
* RESERVED to regular LICENCE holder and otherwise STRICTLY
* PROHIBITED.
*
*****************************************************************
*/
#pragma once
#include "acp.h"
SIDL_BEGIN_C_INTERFACE
SIDL_END_C_INTERFACE
/*
*****************************************************************
*
* Module : ACP TTCN mapper
* Purpose: TTCN to ACP mapper
*
*****************************************************************
*
* Copyright (c) 2019-2021 SEQUANS Communications.
* All rights reserved.
*
* This is confidential and proprietary source code of SEQUANS
* Communications. The use of the present source code and all
* its derived forms is exclusively governed by the restricted
* terms and conditions set forth in the SEQUANS
* Communications' EARLY ADOPTER AGREEMENT and/or LICENCE
* AGREEMENT. The present source code and all its derived
* forms can ONLY and EXCLUSIVELY be used with SEQUANS
* Communications' products. The distribution/sale of the
* present source code and all its derived forms is EXCLUSIVELY
* RESERVED to regular LICENCE holder and otherwise STRICTLY
* PROHIBITED.
*
*****************************************************************
*/
#pragma once
// System includes
#include <TTCN3.hh>
// --- Basic TTCN conversions
template<typename T1, typename T2>
void attcnConvert(T1& dst, const T2& src)
{
dst = src;
}
template<typename T1>
void attcnConvert(T1& dst, const Enum_Type& src)
{
dst = static_cast<T1>(src.as_int());
}
void attcnConvert(ASN_NULL& dst, const bool& src);
void attcnConvert(bool& dst, const ASN_NULL& src);
void attcnConvert(OCTETSTRING_ELEMENT&& dst, const unsigned char& src);
void attcnConvert(unsigned char& dst, const OCTETSTRING_ELEMENT& src);
void attcnConvert(BITSTRING_ELEMENT&& dst, const unsigned char& src);
void attcnConvert(unsigned char& dst, const BITSTRING_ELEMENT& src);
void attcnConvert(CHARSTRING_ELEMENT&& dst, const char& src);
void attcnConvert(char& dst, const CHARSTRING_ELEMENT& src);
// --- SysSrb internal conversions
// Forward declarations
namespace EUTRA__CommonDefs {
class RRC__MSG__Request__Type;
class RRC__MSG__Indication__Type;
} // namespace EUTRA__CommonDefs
class RRC_MSG_Request_Type;
class RRC_MSG_Indication_Type;
void attcnConvert(EUTRA__CommonDefs::RRC__MSG__Request__Type& dst, const RRC_MSG_Request_Type& src);
void attcnConvert(EUTRA__CommonDefs::RRC__MSG__Indication__Type& dst, const RRC_MSG_Indication_Type& src);
void attcnConvert(RRC_MSG_Request_Type& src, const EUTRA__CommonDefs::RRC__MSG__Request__Type& dst);
void attcnConvert(RRC_MSG_Indication_Type& src, const EUTRA__CommonDefs::RRC__MSG__Indication__Type& dst);
// --- NrSysSrb internal conversions
// Forward declarations
namespace NR__CommonDefs {
class NR__RRC__MSG__Request__Type;
class NR__RRC__MSG__Indication__Type;
} // namespace NR__CommonDefs
class NR_RRC_MSG_Request_Type;
class NR_RRC_MSG_Indication_Type;
void attcnConvert(NR__CommonDefs::NR__RRC__MSG__Request__Type& dst, const NR_RRC_MSG_Request_Type& src);
void attcnConvert(NR__CommonDefs::NR__RRC__MSG__Indication__Type& dst, const NR_RRC_MSG_Indication_Type& src);
void attcnConvert(NR_RRC_MSG_Request_Type& src, const NR__CommonDefs::NR__RRC__MSG__Request__Type& dst);
void attcnConvert(NR_RRC_MSG_Indication_Type& src, const NR__CommonDefs::NR__RRC__MSG__Indication__Type& dst);
/*
*****************************************************************
*
* Module : ACP TTCN mapper
* Purpose: TTCN to ACP mapper
*
*****************************************************************
*
* Copyright (c) 2019-2021 SEQUANS Communications.
* All rights reserved.
*
* This is confidential and proprietary source code of SEQUANS
* Communications. The use of the present source code and all
* its derived forms is exclusively governed by the restricted
* terms and conditions set forth in the SEQUANS
* Communications' EARLY ADOPTER AGREEMENT and/or LICENCE
* AGREEMENT. The present source code and all its derived
* forms can ONLY and EXCLUSIVELY be used with SEQUANS
* Communications' products. The distribution/sale of the
* present source code and all its derived forms is EXCLUSIVELY
* RESERVED to regular LICENCE holder and otherwise STRICTLY
* PROHIBITED.
*
*****************************************************************
*/
#pragma once
// System includes
#include <TTCN3.hh>
// --- Basic TTCN conversions
template<typename T1, typename T2>
void attcnConvert(T1& dst, const T2& src)
{
dst = src;
}
template<typename T1>
void attcnConvert(T1& dst, const Enum_Type& src)
{
dst = static_cast<T1>(src.as_int());
}
void attcnConvert(ASN_NULL& dst, const bool& src);
void attcnConvert(bool& dst, const ASN_NULL& src);
void attcnConvert(OCTETSTRING_ELEMENT&& dst, const unsigned char& src);
void attcnConvert(unsigned char& dst, const OCTETSTRING_ELEMENT& src);
void attcnConvert(BITSTRING_ELEMENT&& dst, const unsigned char& src);
void attcnConvert(unsigned char& dst, const BITSTRING_ELEMENT& src);
void attcnConvert(CHARSTRING_ELEMENT&& dst, const char& src);
void attcnConvert(char& dst, const CHARSTRING_ELEMENT& src);
// --- SysSrb internal conversions
// Forward declarations
namespace EUTRA__CommonDefs {
class RRC__MSG__Request__Type;
class RRC__MSG__Indication__Type;
} // namespace EUTRA__CommonDefs
class RRC_MSG_Request_Type;
class RRC_MSG_Indication_Type;
void attcnConvert(EUTRA__CommonDefs::RRC__MSG__Request__Type& dst, const RRC_MSG_Request_Type& src);
void attcnConvert(EUTRA__CommonDefs::RRC__MSG__Indication__Type& dst, const RRC_MSG_Indication_Type& src);
void attcnConvert(RRC_MSG_Request_Type& dst, const EUTRA__CommonDefs::RRC__MSG__Request__Type& src);
void attcnConvert(RRC_MSG_Indication_Type& dst, const EUTRA__CommonDefs::RRC__MSG__Indication__Type& src);
// --- NrSysSrb internal conversions
// Forward declarations
namespace NR__CommonDefs {
class NR__RRC__MSG__Request__Type;
class NR__RRC__MSG__Indication__Type;
} // namespace NR__CommonDefs
class NR_RRC_MSG_Request_Type;
class NR_RRC_MSG_Indication_Type;
void attcnConvert(NR__CommonDefs::NR__RRC__MSG__Request__Type& dst, const NR_RRC_MSG_Request_Type& src);
void attcnConvert(NR__CommonDefs::NR__RRC__MSG__Indication__Type& dst, const NR_RRC_MSG_Indication_Type& src);
void attcnConvert(NR_RRC_MSG_Request_Type& dst, const NR__CommonDefs::NR__RRC__MSG__Request__Type& src);
void attcnConvert(NR_RRC_MSG_Indication_Type& dst, const NR__CommonDefs::NR__RRC__MSG__Indication__Type& src);
/*
*****************************************************************
*
* Module : ACP TTCN mapper
* Purpose: TTCN to ACP mapper
*
*****************************************************************
*
* Copyright (c) 2019-2021 SEQUANS Communications.
* All rights reserved.
*
* This is confidential and proprietary source code of SEQUANS
* Communications. The use of the present source code and all
* its derived forms is exclusively governed by the restricted
* terms and conditions set forth in the SEQUANS
* Communications' EARLY ADOPTER AGREEMENT and/or LICENCE
* AGREEMENT. The present source code and all its derived
* forms can ONLY and EXCLUSIVELY be used with SEQUANS
* Communications' products. The distribution/sale of the
* present source code and all its derived forms is EXCLUSIVELY
* RESERVED to regular LICENCE holder and otherwise STRICTLY
* PROHIBITED.
*
*****************************************************************
*/
// Internal includes
#include "attcn.hh"
void attcnConvert(ASN_NULL& dst, const bool& src)
{
dst = src ? ASN_NULL(ASN_NULL_VALUE) : ASN_NULL();
}
void attcnConvert(bool& dst, const ASN_NULL& src)
{
dst = src.is_value();
}
void attcnConvert(OCTETSTRING_ELEMENT&& dst, const unsigned char& src)
{
dst = OCTETSTRING(1, &src);
}
void attcnConvert(unsigned char& dst, const OCTETSTRING_ELEMENT& src)
{
dst = src.get_octet();
}
void attcnConvert(BITSTRING_ELEMENT&& dst, const unsigned char& src)
{
dst = BITSTRING(1, &src);
}
void attcnConvert(unsigned char& dst, const BITSTRING_ELEMENT& src)
{
dst = src.get_bit() ? 1 : 0;
}
void attcnConvert(CHARSTRING_ELEMENT&& dst, const char& src)
{
dst = CHARSTRING(1, &src);
}
void attcnConvert(char& dst, const CHARSTRING_ELEMENT& src)
{
dst = src.get_char();
}
/*
*****************************************************************
*
* Module : ACP TTCN mapper
* Purpose: TTCN to ACP mapper
*
*****************************************************************
*
* Copyright (c) 2019-2021 SEQUANS Communications.
* All rights reserved.
*
* This is confidential and proprietary source code of SEQUANS
* Communications. The use of the present source code and all
* its derived forms is exclusively governed by the restricted
* terms and conditions set forth in the SEQUANS
* Communications' EARLY ADOPTER AGREEMENT and/or LICENCE
* AGREEMENT. The present source code and all its derived
* forms can ONLY and EXCLUSIVELY be used with SEQUANS
* Communications' products. The distribution/sale of the
* present source code and all its derived forms is EXCLUSIVELY
* RESERVED to regular LICENCE holder and otherwise STRICTLY
* PROHIBITED.
*
*****************************************************************
*/
// Internal includes
#include "attcnConvert.hh"
void attcnConvert(ASN_NULL& dst, const bool& src)
{
dst = src ? ASN_NULL(ASN_NULL_VALUE) : ASN_NULL();
}
void attcnConvert(bool& dst, const ASN_NULL& src)
{
dst = src.is_value();
}
void attcnConvert(OCTETSTRING_ELEMENT&& dst, const unsigned char& src)
{
dst = OCTETSTRING(1, &src);
}
void attcnConvert(unsigned char& dst, const OCTETSTRING_ELEMENT& src)
{
dst = src.get_octet();
}
void attcnConvert(BITSTRING_ELEMENT&& dst, const unsigned char& src)
{
dst = BITSTRING(1, &src);
}
void attcnConvert(unsigned char& dst, const BITSTRING_ELEMENT& src)
{
dst = src.get_bit() ? 1 : 0;
}
void attcnConvert(CHARSTRING_ELEMENT&& dst, const char& src)
{
dst = CHARSTRING(1, &src);
}
void attcnConvert(char& dst, const CHARSTRING_ELEMENT& src)
{
dst = src.get_char();
}
/*
*****************************************************************
*
* Module : ACP TTCN mapper
* Purpose: TTCN to ACP mapper
*
*****************************************************************
*
* Copyright (c) 2019-2021 SEQUANS Communications.
* All rights reserved.
*
* This is confidential and proprietary source code of SEQUANS
* Communications. The use of the present source code and all
* its derived forms is exclusively governed by the restricted
* terms and conditions set forth in the SEQUANS
* Communications' EARLY ADOPTER AGREEMENT and/or LICENCE
* AGREEMENT. The present source code and all its derived
* forms can ONLY and EXCLUSIVELY be used with SEQUANS
* Communications' products. The distribution/sale of the
* present source code and all its derived forms is EXCLUSIVELY
* RESERVED to regular LICENCE holder and otherwise STRICTLY
* PROHIBITED.
*
*****************************************************************
*/
// Internal includes
#include "attcn.hh"
// TTCN includes
#if defined(PROJECT_HAS_RAT_EUTRA)
#include "EUTRA_CommonDefs.hh"
#endif // defined(PROJECT_HAS_RAT_EUTRA)
#if defined(PROJECT_HAS_RAT_NR)
#include "NR_CommonDefs.hh"
#endif // defined(PROJECT_HAS_RAT_NR)
// Internal includes
#if defined(PROJECT_HAS_RAT_EUTRA)
#include "SIDL_NASEMU_EUTRA_SYSTEM_PORT.h"
#endif // defined(PROJECT_HAS_RAT_EUTRA)
#if defined(PROJECT_HAS_RAT_NR)
#include "SIDL_NASEMU_NR_SYSTEM_PORT.h"
#endif // defined(PROJECT_HAS_RAT_NR)
#if defined(PROJECT_HAS_RAT_EUTRA)
void attcnConvert(EUTRA__CommonDefs::RRC__MSG__Request__Type& dst, const RRC_MSG_Request_Type& src)
{
// TODO
}
void attcnConvert(EUTRA__CommonDefs::RRC__MSG__Indication__Type& dst, const RRC_MSG_Indication_Type& src)
{
// TODO
}
void attcnConvert(RRC_MSG_Request_Type& src, const EUTRA__CommonDefs::RRC__MSG__Request__Type& dst)
{
// TODO
}
void attcnConvert(RRC_MSG_Indication_Type& src, const EUTRA__CommonDefs::RRC__MSG__Indication__Type& dst)
{
// TODO
}
#endif // defined(PROJECT_HAS_RAT_EUTRA)
#if defined(PROJECT_HAS_RAT_NR)
void attcnConvert(NR__CommonDefs::NR__RRC__MSG__Request__Type& dst, const NR_RRC_MSG_Request_Type& src)
{
// TODO
}
void attcnConvert(NR__CommonDefs::NR__RRC__MSG__Indication__Type& dst, const NR_RRC_MSG_Indication_Type& src)
{
// TODO
}
void attcnConvert(NR_RRC_MSG_Request_Type& src, const NR__CommonDefs::NR__RRC__MSG__Request__Type& dst)
{
// TODO
}
void attcnConvert(NR_RRC_MSG_Indication_Type& src, const NR__CommonDefs::NR__RRC__MSG__Indication__Type& dst)
{
// TODO
}
#endif // defined(PROJECT_HAS_RAT_NR)
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