/src/open5gs/lib/asn1c/ngap/NGAP_M4period.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_M4period.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_M4period_constr_1 CC_NOTUSED = { |
16 | | { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 4 } /* (0..4,...) */, |
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_M4period_value2enum_1[] = { |
22 | | { 0, 6, "ms1024" }, |
23 | | { 1, 6, "ms2048" }, |
24 | | { 2, 6, "ms5120" }, |
25 | | { 3, 7, "ms10240" }, |
26 | | { 4, 4, "min1" } |
27 | | /* This list is extensible */ |
28 | | }; |
29 | | static int asn_validate_NGAP_M4period_1(const asn_TYPE_descriptor_t *td, |
30 | | const void *sptr, |
31 | | asn_app_constraint_failed_f *ctfailcb, |
32 | 0 | void* app_key) { |
33 | 0 | if(! sptr) { return -1; } |
34 | 0 | e_NGAP_M4period value = *(e_NGAP_M4period*)sptr; |
35 | 0 | switch(value) { |
36 | 0 | case NGAP_M4period_ms1024: |
37 | 0 | case NGAP_M4period_ms2048: |
38 | 0 | case NGAP_M4period_ms5120: |
39 | 0 | case NGAP_M4period_ms10240: |
40 | 0 | case NGAP_M4period_min1: |
41 | 0 | return 0; |
42 | 0 | } |
43 | 0 | return -1; |
44 | 0 | } |
45 | | static const unsigned int asn_MAP_NGAP_M4period_enum2value_1[] = { |
46 | | 4, /* min1(4) */ |
47 | | 0, /* ms1024(0) */ |
48 | | 3, /* ms10240(3) */ |
49 | | 1, /* ms2048(1) */ |
50 | | 2 /* ms5120(2) */ |
51 | | /* This list is extensible */ |
52 | | }; |
53 | | const asn_INTEGER_specifics_t asn_SPC_NGAP_M4period_specs_1 = { |
54 | | asn_MAP_NGAP_M4period_value2enum_1, /* "tag" => N; sorted by tag */ |
55 | | asn_MAP_NGAP_M4period_enum2value_1, /* N => "tag"; sorted by N */ |
56 | | 5, /* Number of elements in the maps */ |
57 | | 6, /* Extensions before this member */ |
58 | | 1, /* Strict enumeration */ |
59 | | 0, /* Native long size */ |
60 | | 0 |
61 | | }; |
62 | | static const ber_tlv_tag_t asn_DEF_NGAP_M4period_tags_1[] = { |
63 | | (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) |
64 | | }; |
65 | | asn_TYPE_descriptor_t asn_DEF_NGAP_M4period = { |
66 | | "M4period", |
67 | | "M4period", |
68 | | &asn_OP_NativeEnumerated, |
69 | | asn_DEF_NGAP_M4period_tags_1, |
70 | | sizeof(asn_DEF_NGAP_M4period_tags_1) |
71 | | /sizeof(asn_DEF_NGAP_M4period_tags_1[0]), /* 1 */ |
72 | | asn_DEF_NGAP_M4period_tags_1, /* Same as above */ |
73 | | sizeof(asn_DEF_NGAP_M4period_tags_1) |
74 | | /sizeof(asn_DEF_NGAP_M4period_tags_1[0]), /* 1 */ |
75 | | { |
76 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
77 | | 0, |
78 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
79 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
80 | | &asn_PER_type_NGAP_M4period_constr_1, |
81 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
82 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
83 | | 0, |
84 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
85 | | asn_validate_NGAP_M4period_1 |
86 | | }, |
87 | | 0, 0, /* Defined elsewhere */ |
88 | | &asn_SPC_NGAP_M4period_specs_1 /* Additional specs */ |
89 | | }; |
90 | | |