Harald Welte | d523a69 | 2015-08-30 23:11:19 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) |
| 3 | * From ASN.1 module "HNBAP-IEs" |
| 4 | * found in "../../asn1/hnbap/HNBAP-IEs.asn" |
Harald Welte | ff4750f | 2015-08-31 09:55:28 +0200 | [diff] [blame] | 5 | * `asn1c -gen-PER` |
Harald Welte | d523a69 | 2015-08-30 23:11:19 +0200 | [diff] [blame] | 6 | */ |
| 7 | |
Neels Hofmeyr | f1f2d7c | 2016-01-05 12:00:06 +0100 | [diff] [blame] | 8 | #include <osmocom/hnbap/Cause.h> |
Harald Welte | d523a69 | 2015-08-30 23:11:19 +0200 | [diff] [blame] | 9 | |
| 10 | static asn_per_constraints_t asn_PER_type_Cause_constr_1 GCC_NOTUSED = { |
| 11 | { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0l, 3l } /* (0..3,...) */, |
| 12 | { APC_UNCONSTRAINED, -1, -1, 0, 0 }, |
| 13 | 0, 0 /* No PER value map */ |
| 14 | }; |
| 15 | static asn_TYPE_member_t asn_MBR_Cause_1[] = { |
| 16 | { ATF_NOFLAGS, 0, offsetof(struct Cause, choice.radioNetwork), |
| 17 | (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 18 | -1, /* IMPLICIT tag at current level */ |
| 19 | &asn_DEF_CauseRadioNetwork, |
| 20 | 0, /* Defer constraints checking to the member type */ |
| 21 | 0, /* No PER visible constraints */ |
| 22 | 0, |
| 23 | "radioNetwork" |
| 24 | }, |
| 25 | { ATF_NOFLAGS, 0, offsetof(struct Cause, choice.transport), |
| 26 | (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 27 | -1, /* IMPLICIT tag at current level */ |
| 28 | &asn_DEF_CauseTransport, |
| 29 | 0, /* Defer constraints checking to the member type */ |
| 30 | 0, /* No PER visible constraints */ |
| 31 | 0, |
| 32 | "transport" |
| 33 | }, |
| 34 | { ATF_NOFLAGS, 0, offsetof(struct Cause, choice.protocol), |
| 35 | (ASN_TAG_CLASS_CONTEXT | (2 << 2)), |
| 36 | -1, /* IMPLICIT tag at current level */ |
| 37 | &asn_DEF_CauseProtocol, |
| 38 | 0, /* Defer constraints checking to the member type */ |
| 39 | 0, /* No PER visible constraints */ |
| 40 | 0, |
| 41 | "protocol" |
| 42 | }, |
| 43 | { ATF_NOFLAGS, 0, offsetof(struct Cause, choice.misc), |
| 44 | (ASN_TAG_CLASS_CONTEXT | (3 << 2)), |
| 45 | -1, /* IMPLICIT tag at current level */ |
| 46 | &asn_DEF_CauseMisc, |
| 47 | 0, /* Defer constraints checking to the member type */ |
| 48 | 0, /* No PER visible constraints */ |
| 49 | 0, |
| 50 | "misc" |
| 51 | }, |
| 52 | }; |
| 53 | static const asn_TYPE_tag2member_t asn_MAP_Cause_tag2el_1[] = { |
| 54 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* radioNetwork */ |
| 55 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* transport */ |
| 56 | { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* protocol */ |
| 57 | { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* misc */ |
| 58 | }; |
| 59 | static asn_CHOICE_specifics_t asn_SPC_Cause_specs_1 = { |
| 60 | sizeof(struct Cause), |
| 61 | offsetof(struct Cause, _asn_ctx), |
| 62 | offsetof(struct Cause, present), |
| 63 | sizeof(((struct Cause *)0)->present), |
| 64 | asn_MAP_Cause_tag2el_1, |
| 65 | 4, /* Count of tags in the map */ |
| 66 | 0, |
| 67 | 4 /* Extensions start */ |
| 68 | }; |
| 69 | asn_TYPE_descriptor_t asn_DEF_Cause = { |
| 70 | "Cause", |
| 71 | "Cause", |
| 72 | CHOICE_free, |
| 73 | CHOICE_print, |
| 74 | CHOICE_constraint, |
| 75 | CHOICE_decode_ber, |
| 76 | CHOICE_encode_der, |
| 77 | CHOICE_decode_xer, |
| 78 | CHOICE_encode_xer, |
| 79 | CHOICE_decode_uper, |
| 80 | CHOICE_encode_uper, |
| 81 | CHOICE_decode_aper, |
| 82 | CHOICE_encode_aper, |
| 83 | CHOICE_outmost_tag, |
| 84 | 0, /* No effective tags (pointer) */ |
| 85 | 0, /* No effective tags (count) */ |
| 86 | 0, /* No tags (pointer) */ |
| 87 | 0, /* No tags (count) */ |
| 88 | &asn_PER_type_Cause_constr_1, |
| 89 | asn_MBR_Cause_1, |
| 90 | 4, /* Elements count */ |
| 91 | &asn_SPC_Cause_specs_1 /* Additional specs */ |
| 92 | }; |
| 93 | |