2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
\r
3 * From ASN.1 module "X2AP-CommonDataTypes"
\r
4 * found in "../../asn_defs/asn1/x2ap-modified-15-05.asn"
\r
5 * `asn1c -fcompound-names -fno-include-deps -findirect-choice -gen-PER -no-gen-OER`
\r
8 #include "ProtocolIE-ID.h"
\r
11 ProtocolIE_ID_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
\r
12 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
\r
16 ASN__CTFAIL(app_key, td, sptr,
\r
17 "%s: value not given (%s:%d)",
\r
18 td->name, __FILE__, __LINE__);
\r
22 value = *(const long *)sptr;
\r
24 if((value >= 0 && value <= 65535)) {
\r
25 /* Constraint check succeeded */
\r
28 ASN__CTFAIL(app_key, td, sptr,
\r
29 "%s: constraint failed (%s:%d)",
\r
30 td->name, __FILE__, __LINE__);
\r
36 * This type is implemented using NativeInteger,
\r
37 * so here we adjust the DEF accordingly.
\r
39 asn_per_constraints_t asn_PER_type_ProtocolIE_ID_constr_1 CC_NOTUSED = {
\r
40 { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */,
\r
41 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
\r
42 0, 0 /* No PER value map */
\r
44 static const ber_tlv_tag_t asn_DEF_ProtocolIE_ID_tags_1[] = {
\r
45 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
\r
47 asn_TYPE_descriptor_t asn_DEF_ProtocolIE_ID = {
\r
50 &asn_OP_NativeInteger,
\r
51 asn_DEF_ProtocolIE_ID_tags_1,
\r
52 sizeof(asn_DEF_ProtocolIE_ID_tags_1)
\r
53 /sizeof(asn_DEF_ProtocolIE_ID_tags_1[0]), /* 1 */
\r
54 asn_DEF_ProtocolIE_ID_tags_1, /* Same as above */
\r
55 sizeof(asn_DEF_ProtocolIE_ID_tags_1)
\r
56 /sizeof(asn_DEF_ProtocolIE_ID_tags_1[0]), /* 1 */
\r
57 { 0, &asn_PER_type_ProtocolIE_ID_constr_1, ProtocolIE_ID_constraint },
\r
58 0, 0, /* No members */
\r
59 0 /* No specifics */
\r