libe3 0.6.1
C++ library for E3AP RAN vendor integration
Loading...
Searching...
No Matches
e2sm_dapp.hpp File Reference

E2SM-DAPP information elements and their APER codec (C++ API). More...

#include <array>
#include <cstddef>
#include <cstdint>
#include <string>
#include <variant>
#include <vector>

Go to the source code of this file.

Classes

class  libe3::e2sm_dapp::enumerated< EnumType, Ext >
 Mirrors OCUDU's enumerated<Opts, Ext>: derives from the options struct and converts to its enum. More...
class  libe3::e2sm_dapp::printable_string< LB, UB, Ext, Aligned >
 PrintableString (SIZE(LB..UB)). More...
class  libe3::e2sm_dapp::fixed_octstring< N, Aligned >
 OCTET STRING (SIZE(N)). More...
class  libe3::e2sm_dapp::bounded_octstring< LB, UB, Aligned >
 OCTET STRING (SIZE(LB..UB)). More...
class  libe3::e2sm_dapp::unbounded_octstring< Aligned >
 OCTET STRING without a size constraint. More...
class  libe3::e2sm_dapp::dyn_array< T >
 SEQUENCE OF with a size constraint known only at pack time. More...
class  libe3::e2sm_dapp::bounded_array< T, UB >
 SEQUENCE OF with an upper bound UB. More...
struct  libe3::e2sm_dapp::ran_function_name_s
 Name, OID and description of the RAN function (ASN.1 RANfunction-Name ::= SEQUENCE). More...
struct  libe3::e2sm_dapp::e2sm_dapp_event_trigger_format1_s
 Event trigger format 1: no fields, the RAN reports when it has something to report (ASN.1 E2SM-DAPP-EventTrigger-Format1 ::= SEQUENCE {}). More...
struct  libe3::e2sm_dapp::e2sm_dapp_event_trigger_s
 Event trigger definition of a subscription (ASN.1 E2SM-DAPP-EventTrigger ::= SEQUENCE (top-level)). More...
struct  libe3::e2sm_dapp::e2sm_dapp_event_trigger_s::ric_event_trigger_formats_c_
 Formats of the event trigger. More...
struct  libe3::e2sm_dapp::e2sm_dapp_event_trigger_s::ric_event_trigger_formats_c_::types_opts
 Alternatives of the CHOICE, with their ASN.1 names and numbers. More...
struct  libe3::e2sm_dapp::e2sm_dapp_action_definition_format1_s
 Action definition format 1: no fields (ASN.1 E2SM-DAPP-ActionDefinition-Format1 ::= SEQUENCE {}). More...
struct  libe3::e2sm_dapp::e2sm_dapp_action_definition_s
 Action definition of a subscription, which selects the report style (ASN.1 E2SM-DAPP-ActionDefinition ::= SEQUENCE (top-level)). More...
struct  libe3::e2sm_dapp::e2sm_dapp_action_definition_s::action_definition_formats_c_
 Formats of the action definition. More...
struct  libe3::e2sm_dapp::e2sm_dapp_action_definition_s::action_definition_formats_c_::types_opts
 Alternatives of the CHOICE, with their ASN.1 names and numbers. More...
struct  libe3::e2sm_dapp::dapp_e3_subscription_item_s
 The E3 RAN functions one dApp has subscribed to (ASN.1 DAppE3Subscription-Item ::= SEQUENCE). More...
struct  libe3::e2sm_dapp::ran_function_definition_report_item_s
 One report style of the RAN function definition (ASN.1 RANFunctionDefinition-Report-Item ::= SEQUENCE). More...
struct  libe3::e2sm_dapp::ran_function_definition_ctrl_item_s
 One control style of the RAN function definition (ASN.1 RANFunctionDefinition-Control-Item ::= SEQUENCE). More...
struct  libe3::e2sm_dapp::ran_function_definition_event_trigger_s
 Event trigger section of the RAN function definition: empty, its presence says the function has an event trigger (ASN.1 RANFunctionDefinition-EventTrigger ::= SEQUENCE). More...
struct  libe3::e2sm_dapp::ran_function_definition_report_s
 Report section of the RAN function definition (ASN.1 RANFunctionDefinition-Report ::= SEQUENCE). More...
struct  libe3::e2sm_dapp::ran_function_definition_ctrl_s
 Control section of the RAN function definition (ASN.1 RANFunctionDefinition-Control ::= SEQUENCE). More...
