2 * Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
3 * From ASN.1 module "MAP-MS-DataTypes"
4 * found in "../asn1src/MAP-MS-DataTypes.asn"
5 * `asn1c -gen-PER -fskeletons-copy -fnative-types`
8 #include "SubscribedPeriodicRAUTAUtimer.h"
11 SubscribedPeriodicRAUTAUtimer_constraint(asn_TYPE_descriptor_t
*td
, const void *sptr
,
12 asn_app_constraint_failed_f
*ctfailcb
, void *app_key
) {
15 _ASN_CTFAIL(app_key
, td
, sptr
,
16 "%s: value not given (%s:%d)",
17 td
->name
, __FILE__
, __LINE__
);
22 /* Constraint check succeeded */
27 * This type is implemented using NativeInteger,
28 * so here we adjust the DEF accordingly.
31 SubscribedPeriodicRAUTAUtimer_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t
*td
) {
32 td
->free_struct
= asn_DEF_NativeInteger
.free_struct
;
33 td
->print_struct
= asn_DEF_NativeInteger
.print_struct
;
34 td
->ber_decoder
= asn_DEF_NativeInteger
.ber_decoder
;
35 td
->der_encoder
= asn_DEF_NativeInteger
.der_encoder
;
36 td
->xer_decoder
= asn_DEF_NativeInteger
.xer_decoder
;
37 td
->xer_encoder
= asn_DEF_NativeInteger
.xer_encoder
;
38 td
->uper_decoder
= asn_DEF_NativeInteger
.uper_decoder
;
39 td
->uper_encoder
= asn_DEF_NativeInteger
.uper_encoder
;
40 if(!td
->per_constraints
)
41 td
->per_constraints
= asn_DEF_NativeInteger
.per_constraints
;
42 td
->elements
= asn_DEF_NativeInteger
.elements
;
43 td
->elements_count
= asn_DEF_NativeInteger
.elements_count
;
44 /* td->specifics = asn_DEF_NativeInteger.specifics; // Defined explicitly */
48 SubscribedPeriodicRAUTAUtimer_free(asn_TYPE_descriptor_t
*td
,
49 void *struct_ptr
, int contents_only
) {
50 SubscribedPeriodicRAUTAUtimer_1_inherit_TYPE_descriptor(td
);
51 td
->free_struct(td
, struct_ptr
, contents_only
);
55 SubscribedPeriodicRAUTAUtimer_print(asn_TYPE_descriptor_t
*td
, const void *struct_ptr
,
56 int ilevel
, asn_app_consume_bytes_f
*cb
, void *app_key
) {
57 SubscribedPeriodicRAUTAUtimer_1_inherit_TYPE_descriptor(td
);
58 return td
->print_struct(td
, struct_ptr
, ilevel
, cb
, app_key
);
62 SubscribedPeriodicRAUTAUtimer_decode_ber(asn_codec_ctx_t
*opt_codec_ctx
, asn_TYPE_descriptor_t
*td
,
63 void **structure
, const void *bufptr
, size_t size
, int tag_mode
) {
64 SubscribedPeriodicRAUTAUtimer_1_inherit_TYPE_descriptor(td
);
65 return td
->ber_decoder(opt_codec_ctx
, td
, structure
, bufptr
, size
, tag_mode
);
69 SubscribedPeriodicRAUTAUtimer_encode_der(asn_TYPE_descriptor_t
*td
,
70 void *structure
, int tag_mode
, ber_tlv_tag_t tag
,
71 asn_app_consume_bytes_f
*cb
, void *app_key
) {
72 SubscribedPeriodicRAUTAUtimer_1_inherit_TYPE_descriptor(td
);
73 return td
->der_encoder(td
, structure
, tag_mode
, tag
, cb
, app_key
);
77 SubscribedPeriodicRAUTAUtimer_decode_xer(asn_codec_ctx_t
*opt_codec_ctx
, asn_TYPE_descriptor_t
*td
,
78 void **structure
, const char *opt_mname
, const void *bufptr
, size_t size
) {
79 SubscribedPeriodicRAUTAUtimer_1_inherit_TYPE_descriptor(td
);
80 return td
->xer_decoder(opt_codec_ctx
, td
, structure
, opt_mname
, bufptr
, size
);
84 SubscribedPeriodicRAUTAUtimer_encode_xer(asn_TYPE_descriptor_t
*td
, void *structure
,
85 int ilevel
, enum xer_encoder_flags_e flags
,
86 asn_app_consume_bytes_f
*cb
, void *app_key
) {
87 SubscribedPeriodicRAUTAUtimer_1_inherit_TYPE_descriptor(td
);
88 return td
->xer_encoder(td
, structure
, ilevel
, flags
, cb
, app_key
);
92 SubscribedPeriodicRAUTAUtimer_decode_uper(asn_codec_ctx_t
*opt_codec_ctx
, asn_TYPE_descriptor_t
*td
,
93 asn_per_constraints_t
*constraints
, void **structure
, asn_per_data_t
*per_data
) {
94 SubscribedPeriodicRAUTAUtimer_1_inherit_TYPE_descriptor(td
);
95 return td
->uper_decoder(opt_codec_ctx
, td
, constraints
, structure
, per_data
);
99 SubscribedPeriodicRAUTAUtimer_encode_uper(asn_TYPE_descriptor_t
*td
,
100 asn_per_constraints_t
*constraints
,
101 void *structure
, asn_per_outp_t
*per_out
) {
102 SubscribedPeriodicRAUTAUtimer_1_inherit_TYPE_descriptor(td
);
103 return td
->uper_encoder(td
, constraints
, structure
, per_out
);
106 static asn_per_constraints_t asn_PER_type_SubscribedPeriodicRAUTAUtimer_constr_1
= {
107 { APC_CONSTRAINED
, 32, -1, 0, 4294967295 } /* (0..4294967295) */,
108 { APC_UNCONSTRAINED
, -1, -1, 0, 0 },
109 0, 0 /* No PER value map */
111 static asn_INTEGER_specifics_t asn_SPC_SubscribedPeriodicRAUTAUtimer_specs_1
= {
113 0, /* Native long size */
114 1 /* Unsigned representation */
116 static ber_tlv_tag_t asn_DEF_SubscribedPeriodicRAUTAUtimer_tags_1
[] = {
117 (ASN_TAG_CLASS_UNIVERSAL
| (2 << 2))
119 asn_TYPE_descriptor_t asn_DEF_SubscribedPeriodicRAUTAUtimer
= {
120 "SubscribedPeriodicRAUTAUtimer",
121 "SubscribedPeriodicRAUTAUtimer",
122 SubscribedPeriodicRAUTAUtimer_free
,
123 SubscribedPeriodicRAUTAUtimer_print
,
124 SubscribedPeriodicRAUTAUtimer_constraint
,
125 SubscribedPeriodicRAUTAUtimer_decode_ber
,
126 SubscribedPeriodicRAUTAUtimer_encode_der
,
127 SubscribedPeriodicRAUTAUtimer_decode_xer
,
128 SubscribedPeriodicRAUTAUtimer_encode_xer
,
129 SubscribedPeriodicRAUTAUtimer_decode_uper
,
130 SubscribedPeriodicRAUTAUtimer_encode_uper
,
131 0, /* Use generic outmost tag fetcher */
132 asn_DEF_SubscribedPeriodicRAUTAUtimer_tags_1
,
133 sizeof(asn_DEF_SubscribedPeriodicRAUTAUtimer_tags_1
)
134 /sizeof(asn_DEF_SubscribedPeriodicRAUTAUtimer_tags_1
[0]), /* 1 */
135 asn_DEF_SubscribedPeriodicRAUTAUtimer_tags_1
, /* Same as above */
136 sizeof(asn_DEF_SubscribedPeriodicRAUTAUtimer_tags_1
)
137 /sizeof(asn_DEF_SubscribedPeriodicRAUTAUtimer_tags_1
[0]), /* 1 */
138 &asn_PER_type_SubscribedPeriodicRAUTAUtimer_constr_1
,
139 0, 0, /* No members */
140 &asn_SPC_SubscribedPeriodicRAUTAUtimer_specs_1
/* Additional specs */