libe3 0.6.1
C++ library for E3AP RAN vendor integration
Loading...
Searching...
No Matches
e2sm_dapp_c.h
Go to the documentation of this file.
1/**
2 * @file e2sm_dapp_c.h
3 * @brief E2SM-DAPP information elements and their APER codec (C API).
4 *
5 * The C counterpart of @ref e2sm_dapp.hpp, for RAN stacks written in C (flexric,
6 * and any stack that links libe3 from C). The structs carry the same information
7 * as the C++ types, with one change: every OPTIONAL field has an explicit
8 * `has_*` flag, and 0 is an ordinary value, never a stand-in for "absent".
9 *
10 * Ownership:
11 * - Inputs to `libe3_e2sm_dapp_encode_*` belong to the caller and are only read.
12 * - `libe3_e2sm_dapp_encode_*` allocates `out->data`; release it with
13 * @ref libe3_e2sm_dapp_bytes_free.
14 * - `libe3_e2sm_dapp_decode_*` allocates every pointer inside `*out`; release the
15 * whole struct with the matching `libe3_e2sm_dapp_free_*`. On failure `*out` is
16 * zeroed and nothing needs freeing.
17 * - Every `free` function zeroes the struct, so freeing twice is harmless.
18 *
19 * Return codes are the values of @ref e3_error_t. They are 0 on success, and
20 * E3_INVALID_PARAM, E3_ENCODE_FAILED, E3_DECODE_FAILED or E3_SM_ERROR_MEMORY on failure.
21 *
22 * Built only when LIBE3_ENABLE_E2SM_DAPP is on (it needs LIBE3_ENABLE_ASN1).
23 *
24 * SPDX-FileCopyrightText: Copyright (c) 2026 Northeastern University
25 * SPDX-License-Identifier: Apache-2.0
26 */
27#ifndef LIBE3_E2SM_DAPP_C_H
28#define LIBE3_E2SM_DAPP_C_H
29
30#include <stdbool.h>
31#include <stddef.h>
32#include <stdint.h>
33
34#include "libe3/error_codes.h"
35
36#ifdef __cplusplus
37extern "C" {
38#endif
39
40/** Heap bytes: an OCTET STRING, a PrintableString (not NUL-terminated), or an encoded PDU. */
41typedef struct {
42 uint8_t* data; ///< The bytes, heap allocated
43 size_t len; ///< Number of bytes in `data`
45
46/** Release `b->data` and zero `*b`.
47 * @param b bytes to release, may be NULL */
49
50/* ---- dApp E3 subscription list (DAppE3Subscription-List, up to 256 items) ---- */
51
52/** The E3 RAN functions one dApp has subscribed to. */
53typedef struct {
54 uint32_t dapp_id; ///< The dApp
55 size_t n_ran_functions; /**< 1..64 when encoding */
56 uint32_t* ran_functions; /**< SubscribedE3RANFunction-ID values */
58
59/** The dApp E3 subscription map. */
60typedef struct {
61 size_t n_items; /**< 0..256 */
62 libe3_e2sm_dapp_sub_item_t* items; ///< Array of `n_items` subscription items
64
65/* ---- event trigger ---- */
66
67/** Formats of the event trigger. */
71
72/** Event trigger definition of a subscription. */
73typedef struct {
74 libe3_e2sm_dapp_event_trigger_format_e format; /**< format 1 carries no fields */
76
77/* ---- action definition ---- */
78
79/** Formats of the action definition. */
83
84/** Action definition of a subscription, which selects the report style. */
85typedef struct {
86 libe3_e2sm_dapp_action_definition_format_e format; /**< format 1 carries no fields */
87 int64_t ric_style_type; ///< Report style the subscription selects (1 or 2); it selects the indication formats
89
90/* ---- indication header ---- */
91
92/** Formats of the ind hdr. */
97
98/** Indication header format 1: the header of a dApp report. */
99typedef struct {
100 uint32_t ran_function_id; ///< E3 RAN function id of the report, not the E2 RAN function id
101 uint32_t dapp_id; ///< The dApp that sent the report
102 uint8_t node_type; ///< Type of the reporting node (0 to 255)
103 uint8_t node_plmn_id[3]; ///< PLMN id of the node, 3 octets
104 uint32_t node_nb_id; ///< gNB id of the node
105 bool has_node_cu_du_id; ///< true when `node_cu_du_id` is present
106 uint32_t node_cu_du_id; ///< CU or DU id inside the node
107 bool has_timestamp; ///< true when `timestamp` is present
108 int64_t timestamp; /**< ns since the Unix epoch, CLOCK_REALTIME */
109 bool has_sequence_id; ///< true when `sequence_id` is present
110 int64_t sequence_id; ///< Correlation id of the dApp for this report, copied from the E3 report
112
113/** Indication header format 2: the header of a subscription map. */
114typedef struct {
115 uint8_t node_type; ///< Type of the reporting node (0 to 255)
116 uint8_t node_plmn_id[3]; ///< PLMN id of the node, 3 octets
117 uint32_t node_nb_id; ///< gNB id of the node
118 bool has_node_cu_du_id; ///< true when `node_cu_du_id` is present
119 uint32_t node_cu_du_id; ///< CU or DU id inside the node
120 bool has_timestamp; ///< true when `timestamp` is present
121 int64_t timestamp; ///< When the RAN built the indication, in nanoseconds on its realtime clock
122 bool has_sequence_id; ///< true when `sequence_id` is present
123 int64_t sequence_id; ///< Correlation id; a subscription map has no procedure, so a RAN leaves it absent
125
126/** Indication header. */
127typedef struct {
129 libe3_e2sm_dapp_ind_hdr_format1_t frmt_1; /**< valid when format == FORMAT_1 */
130 libe3_e2sm_dapp_ind_hdr_format2_t frmt_2; /**< valid when format == FORMAT_2 */
132
133/* ---- indication message ---- */
134
135/** Formats of the ind msg. */
140
141/** Indication message format 1: the dApp report payload. */
142typedef struct {
143 libe3_e2sm_dapp_bytes_t data; /**< 1..32768 bytes; the opaque E3 payload. data-size is len. */
145
146/** Indication message format 2: the dApp E3 subscription map. */
147typedef struct {
148 libe3_e2sm_dapp_sub_list_t dapp_e3_subscriptions; ///< Current dApp E3 subscription map; can be empty
150
151/** Indication message. */
152typedef struct {
154 libe3_e2sm_dapp_ind_msg_format1_t frmt_1; ///< Content when `format` is FORMAT_1
155 libe3_e2sm_dapp_ind_msg_format2_t frmt_2; ///< Content when `format` is FORMAT_2
157
158/* ---- control header ---- */
159
160/** Formats of the ctrl hdr. */
164
165/** Control header, format 1: where a control goes. */
166typedef struct {
168 uint32_t ran_function_id; ///< E3 RAN function id the control is for
169 uint32_t dapp_id; ///< The dApp that is the target of the control
170 bool has_timestamp; ///< true when `timestamp` is present
171 int64_t timestamp; ///< When the xApp built the control, in nanoseconds on the realtime clock of its host
172 bool has_sequence_id; ///< true when `sequence_id` is present
173 int64_t sequence_id; ///< Id of the procedure, echoed from the indication header; absent or 0 means the RAN cannot defer the acknowledge
175
176/* ---- control message ---- */
177
178/** Formats of the ctrl msg. */
182
183/** Control message, format 1: the xApp control payload. */
184typedef struct {
186 libe3_e2sm_dapp_bytes_t data; /**< 1..32768 bytes; the opaque E3 payload. data-size is len. */
188
189/* ---- control outcome ---- */
190
191/** Formats of the ctrl outcome. */
195
196/** Control outcome, format 1: the answer to a control. */
197typedef struct {
199 bool has_timestamp; ///< true when `timestamp` is present
200 int64_t timestamp; ///< When the RAN built the outcome, in nanoseconds on its realtime clock
201 bool has_sequence_id; ///< true when `sequence_id` is present
202 int64_t sequence_id; ///< Procedure this outcome answers, copied from the control header
203 bool has_e3_control_outcome; ///< true when `e3_control_outcome` is present
204 libe3_e2sm_dapp_bytes_t e3_control_outcome; /**< opaque; decoded by the SM named in the control's ran-function-id */
206
207/* ---- RAN function definition ---- */
208
209/** One report style of the RAN function definition. */
210typedef struct {
211 int64_t report_style_type; ///< Report style number (1 or 2)
212 libe3_e2sm_dapp_bytes_t name; /**< PrintableString, 1..150 */
213 int64_t ind_hdr_format_type; ///< Indication header format the style produces
214 int64_t ind_msg_format_type; ///< Indication message format the style produces
215 bool has_dapp_e3_subscriptions; ///< true when `dapp_e3_subscriptions` is present
218
219/** One control style of the RAN function definition. */
220typedef struct {
221 int64_t ctrl_style_type; ///< Control style number (1)
222 libe3_e2sm_dapp_bytes_t name; /**< PrintableString, 1..150 */
223 int64_t ctrl_hdr_format_type; ///< Control header format the style uses
224 int64_t ctrl_msg_format_type; ///< Control message format the style uses
225 int64_t ctrl_outcome_format_type; ///< Control outcome format the style uses
226 bool has_dapp_e3_subscriptions; ///< true when `dapp_e3_subscriptions` is present
229
230/** Name, OID and description of the RAN function. */
231typedef struct {
232 libe3_e2sm_dapp_bytes_t short_name; /**< PrintableString, 1..150 */
233 libe3_e2sm_dapp_bytes_t e2sm_oid; /**< PrintableString, 1..1000 */
234 libe3_e2sm_dapp_bytes_t description; /**< PrintableString, 1..150 */
235 bool has_instance; ///< true when `instance` is present
236 int64_t instance; ///< Instance number; not used, a sender shall not set it
238
239/** RAN function definition, announced in E2 Setup and RIC Service Update. */
240typedef struct {
241 libe3_e2sm_dapp_ran_function_name_t name; ///< Name of the RAN function
242 bool has_event_trigger; /**< the event trigger item carries no fields */
243 bool has_report; ///< true when the report section is present
244 size_t n_report_styles; /**< 1..2 when has_report */
245 libe3_e2sm_dapp_report_style_t* report_styles; ///< Array of `n_report_styles` report styles
246 bool has_ctrl; ///< true when the control section is present
247 size_t n_ctrl_styles; /**< 1 when has_ctrl */
248 libe3_e2sm_dapp_ctrl_style_t* ctrl_styles; ///< Array of `n_ctrl_styles` control styles
250
251/* ---- codec ---- */
252
253/** Encode a event trigger as APER.
254 * @param in value to encode, only read
255 * @param out receives the bytes; release them with libe3_e2sm_dapp_bytes_free()
256 * @return 0 on success, an e3_error_t on failure */
258/** Decode a event trigger from APER bytes.
259 * @param buf bytes to decode
260 * @param len number of bytes
261 * @param out receives the value; release it with libe3_e2sm_dapp_free_event_trigger(). Zeroed on failure.
262 * @return 0 on success, an e3_error_t on failure */
264/** Release everything a decode of a event trigger allocated, and zero the struct. Freeing twice is harmless.
265 * @param v value to release, may be NULL */
267
268/** Encode a action definition as APER.
269 * @param in value to encode, only read
270 * @param out receives the bytes; release them with libe3_e2sm_dapp_bytes_free()
271 * @return 0 on success, an e3_error_t on failure */
273/** Decode a action definition from APER bytes.
274 * @param buf bytes to decode
275 * @param len number of bytes
276 * @param out receives the value; release it with libe3_e2sm_dapp_free_action_definition(). Zeroed on failure.
277 * @return 0 on success, an e3_error_t on failure */
279/** Release everything a decode of a action definition allocated, and zero the struct. Freeing twice is harmless.
280 * @param v value to release, may be NULL */
282
283/** Encode a indication header as APER.
284 * @param in value to encode, only read
285 * @param out receives the bytes; release them with libe3_e2sm_dapp_bytes_free()
286 * @return 0 on success, an e3_error_t on failure */
288/** Decode a indication header from APER bytes.
289 * @param buf bytes to decode
290 * @param len number of bytes
291 * @param out receives the value; release it with libe3_e2sm_dapp_free_ind_hdr(). Zeroed on failure.
292 * @return 0 on success, an e3_error_t on failure */
293e3_error_t libe3_e2sm_dapp_decode_ind_hdr(const uint8_t* buf, size_t len, libe3_e2sm_dapp_ind_hdr_t* out);
294/** Release everything a decode of a indication header allocated, and zero the struct. Freeing twice is harmless.
295 * @param v value to release, may be NULL */
297
298/** Encode a indication message as APER.
299 * @param in value to encode, only read
300 * @param out receives the bytes; release them with libe3_e2sm_dapp_bytes_free()
301 * @return 0 on success, an e3_error_t on failure */
303/** Decode a indication message from APER bytes.
304 * @param buf bytes to decode
305 * @param len number of bytes
306 * @param out receives the value; release it with libe3_e2sm_dapp_free_ind_msg(). Zeroed on failure.
307 * @return 0 on success, an e3_error_t on failure */
308e3_error_t libe3_e2sm_dapp_decode_ind_msg(const uint8_t* buf, size_t len, libe3_e2sm_dapp_ind_msg_t* out);
309/** Release everything a decode of a indication message allocated, and zero the struct. Freeing twice is harmless.
310 * @param v value to release, may be NULL */
312
313/** Encode a control header as APER.
314 * @param in value to encode, only read
315 * @param out receives the bytes; release them with libe3_e2sm_dapp_bytes_free()
316 * @return 0 on success, an e3_error_t on failure */
318/** Decode a control header from APER bytes.
319 * @param buf bytes to decode
320 * @param len number of bytes
321 * @param out receives the value; release it with libe3_e2sm_dapp_free_ctrl_hdr(). Zeroed on failure.
322 * @return 0 on success, an e3_error_t on failure */
323e3_error_t libe3_e2sm_dapp_decode_ctrl_hdr(const uint8_t* buf, size_t len, libe3_e2sm_dapp_ctrl_hdr_t* out);
324/** Release everything a decode of a control header allocated, and zero the struct. Freeing twice is harmless.
325 * @param v value to release, may be NULL */
327
328/** Encode a control message as APER.
329 * @param in value to encode, only read
330 * @param out receives the bytes; release them with libe3_e2sm_dapp_bytes_free()
331 * @return 0 on success, an e3_error_t on failure */
333/** Decode a control message from APER bytes.
334 * @param buf bytes to decode
335 * @param len number of bytes
336 * @param out receives the value; release it with libe3_e2sm_dapp_free_ctrl_msg(). Zeroed on failure.
337 * @return 0 on success, an e3_error_t on failure */
338e3_error_t libe3_e2sm_dapp_decode_ctrl_msg(const uint8_t* buf, size_t len, libe3_e2sm_dapp_ctrl_msg_t* out);
339/** Release everything a decode of a control message allocated, and zero the struct. Freeing twice is harmless.
340 * @param v value to release, may be NULL */
342
343/** Encode a control outcome as APER.
344 * @param in value to encode, only read
345 * @param out receives the bytes; release them with libe3_e2sm_dapp_bytes_free()
346 * @return 0 on success, an e3_error_t on failure */
348/** Decode a control outcome from APER bytes.
349 * @param buf bytes to decode
350 * @param len number of bytes
351 * @param out receives the value; release it with libe3_e2sm_dapp_free_ctrl_outcome(). Zeroed on failure.
352 * @return 0 on success, an e3_error_t on failure */
354/** Release everything a decode of a control outcome allocated, and zero the struct. Freeing twice is harmless.
355 * @param v value to release, may be NULL */
357
358/** Encode a RAN function definition as APER.
359 * @param in value to encode, only read
360 * @param out receives the bytes; release them with libe3_e2sm_dapp_bytes_free()
361 * @return 0 on success, an e3_error_t on failure */
363/** Decode a RAN function definition from APER bytes.
364 * @param buf bytes to decode
365 * @param len number of bytes
366 * @param out receives the value; release it with libe3_e2sm_dapp_free_ran_function_definition(). Zeroed on failure.
367 * @return 0 on success, an e3_error_t on failure */
369/** Release everything a decode of a RAN function definition allocated, and zero the struct. Freeing twice is harmless.
370 * @param v value to release, may be NULL */
372
373#ifdef __cplusplus
374}
375#endif
376
377#endif /* LIBE3_E2SM_DAPP_C_H */
e3_error_t libe3_e2sm_dapp_decode_ctrl_outcome(const uint8_t *buf, size_t len, libe3_e2sm_dapp_ctrl_outcome_t *out)
libe3_e2sm_dapp_event_trigger_format_e
Definition e2sm_dapp_c.h:68
@ LIBE3_E2SM_DAPP_EVENT_TRIGGER_FORMAT_1
Format 1.
Definition e2sm_dapp_c.h:69
e3_error_t libe3_e2sm_dapp_encode_ctrl_hdr(const libe3_e2sm_dapp_ctrl_hdr_t *in, libe3_e2sm_dapp_bytes_t *out)
libe3_e2sm_dapp_ctrl_outcome_format_e
@ LIBE3_E2SM_DAPP_CTRL_OUTCOME_FORMAT_1
Format 1.
e3_error_t libe3_e2sm_dapp_decode_ctrl_hdr(const uint8_t *buf, size_t len, libe3_e2sm_dapp_ctrl_hdr_t *out)
e3_error_t libe3_e2sm_dapp_encode_ind_msg(const libe3_e2sm_dapp_ind_msg_t *in, libe3_e2sm_dapp_bytes_t *out)
e3_error_t libe3_e2sm_dapp_encode_ctrl_outcome(const libe3_e2sm_dapp_ctrl_outcome_t *in, libe3_e2sm_dapp_bytes_t *out)
e3_error_t libe3_e2sm_dapp_encode_action_definition(const libe3_e2sm_dapp_action_definition_t *in, libe3_e2sm_dapp_bytes_t *out)
void libe3_e2sm_dapp_free_event_trigger(libe3_e2sm_dapp_event_trigger_t *v)
e3_error_t libe3_e2sm_dapp_encode_event_trigger(const libe3_e2sm_dapp_event_trigger_t *in, libe3_e2sm_dapp_bytes_t *out)
e3_error_t libe3_e2sm_dapp_decode_action_definition(const uint8_t *buf, size_t len, libe3_e2sm_dapp_action_definition_t *out)
void libe3_e2sm_dapp_free_ctrl_outcome(libe3_e2sm_dapp_ctrl_outcome_t *v)
e3_error_t libe3_e2sm_dapp_decode_ctrl_msg(const uint8_t *buf, size_t len, libe3_e2sm_dapp_ctrl_msg_t *out)
void libe3_e2sm_dapp_free_ran_function_definition(libe3_e2sm_dapp_ran_function_definition_t *v)
void libe3_e2sm_dapp_free_ind_msg(libe3_e2sm_dapp_ind_msg_t *v)
e3_error_t libe3_e2sm_dapp_encode_ctrl_msg(const libe3_e2sm_dapp_ctrl_msg_t *in, libe3_e2sm_dapp_bytes_t *out)
e3_error_t libe3_e2sm_dapp_decode_ind_hdr(const uint8_t *buf, size_t len, libe3_e2sm_dapp_ind_hdr_t *out)
e3_error_t libe3_e2sm_dapp_encode_ind_hdr(const libe3_e2sm_dapp_ind_hdr_t *in, libe3_e2sm_dapp_bytes_t *out)
libe3_e2sm_dapp_ctrl_hdr_format_e
@ LIBE3_E2SM_DAPP_CTRL_HDR_FORMAT_1
Format 1.
e3_error_t libe3_e2sm_dapp_decode_event_trigger(const uint8_t *buf, size_t len, libe3_e2sm_dapp_event_trigger_t *out)
void libe3_e2sm_dapp_free_ctrl_msg(libe3_e2sm_dapp_ctrl_msg_t *v)
e3_error_t libe3_e2sm_dapp_decode_ind_msg(const uint8_t *buf, size_t len, libe3_e2sm_dapp_ind_msg_t *out)
void libe3_e2sm_dapp_bytes_free(libe3_e2sm_dapp_bytes_t *b)
void libe3_e2sm_dapp_free_ctrl_hdr(libe3_e2sm_dapp_ctrl_hdr_t *v)
libe3_e2sm_dapp_ind_hdr_format_e
Definition e2sm_dapp_c.h:93
@ LIBE3_E2SM_DAPP_IND_HDR_FORMAT_2
Format 2.
Definition e2sm_dapp_c.h:95
@ LIBE3_E2SM_DAPP_IND_HDR_FORMAT_1
Format 1.
Definition e2sm_dapp_c.h:94
libe3_e2sm_dapp_ctrl_msg_format_e
@ LIBE3_E2SM_DAPP_CTRL_MSG_FORMAT_1
Format 1.
libe3_e2sm_dapp_ind_msg_format_e
@ LIBE3_E2SM_DAPP_IND_MSG_FORMAT_1
Format 1.
@ LIBE3_E2SM_DAPP_IND_MSG_FORMAT_2
Format 2.
e3_error_t libe3_e2sm_dapp_decode_ran_function_definition(const uint8_t *buf, size_t len, libe3_e2sm_dapp_ran_function_definition_t *out)
void libe3_e2sm_dapp_free_action_definition(libe3_e2sm_dapp_action_definition_t *v)
void libe3_e2sm_dapp_free_ind_hdr(libe3_e2sm_dapp_ind_hdr_t *v)
libe3_e2sm_dapp_action_definition_format_e
Definition e2sm_dapp_c.h:80
@ LIBE3_E2SM_DAPP_ACTION_DEFINITION_FORMAT_1
Format 1.
Definition e2sm_dapp_c.h:81
e3_error_t libe3_e2sm_dapp_encode_ran_function_definition(const libe3_e2sm_dapp_ran_function_definition_t *in, libe3_e2sm_dapp_bytes_t *out)
libe3 error codes - shared C/C++ definitions
int e3_error_t
C error type alias.
int64_t ric_style_type
Report style the subscription selects (1 or 2); it selects the indication formats.
Definition e2sm_dapp_c.h:87
libe3_e2sm_dapp_action_definition_format_e format
Definition e2sm_dapp_c.h:86
uint8_t * data
The bytes, heap allocated.
Definition e2sm_dapp_c.h:42
size_t len
Number of bytes in data.
Definition e2sm_dapp_c.h:43
uint32_t ran_function_id
E3 RAN function id the control is for.
uint32_t dapp_id
The dApp that is the target of the control.
int64_t timestamp
When the xApp built the control, in nanoseconds on the realtime clock of its host.
bool has_sequence_id
true when sequence_id is present
bool has_timestamp
true when timestamp is present
int64_t sequence_id
Id of the procedure, echoed from the indication header; absent or 0 means the RAN cannot defer the ac...
libe3_e2sm_dapp_ctrl_hdr_format_e format
Selected format.
libe3_e2sm_dapp_ctrl_msg_format_e format
Selected format.
libe3_e2sm_dapp_bytes_t data
bool has_e3_control_outcome
true when e3_control_outcome is present
int64_t sequence_id
Procedure this outcome answers, copied from the control header.
libe3_e2sm_dapp_ctrl_outcome_format_e format
Selected format.
libe3_e2sm_dapp_bytes_t e3_control_outcome
bool has_timestamp
true when timestamp is present
bool has_sequence_id
true when sequence_id is present
int64_t timestamp
When the RAN built the outcome, in nanoseconds on its realtime clock.
int64_t ctrl_outcome_format_type
Control outcome format the style uses.
bool has_dapp_e3_subscriptions
true when dapp_e3_subscriptions is present
libe3_e2sm_dapp_sub_list_t dapp_e3_subscriptions
dApp E3 subscription map
int64_t ctrl_style_type
Control style number (1).
libe3_e2sm_dapp_bytes_t name
int64_t ctrl_msg_format_type
Control message format the style uses.
int64_t ctrl_hdr_format_type
Control header format the style uses.
libe3_e2sm_dapp_event_trigger_format_e format
Definition e2sm_dapp_c.h:74
uint32_t ran_function_id
E3 RAN function id of the report, not the E2 RAN function id.
uint32_t dapp_id
The dApp that sent the report.
int64_t sequence_id
Correlation id of the dApp for this report, copied from the E3 report.
uint8_t node_plmn_id[3]
PLMN id of the node, 3 octets.
bool has_timestamp
true when timestamp is present
uint32_t node_cu_du_id
CU or DU id inside the node.
uint8_t node_type
Type of the reporting node (0 to 255).
bool has_node_cu_du_id
true when node_cu_du_id is present
uint32_t node_nb_id
gNB id of the node
bool has_sequence_id
true when sequence_id is present
int64_t timestamp
When the RAN built the indication, in nanoseconds on its realtime clock.
uint32_t node_cu_du_id
CU or DU id inside the node.
uint8_t node_plmn_id[3]
PLMN id of the node, 3 octets.
bool has_node_cu_du_id
true when node_cu_du_id is present
uint8_t node_type
Type of the reporting node (0 to 255).
int64_t sequence_id
Correlation id; a subscription map has no procedure, so a RAN leaves it absent.
uint32_t node_nb_id
gNB id of the node
bool has_sequence_id
true when sequence_id is present
bool has_timestamp
true when timestamp is present
libe3_e2sm_dapp_ind_hdr_format1_t frmt_1
libe3_e2sm_dapp_ind_hdr_format2_t frmt_2
libe3_e2sm_dapp_ind_hdr_format_e format
Selected format.
libe3_e2sm_dapp_bytes_t data
libe3_e2sm_dapp_sub_list_t dapp_e3_subscriptions
Current dApp E3 subscription map; can be empty.
libe3_e2sm_dapp_ind_msg_format_e format
Selected format.
libe3_e2sm_dapp_ind_msg_format1_t frmt_1
Content when format is FORMAT_1.
libe3_e2sm_dapp_ind_msg_format2_t frmt_2
Content when format is FORMAT_2.
libe3_e2sm_dapp_report_style_t * report_styles
Array of n_report_styles report styles.
bool has_ctrl
true when the control section is present
libe3_e2sm_dapp_ctrl_style_t * ctrl_styles
Array of n_ctrl_styles control styles.
libe3_e2sm_dapp_ran_function_name_t name
Name of the RAN function.
bool has_report
true when the report section is present
int64_t instance
Instance number; not used, a sender shall not set it.
libe3_e2sm_dapp_bytes_t e2sm_oid
bool has_instance
true when instance is present
libe3_e2sm_dapp_bytes_t short_name
libe3_e2sm_dapp_bytes_t description
int64_t ind_hdr_format_type
Indication header format the style produces.
int64_t report_style_type
Report style number (1 or 2).
libe3_e2sm_dapp_sub_list_t dapp_e3_subscriptions
dApp E3 subscription map
bool has_dapp_e3_subscriptions
true when dapp_e3_subscriptions is present
libe3_e2sm_dapp_bytes_t name
int64_t ind_msg_format_type
Indication message format the style produces.
uint32_t dapp_id
The dApp.
Definition e2sm_dapp_c.h:54
libe3_e2sm_dapp_sub_item_t * items
Array of n_items subscription items.
Definition e2sm_dapp_c.h:62