struct  libe3::e2sm_dapp::e2sm_dapp_ran_function_definition_s
 RAN function definition, announced in E2 Setup and RIC Service Update (ASN.1 E2SM-DAPP-RANFunctionDefinition ::= SEQUENCE (top-level)). More...
struct  libe3::e2sm_dapp::e2sm_dapp_ind_hdr_format1_s
 Indication header format 1: the header of a dApp report (ASN.1 E2SM-DAPP-IndicationHeader-Format1 ::= SEQUENCE). More...
struct  libe3::e2sm_dapp::e2sm_dapp_ind_hdr_format2_s
 Indication header format 2: the header of a subscription map (ASN.1 E2SM-DAPP-IndicationHeader-Format2 ::= SEQUENCE). More...
struct  libe3::e2sm_dapp::e2sm_dapp_ind_hdr_s
 Indication header (ASN.1 E2SM-DAPP-IndicationHeader ::= SEQUENCE (top-level)). More...
struct  libe3::e2sm_dapp::e2sm_dapp_ind_hdr_s::ric_ind_hdr_formats_c_
 Formats of the indication header. More...
struct  libe3::e2sm_dapp::e2sm_dapp_ind_hdr_s::ric_ind_hdr_formats_c_::types_opts
 Alternatives of the CHOICE, with their ASN.1 names and numbers. More...
struct  libe3::e2sm_dapp::e2sm_dapp_ind_msg_format1_s
 Indication message format 1: the dApp report payload (ASN.1 E2SM-DAPP-IndicationMessage-Format1 ::= SEQUENCE). More...
struct  libe3::e2sm_dapp::e2sm_dapp_ind_msg_format2_s
 Indication message format 2: the dApp E3 subscription map (ASN.1 E2SM-DAPP-IndicationMessage-Format2 ::= SEQUENCE). More...
struct  libe3::e2sm_dapp::e2sm_dapp_ind_msg_s
 Indication message (ASN.1 E2SM-DAPP-IndicationMessage ::= SEQUENCE (top-level)). More...
struct  libe3::e2sm_dapp::e2sm_dapp_ind_msg_s::ric_ind_msg_formats_c_
 Formats of the indication message. More...
struct  libe3::e2sm_dapp::e2sm_dapp_ind_msg_s::ric_ind_msg_formats_c_::types_opts
 Alternatives of the CHOICE, with their ASN.1 names and numbers. More...
struct  libe3::e2sm_dapp::e2sm_dapp_ctrl_hdr_format1_s
 Control header format 1: where a control goes (ASN.1 E2SM-DAPP-ControlHeader-Format1 ::= SEQUENCE). More...
struct  libe3::e2sm_dapp::e2sm_dapp_ctrl_hdr_s
 Control header (ASN.1 E2SM-DAPP-ControlHeader ::= SEQUENCE (top-level)). More...
struct  libe3::e2sm_dapp::e2sm_dapp_ctrl_hdr_s::ric_ctrl_hdr_formats_c_
 Formats of the control header. More...
struct  libe3::e2sm_dapp::e2sm_dapp_ctrl_hdr_s::ric_ctrl_hdr_formats_c_::types_opts
 Alternatives of the CHOICE, with their ASN.1 names and numbers. More...
struct  libe3::e2sm_dapp::e2sm_dapp_ctrl_msg_format1_s
 Control message format 1: the xApp control payload (ASN.1 E2SM-DAPP-ControlMessage-Format1 ::= SEQUENCE). More...
struct  libe3::e2sm_dapp::e2sm_dapp_ctrl_msg_s
 Control message (ASN.1 E2SM-DAPP-ControlMessage ::= SEQUENCE (top-level)). More...
struct  libe3::e2sm_dapp::e2sm_dapp_ctrl_msg_s::ric_ctrl_msg_formats_c_
 Formats of the control message. More...
struct  libe3::e2sm_dapp::e2sm_dapp_ctrl_msg_s::ric_ctrl_msg_formats_c_::types_opts
 Alternatives of the CHOICE, with their ASN.1 names and numbers. More...
struct  libe3::e2sm_dapp::e2sm_dapp_ctrl_outcome_format1_s
 Control outcome format 1: the answer to a control (ASN.1 E2SM-DAPP-ControlOutcome-Format1 ::= SEQUENCE). More...
