rajalakshmisv | 960885a | 2022-05-31 14:59:10 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) |
sandeepindia | c588f66 | 2022-12-01 22:00:11 +0530 | [diff] [blame] | 3 | * From ASN.1 module "E2SM-COMMON-IEs" |
| 4 | * found in "e2sm.asn" |
| 5 | * `asn1c -fcompound-names -fno-include-deps -findirect-choice -pdu=auto -gen-PER -gen-OER -no-gen-example` |
rajalakshmisv | 960885a | 2022-05-31 14:59:10 +0000 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #include "Interface-MessageID.h" |
| 9 | |
| 10 | /* |
| 11 | * This type is implemented using NativeEnumerated, |
| 12 | * so here we adjust the DEF accordingly. |
| 13 | */ |
| 14 | static asn_oer_constraints_t asn_OER_type_messageType_constr_3 CC_NOTUSED = { |
| 15 | { 0, 0 }, |
| 16 | -1}; |
| 17 | static asn_per_constraints_t asn_PER_type_messageType_constr_3 CC_NOTUSED = { |
| 18 | { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */, |
| 19 | { APC_UNCONSTRAINED, -1, -1, 0, 0 }, |
| 20 | 0, 0 /* No PER value map */ |
| 21 | }; |
| 22 | static const asn_INTEGER_enum_map_t asn_MAP_messageType_value2enum_3[] = { |
| 23 | { 0, 17, "initiatingMessage" }, |
| 24 | { 1, 17, "successfulOutcome" }, |
| 25 | { 2, 19, "unsuccessfulOutcome" } |
| 26 | /* This list is extensible */ |
| 27 | }; |
| 28 | static const unsigned int asn_MAP_messageType_enum2value_3[] = { |
| 29 | 0, /* initiatingMessage(0) */ |
| 30 | 1, /* successfulOutcome(1) */ |
| 31 | 2 /* unsuccessfulOutcome(2) */ |
| 32 | /* This list is extensible */ |
| 33 | }; |
| 34 | static const asn_INTEGER_specifics_t asn_SPC_messageType_specs_3 = { |
| 35 | asn_MAP_messageType_value2enum_3, /* "tag" => N; sorted by tag */ |
| 36 | asn_MAP_messageType_enum2value_3, /* N => "tag"; sorted by N */ |
| 37 | 3, /* Number of elements in the maps */ |
| 38 | 4, /* Extensions before this member */ |
| 39 | 1, /* Strict enumeration */ |
| 40 | 0, /* Native long size */ |
| 41 | 0 |
| 42 | }; |
| 43 | static const ber_tlv_tag_t asn_DEF_messageType_tags_3[] = { |
| 44 | (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 45 | (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) |
| 46 | }; |
| 47 | static /* Use -fall-defs-global to expose */ |
| 48 | asn_TYPE_descriptor_t asn_DEF_messageType_3 = { |
| 49 | "messageType", |
| 50 | "messageType", |
| 51 | &asn_OP_NativeEnumerated, |
| 52 | asn_DEF_messageType_tags_3, |
| 53 | sizeof(asn_DEF_messageType_tags_3) |
| 54 | /sizeof(asn_DEF_messageType_tags_3[0]) - 1, /* 1 */ |
| 55 | asn_DEF_messageType_tags_3, /* Same as above */ |
| 56 | sizeof(asn_DEF_messageType_tags_3) |
| 57 | /sizeof(asn_DEF_messageType_tags_3[0]), /* 2 */ |
| 58 | { &asn_OER_type_messageType_constr_3, &asn_PER_type_messageType_constr_3, NativeEnumerated_constraint }, |
| 59 | 0, 0, /* Defined elsewhere */ |
| 60 | &asn_SPC_messageType_specs_3 /* Additional specs */ |
| 61 | }; |
| 62 | |
| 63 | asn_TYPE_member_t asn_MBR_Interface_MessageID_1[] = { |
| 64 | { ATF_NOFLAGS, 0, offsetof(struct Interface_MessageID, interfaceProcedureID), |
| 65 | (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 66 | -1, /* IMPLICIT tag at current level */ |
| 67 | &asn_DEF_NativeInteger, |
| 68 | 0, |
| 69 | { 0, 0, 0 }, |
| 70 | 0, 0, /* No default value */ |
| 71 | "interfaceProcedureID" |
| 72 | }, |
| 73 | { ATF_NOFLAGS, 0, offsetof(struct Interface_MessageID, messageType), |
| 74 | (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 75 | -1, /* IMPLICIT tag at current level */ |
| 76 | &asn_DEF_messageType_3, |
| 77 | 0, |
| 78 | { 0, 0, 0 }, |
| 79 | 0, 0, /* No default value */ |
| 80 | "messageType" |
| 81 | }, |
| 82 | }; |
| 83 | static const ber_tlv_tag_t asn_DEF_Interface_MessageID_tags_1[] = { |
| 84 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 85 | }; |
| 86 | static const asn_TYPE_tag2member_t asn_MAP_Interface_MessageID_tag2el_1[] = { |
| 87 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* interfaceProcedureID */ |
| 88 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* messageType */ |
| 89 | }; |
| 90 | asn_SEQUENCE_specifics_t asn_SPC_Interface_MessageID_specs_1 = { |
| 91 | sizeof(struct Interface_MessageID), |
| 92 | offsetof(struct Interface_MessageID, _asn_ctx), |
| 93 | asn_MAP_Interface_MessageID_tag2el_1, |
| 94 | 2, /* Count of tags in the map */ |
| 95 | 0, 0, 0, /* Optional elements (not needed) */ |
| 96 | 2, /* First extension addition */ |
| 97 | }; |
| 98 | asn_TYPE_descriptor_t asn_DEF_Interface_MessageID = { |
| 99 | "Interface-MessageID", |
| 100 | "Interface-MessageID", |
| 101 | &asn_OP_SEQUENCE, |
| 102 | asn_DEF_Interface_MessageID_tags_1, |
| 103 | sizeof(asn_DEF_Interface_MessageID_tags_1) |
| 104 | /sizeof(asn_DEF_Interface_MessageID_tags_1[0]), /* 1 */ |
| 105 | asn_DEF_Interface_MessageID_tags_1, /* Same as above */ |
| 106 | sizeof(asn_DEF_Interface_MessageID_tags_1) |
| 107 | /sizeof(asn_DEF_Interface_MessageID_tags_1[0]), /* 1 */ |
| 108 | { 0, 0, SEQUENCE_constraint }, |
| 109 | asn_MBR_Interface_MessageID_1, |
| 110 | 2, /* Elements count */ |
| 111 | &asn_SPC_Interface_MessageID_specs_1 /* Additional specs */ |
| 112 | }; |
| 113 | |