/src/open5gs/lib/asn1c/ngap/NGAP_M7ReportAmountMDT.c
Line | Count | Source |
1 | | /* |
2 | | * Generated by asn1c-v1.4-43-gb7926896-2026-05-03 (https://github.com/mouse07410/asn1c) |
3 | | * From ASN.1 module "NGAP-IEs" |
4 | | * found in "../support/ngap-r19.2.0/38413-j20.asn" |
5 | | * `asn1c -pdu=all -fprefix=NGAP_ -fcompound-names -findirect-choice -fno-include-deps -no-gen-BER -no-gen-XER -no-gen-JER -no-gen-CBOR -no-gen-OER -no-gen-UPER` |
6 | | */ |
7 | | |
8 | | #include "NGAP_M7ReportAmountMDT.h" |
9 | | |
10 | | /* |
11 | | * This type is implemented using NativeEnumerated, |
12 | | * so here we adjust the DEF accordingly. |
13 | | */ |
14 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
15 | | asn_per_constraints_t asn_PER_type_NGAP_M7ReportAmountMDT_constr_1 CC_NOTUSED = { |
16 | | { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 7 } /* (0..7,...) */, |
17 | | { APC_UNCONSTRAINED, -1, -1, 0, 0 }, |
18 | | 0, 0 /* No PER value map */ |
19 | | }; |
20 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
21 | | static const asn_INTEGER_enum_map_t asn_MAP_NGAP_M7ReportAmountMDT_value2enum_1[] = { |
22 | | { 0, 2, "r1" }, |
23 | | { 1, 2, "r2" }, |
24 | | { 2, 2, "r4" }, |
25 | | { 3, 2, "r8" }, |
26 | | { 4, 3, "r16" }, |
27 | | { 5, 3, "r32" }, |
28 | | { 6, 3, "r64" }, |
29 | | { 7, 8, "infinity" } |
30 | | /* This list is extensible */ |
31 | | }; |
32 | | static int asn_validate_NGAP_M7ReportAmountMDT_1(const asn_TYPE_descriptor_t *td, |
33 | | const void *sptr, |
34 | | asn_app_constraint_failed_f *ctfailcb, |
35 | 0 | void* app_key) { |
36 | 0 | if(! sptr) { return -1; } |
37 | 0 | e_NGAP_M7ReportAmountMDT value = *(e_NGAP_M7ReportAmountMDT*)sptr; |
38 | 0 | switch(value) { |
39 | 0 | case NGAP_M7ReportAmountMDT_r1: |
40 | 0 | case NGAP_M7ReportAmountMDT_r2: |
41 | 0 | case NGAP_M7ReportAmountMDT_r4: |
42 | 0 | case NGAP_M7ReportAmountMDT_r8: |
43 | 0 | case NGAP_M7ReportAmountMDT_r16: |
44 | 0 | case NGAP_M7ReportAmountMDT_r32: |
45 | 0 | case NGAP_M7ReportAmountMDT_r64: |
46 | 0 | case NGAP_M7ReportAmountMDT_infinity: |
47 | 0 | return 0; |
48 | 0 | } |
49 | 0 | return -1; |
50 | 0 | } |
51 | | static const unsigned int asn_MAP_NGAP_M7ReportAmountMDT_enum2value_1[] = { |
52 | | 7, /* infinity(7) */ |
53 | | 0, /* r1(0) */ |
54 | | 4, /* r16(4) */ |
55 | | 1, /* r2(1) */ |
56 | | 5, /* r32(5) */ |
57 | | 2, /* r4(2) */ |
58 | | 6, /* r64(6) */ |
59 | | 3 /* r8(3) */ |
60 | | /* This list is extensible */ |
61 | | }; |
62 | | const asn_INTEGER_specifics_t asn_SPC_NGAP_M7ReportAmountMDT_specs_1 = { |
63 | | asn_MAP_NGAP_M7ReportAmountMDT_value2enum_1, /* "tag" => N; sorted by tag */ |
64 | | asn_MAP_NGAP_M7ReportAmountMDT_enum2value_1, /* N => "tag"; sorted by N */ |
65 | | 8, /* Number of elements in the maps */ |
66 | | 9, /* Extensions before this member */ |
67 | | 1, /* Strict enumeration */ |
68 | | 0, /* Native long size */ |
69 | | 0 |
70 | | }; |
71 | | static const ber_tlv_tag_t asn_DEF_NGAP_M7ReportAmountMDT_tags_1[] = { |
72 | | (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) |
73 | | }; |
74 | | asn_TYPE_descriptor_t asn_DEF_NGAP_M7ReportAmountMDT = { |
75 | | "M7ReportAmountMDT", |
76 | | "M7ReportAmountMDT", |
77 | | &asn_OP_NativeEnumerated, |
78 | | asn_DEF_NGAP_M7ReportAmountMDT_tags_1, |
79 | | sizeof(asn_DEF_NGAP_M7ReportAmountMDT_tags_1) |
80 | | /sizeof(asn_DEF_NGAP_M7ReportAmountMDT_tags_1[0]), /* 1 */ |
81 | | asn_DEF_NGAP_M7ReportAmountMDT_tags_1, /* Same as above */ |
82 | | sizeof(asn_DEF_NGAP_M7ReportAmountMDT_tags_1) |
83 | | /sizeof(asn_DEF_NGAP_M7ReportAmountMDT_tags_1[0]), /* 1 */ |
84 | | { |
85 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
86 | | 0, |
87 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
88 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
89 | | &asn_PER_type_NGAP_M7ReportAmountMDT_constr_1, |
90 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
91 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
92 | | 0, |
93 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
94 | | asn_validate_NGAP_M7ReportAmountMDT_1 |
95 | | }, |
96 | | 0, 0, /* Defined elsewhere */ |
97 | | &asn_SPC_NGAP_M7ReportAmountMDT_specs_1 /* Additional specs */ |
98 | | }; |
99 | | |