struct  libe3::e2sm_dapp::e2sm_dapp_ctrl_outcome_s
 Control outcome (ASN.1 E2SM-DAPP-ControlOutcome ::= SEQUENCE (top-level)). More...
struct  libe3::e2sm_dapp::e2sm_dapp_ctrl_outcome_s::ric_ctrl_outcome_formats_c_
 Formats of the control outcome. More...
struct  libe3::e2sm_dapp::e2sm_dapp_ctrl_outcome_s::ric_ctrl_outcome_formats_c_::types_opts
 Alternatives of the CHOICE, with their ASN.1 names and numbers. More...

Namespaces

namespace  libe3
namespace  libe3::e2sm_dapp

Macros

#define LIBE3_E2SM_DAPP_NEQ(T)

Typedefs

using libe3::e2sm_dapp::dapp_e3_subscription_list_l = dyn_array<dapp_e3_subscription_item_s>
 The dApp E3 subscription map, 0 to 256 items (ASN.1 DAppE3Subscription-List ::= SEQUENCE (SIZE (0..256)) OF DAppE3Subscription-Item).

Enumerations

enum  libe3::e2sm_dapp::asn_code : int { libe3::e2sm_dapp::ASN_ERROR_ENCODE_FAIL = -2 , libe3::e2sm_dapp::ASN_ERROR_DECODE_FAIL = -1 , libe3::e2sm_dapp::ASN_SUCCESS = 0 }

Variables

constexpr int64_t libe3::e2sm_dapp::max_e2sm_dapp_ind_msg_size = 32768
 Largest indication message data, in octets.
constexpr int64_t libe3::e2sm_dapp::max_e2sm_dapp_ctrl_msg_size = 32768
 Largest control message data, in octets.
constexpr int64_t libe3::e2sm_dapp::maxnoof_dapps = 256
 Most dApps in a dApp E3 subscription list.
constexpr int64_t libe3::e2sm_dapp::maxnoof_subscribed_e3_ran_functions = 64
 Most E3 RAN functions one dApp can subscribe to.
constexpr int64_t libe3::e2sm_dapp::maxnoof_dapp_report_styles = 2
 Most report styles in a RAN function definition.
constexpr int64_t libe3::e2sm_dapp::maxnoof_dapp_control_styles = 1
 Most control styles in a RAN function definition.

Detailed Description

E2SM-DAPP information elements and their APER codec (C++ API).

E2SM-DAPP is the E2 service model (RAN function id 255, OID 1.3.6.1.4.1.53148.1.1.255.3) that carries dApp traffic between an E2 node and an xApp. Its grammar ships with libe3 as messages/asn1/e2sm_dapp/V1/e2sm_dapp-1.0.0.asn, and the specification is in docs/e2sm-dapp/.

The type and field names in this header deliberately mirror OCUDU's asn1::e2sm_dapp (include/ocudu/asn1/e2sm/e2sm_dapp.h), so that code building or reading a message looks the same in both stacks. The codec behind it is asn1c here and OCUDU's own ASN.1 runtime there; the two are checked against each other with golden vectors. Differences from the OCUDU interface:

  • only the eight top-level types (see below) have pack and unpack, and they work on std::vector<uint8_t> instead of bit_ref;
  • the ASN.1 helper templates (printable_string, fixed_octstring, ...) are thin wrappers over std::string and std::vector;
  • there is no to_json;
  • operator== is provided on every type.

Top-level types, each the content of an E2AP OCTET STRING: e2sm_dapp_event_trigger_s, e2sm_dapp_action_definition_s, e2sm_dapp_ind_hdr_s, e2sm_dapp_ind_msg_s, e2sm_dapp_ctrl_hdr_s, e2sm_dapp_ctrl_msg_s, e2sm_dapp_ctrl_outcome_s and e2sm_dapp_ran_function_definition_s.

Built only when LIBE3_ENABLE_E2SM_DAPP is on (it needs LIBE3_ENABLE_ASN1).

SPDX-FileCopyrightText: Copyright (c) 2026 Northeastern University SPDX-License-Identifier: Apache-2.0

Definition in file e2sm_dapp.hpp.

Macro Definition Documentation

◆ LIBE3_E2SM_DAPP_NEQ

#define LIBE3_E2SM_DAPP_NEQ ( T)
Value:
bool operator!=(const T& o) const { return !(*this == o); }

Defines operator!= as the negation of operator==.

Parameters
Tthe type that has an operator==

Definition at line 163 of file e2sm_dapp.hpp.