/src/open5gs/lib/asn1c/ngap/NGAP_RRCState.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_RRCState.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_RRCState_constr_1 CC_NOTUSED = { |
16 | | { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, |
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_RRCState_value2enum_1[] = { |
22 | | { 0, 8, "inactive" }, |
23 | | { 1, 9, "connected" } |
24 | | /* This list is extensible */ |
25 | | }; |
26 | | static int asn_validate_NGAP_RRCState_1(const asn_TYPE_descriptor_t *td, |
27 | | const void *sptr, |
28 | | asn_app_constraint_failed_f *ctfailcb, |
29 | 0 | void* app_key) { |
30 | 0 | if(! sptr) { return -1; } |
31 | 0 | e_NGAP_RRCState value = *(e_NGAP_RRCState*)sptr; |
32 | 0 | switch(value) { |
33 | 0 | case NGAP_RRCState_inactive: |
34 | 0 | case NGAP_RRCState_connected: |
35 | 0 | return 0; |
36 | 0 | } |
37 | 0 | return -1; |
38 | 0 | } |
39 | | static const unsigned int asn_MAP_NGAP_RRCState_enum2value_1[] = { |
40 | | 1, /* connected(1) */ |
41 | | 0 /* inactive(0) */ |
42 | | /* This list is extensible */ |
43 | | }; |
44 | | const asn_INTEGER_specifics_t asn_SPC_NGAP_RRCState_specs_1 = { |
45 | | asn_MAP_NGAP_RRCState_value2enum_1, /* "tag" => N; sorted by tag */ |
46 | | asn_MAP_NGAP_RRCState_enum2value_1, /* N => "tag"; sorted by N */ |
47 | | 2, /* Number of elements in the maps */ |
48 | | 3, /* Extensions before this member */ |
49 | | 1, /* Strict enumeration */ |
50 | | 0, /* Native long size */ |
51 | | 0 |
52 | | }; |
53 | | static const ber_tlv_tag_t asn_DEF_NGAP_RRCState_tags_1[] = { |
54 | | (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) |
55 | | }; |
56 | | asn_TYPE_descriptor_t asn_DEF_NGAP_RRCState = { |
57 | | "RRCState", |
58 | | "RRCState", |
59 | | &asn_OP_NativeEnumerated, |
60 | | asn_DEF_NGAP_RRCState_tags_1, |
61 | | sizeof(asn_DEF_NGAP_RRCState_tags_1) |
62 | | /sizeof(asn_DEF_NGAP_RRCState_tags_1[0]), /* 1 */ |
63 | | asn_DEF_NGAP_RRCState_tags_1, /* Same as above */ |
64 | | sizeof(asn_DEF_NGAP_RRCState_tags_1) |
65 | | /sizeof(asn_DEF_NGAP_RRCState_tags_1[0]), /* 1 */ |
66 | | { |
67 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
68 | | 0, |
69 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
70 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
71 | | &asn_PER_type_NGAP_RRCState_constr_1, |
72 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
73 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
74 | | 0, |
75 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
76 | | asn_validate_NGAP_RRCState_1 |
77 | | }, |
78 | | 0, 0, /* Defined elsewhere */ |
79 | | &asn_SPC_NGAP_RRCState_specs_1 /* Additional specs */ |
80 | | }; |
81 | | |