rajalakshmisv | 960885a | 2022-05-31 14:59:10 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) |
| 3 | * From ASN.1 module "E2SM-RC-IEs" |
| 4 | * found in "e2sm-rc-nov2021.asn" |
| 5 | * `asn1c -fcompound-names -fno-include-deps -findirect-choice -pdu=auto -gen-PER -gen-OER -no-gen-example -D .` |
| 6 | */ |
| 7 | |
| 8 | #include "E2SM-RC-EventTrigger-Format1.h" |
| 9 | |
| 10 | #include "EventTrigger-UE-Info.h" |
| 11 | #include "E2SM-RC-EventTrigger-Format1-Item.h" |
| 12 | static int |
| 13 | memb_message_List_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, |
| 14 | asn_app_constraint_failed_f *ctfailcb, void *app_key) { |
| 15 | size_t size; |
| 16 | |
| 17 | if(!sptr) { |
| 18 | ASN__CTFAIL(app_key, td, sptr, |
| 19 | "%s: value not given (%s:%d)", |
| 20 | td->name, __FILE__, __LINE__); |
| 21 | return -1; |
| 22 | } |
| 23 | |
| 24 | /* Determine the number of elements */ |
| 25 | size = _A_CSEQUENCE_FROM_VOID(sptr)->count; |
| 26 | |
| 27 | if((size >= 1 && size <= 65535)) { |
| 28 | /* Perform validation of the inner elements */ |
| 29 | return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); |
| 30 | } else { |
| 31 | ASN__CTFAIL(app_key, td, sptr, |
| 32 | "%s: constraint failed (%s:%d)", |
| 33 | td->name, __FILE__, __LINE__); |
| 34 | return -1; |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | static asn_oer_constraints_t asn_OER_type_message_List_constr_2 CC_NOTUSED = { |
| 39 | { 0, 0 }, |
| 40 | -1 /* (SIZE(1..65535)) */}; |
| 41 | static asn_per_constraints_t asn_PER_type_message_List_constr_2 CC_NOTUSED = { |
| 42 | { APC_UNCONSTRAINED, -1, -1, 0, 0 }, |
| 43 | { APC_CONSTRAINED, 16, 16, 1, 65535 } /* (SIZE(1..65535)) */, |
| 44 | 0, 0 /* No PER value map */ |
| 45 | }; |
| 46 | static asn_oer_constraints_t asn_OER_memb_message_List_constr_2 CC_NOTUSED = { |
| 47 | { 0, 0 }, |
| 48 | -1 /* (SIZE(1..65535)) */}; |
| 49 | static asn_per_constraints_t asn_PER_memb_message_List_constr_2 CC_NOTUSED = { |
| 50 | { APC_UNCONSTRAINED, -1, -1, 0, 0 }, |
| 51 | { APC_CONSTRAINED, 16, 16, 1, 65535 } /* (SIZE(1..65535)) */, |
| 52 | 0, 0 /* No PER value map */ |
| 53 | }; |
| 54 | static asn_TYPE_member_t asn_MBR_message_List_2[] = { |
| 55 | { ATF_POINTER, 0, 0, |
| 56 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), |
| 57 | 0, |
| 58 | &asn_DEF_E2SM_RC_EventTrigger_Format1_Item, |
| 59 | 0, |
| 60 | { 0, 0, 0 }, |
| 61 | 0, 0, /* No default value */ |
| 62 | "" |
| 63 | }, |
| 64 | }; |
| 65 | static const ber_tlv_tag_t asn_DEF_message_List_tags_2[] = { |
| 66 | (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 67 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 68 | }; |
| 69 | static asn_SET_OF_specifics_t asn_SPC_message_List_specs_2 = { |
| 70 | sizeof(struct E2SM_RC_EventTrigger_Format1__message_List), |
| 71 | offsetof(struct E2SM_RC_EventTrigger_Format1__message_List, _asn_ctx), |
| 72 | 0, /* XER encoding is XMLDelimitedItemList */ |
| 73 | }; |
| 74 | static /* Use -fall-defs-global to expose */ |
| 75 | asn_TYPE_descriptor_t asn_DEF_message_List_2 = { |
| 76 | "message-List", |
| 77 | "message-List", |
| 78 | &asn_OP_SEQUENCE_OF, |
| 79 | asn_DEF_message_List_tags_2, |
| 80 | sizeof(asn_DEF_message_List_tags_2) |
| 81 | /sizeof(asn_DEF_message_List_tags_2[0]) - 1, /* 1 */ |
| 82 | asn_DEF_message_List_tags_2, /* Same as above */ |
| 83 | sizeof(asn_DEF_message_List_tags_2) |
| 84 | /sizeof(asn_DEF_message_List_tags_2[0]), /* 2 */ |
| 85 | { &asn_OER_type_message_List_constr_2, &asn_PER_type_message_List_constr_2, SEQUENCE_OF_constraint }, |
| 86 | asn_MBR_message_List_2, |
| 87 | 1, /* Single element */ |
| 88 | &asn_SPC_message_List_specs_2 /* Additional specs */ |
| 89 | }; |
| 90 | |
| 91 | asn_TYPE_member_t asn_MBR_E2SM_RC_EventTrigger_Format1_1[] = { |
| 92 | { ATF_NOFLAGS, 0, offsetof(struct E2SM_RC_EventTrigger_Format1, message_List), |
| 93 | (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 94 | 0, |
| 95 | &asn_DEF_message_List_2, |
| 96 | 0, |
| 97 | { &asn_OER_memb_message_List_constr_2, &asn_PER_memb_message_List_constr_2, memb_message_List_constraint_1 }, |
| 98 | 0, 0, /* No default value */ |
| 99 | "message-List" |
| 100 | }, |
| 101 | { ATF_POINTER, 1, offsetof(struct E2SM_RC_EventTrigger_Format1, globalAssociatedUEInfo), |
| 102 | (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 103 | -1, /* IMPLICIT tag at current level */ |
| 104 | &asn_DEF_EventTrigger_UE_Info, |
| 105 | 0, |
| 106 | { 0, 0, 0 }, |
| 107 | 0, 0, /* No default value */ |
| 108 | "globalAssociatedUEInfo" |
| 109 | }, |
| 110 | }; |
| 111 | static const int asn_MAP_E2SM_RC_EventTrigger_Format1_oms_1[] = { 1 }; |
| 112 | static const ber_tlv_tag_t asn_DEF_E2SM_RC_EventTrigger_Format1_tags_1[] = { |
| 113 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 114 | }; |
| 115 | static const asn_TYPE_tag2member_t asn_MAP_E2SM_RC_EventTrigger_Format1_tag2el_1[] = { |
| 116 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* message-List */ |
| 117 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* globalAssociatedUEInfo */ |
| 118 | }; |
| 119 | asn_SEQUENCE_specifics_t asn_SPC_E2SM_RC_EventTrigger_Format1_specs_1 = { |
| 120 | sizeof(struct E2SM_RC_EventTrigger_Format1), |
| 121 | offsetof(struct E2SM_RC_EventTrigger_Format1, _asn_ctx), |
| 122 | asn_MAP_E2SM_RC_EventTrigger_Format1_tag2el_1, |
| 123 | 2, /* Count of tags in the map */ |
| 124 | asn_MAP_E2SM_RC_EventTrigger_Format1_oms_1, /* Optional members */ |
| 125 | 1, 0, /* Root/Additions */ |
| 126 | 2, /* First extension addition */ |
| 127 | }; |
| 128 | asn_TYPE_descriptor_t asn_DEF_E2SM_RC_EventTrigger_Format1 = { |
| 129 | "E2SM-RC-EventTrigger-Format1", |
| 130 | "E2SM-RC-EventTrigger-Format1", |
| 131 | &asn_OP_SEQUENCE, |
| 132 | asn_DEF_E2SM_RC_EventTrigger_Format1_tags_1, |
| 133 | sizeof(asn_DEF_E2SM_RC_EventTrigger_Format1_tags_1) |
| 134 | /sizeof(asn_DEF_E2SM_RC_EventTrigger_Format1_tags_1[0]), /* 1 */ |
| 135 | asn_DEF_E2SM_RC_EventTrigger_Format1_tags_1, /* Same as above */ |
| 136 | sizeof(asn_DEF_E2SM_RC_EventTrigger_Format1_tags_1) |
| 137 | /sizeof(asn_DEF_E2SM_RC_EventTrigger_Format1_tags_1[0]), /* 1 */ |
| 138 | { 0, 0, SEQUENCE_constraint }, |
| 139 | asn_MBR_E2SM_RC_EventTrigger_Format1_1, |
| 140 | 2, /* Elements count */ |
| 141 | &asn_SPC_E2SM_RC_EventTrigger_Format1_specs_1 /* Additional specs */ |
| 142 | }; |
| 143 | |