mirror of https://github.com/pvnis/srsRAN_4G.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1013 lines
34 KiB
C
1013 lines
34 KiB
C
10 years ago
|
/*
|
||
|
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
|
||
|
* From ASN.1 module "EUTRA-RRC-Definitions"
|
||
|
* found in "./asn1c/ASN1_files/EUTRA-RRC-Definitions.asn"
|
||
|
* `asn1c -gen-PER -fcompound-names -fnative-types`
|
||
|
*/
|
||
|
|
||
|
#include "UE-TimersAndConstants.h"
|
||
|
|
||
|
static int
|
||
|
t300_2_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
|
||
|
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
||
|
/* Replace with underlying type checker */
|
||
|
td->check_constraints = asn_DEF_NativeEnumerated.check_constraints;
|
||
|
return td->check_constraints(td, sptr, ctfailcb, app_key);
|
||
|
}
|
||
|
|
||
|
/*
|
||
|
* This type is implemented using NativeEnumerated,
|
||
|
* so here we adjust the DEF accordingly.
|
||
|
*/
|
||
|
static void
|
||
|
t300_2_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
|
||
|
td->free_struct = asn_DEF_NativeEnumerated.free_struct;
|
||
|
td->print_struct = asn_DEF_NativeEnumerated.print_struct;
|
||
|
td->ber_decoder = asn_DEF_NativeEnumerated.ber_decoder;
|
||
|
td->der_encoder = asn_DEF_NativeEnumerated.der_encoder;
|
||
|
td->xer_decoder = asn_DEF_NativeEnumerated.xer_decoder;
|
||
|
td->xer_encoder = asn_DEF_NativeEnumerated.xer_encoder;
|
||
|
td->uper_decoder = asn_DEF_NativeEnumerated.uper_decoder;
|
||
|
td->uper_encoder = asn_DEF_NativeEnumerated.uper_encoder;
|
||
|
if(!td->per_constraints)
|
||
|
td->per_constraints = asn_DEF_NativeEnumerated.per_constraints;
|
||
|
td->elements = asn_DEF_NativeEnumerated.elements;
|
||
|
td->elements_count = asn_DEF_NativeEnumerated.elements_count;
|
||
|
/* td->specifics = asn_DEF_NativeEnumerated.specifics; // Defined explicitly */
|
||
|
}
|
||
|
|
||
|
static void
|
||
|
t300_2_free(asn_TYPE_descriptor_t *td,
|
||
|
void *struct_ptr, int contents_only) {
|
||
|
t300_2_inherit_TYPE_descriptor(td);
|
||
|
td->free_struct(td, struct_ptr, contents_only);
|
||
|
}
|
||
|
|
||
|
static int
|
||
|
t300_2_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
|
||
|
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
|
||
|
t300_2_inherit_TYPE_descriptor(td);
|
||
|
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
|
||
|
}
|
||
|
|
||
|
static asn_dec_rval_t
|
||
|
t300_2_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
||
|
void **structure, const void *bufptr, size_t size, int tag_mode) {
|
||
|
t300_2_inherit_TYPE_descriptor(td);
|
||
|
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
|
||
|
}
|
||
|
|
||
|
static asn_enc_rval_t
|
||
|
t300_2_encode_der(asn_TYPE_descriptor_t *td,
|
||
|
void *structure, int tag_mode, ber_tlv_tag_t tag,
|
||
|
asn_app_consume_bytes_f *cb, void *app_key) {
|
||
|
t300_2_inherit_TYPE_descriptor(td);
|
||
|
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
|
||
|
}
|
||
|
|
||
|
static asn_dec_rval_t
|
||
|
t300_2_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
||
|
void **structure, const char *opt_mname, const void *bufptr, size_t size) {
|
||
|
t300_2_inherit_TYPE_descriptor(td);
|
||
|
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
|
||
|
}
|
||
|
|
||
|
static asn_enc_rval_t
|
||
|
t300_2_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
|
||
|
int ilevel, enum xer_encoder_flags_e flags,
|
||
|
asn_app_consume_bytes_f *cb, void *app_key) {
|
||
|
t300_2_inherit_TYPE_descriptor(td);
|
||
|
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
|
||
|
}
|
||
|
|
||
|
static asn_dec_rval_t
|
||
|
t300_2_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
||
|
asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
|
||
|
t300_2_inherit_TYPE_descriptor(td);
|
||
|
return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
|
||
|
}
|
||
|
|
||
|
static asn_enc_rval_t
|
||
|
t300_2_encode_uper(asn_TYPE_descriptor_t *td,
|
||
|
asn_per_constraints_t *constraints,
|
||
|
void *structure, asn_per_outp_t *per_out) {
|
||
|
t300_2_inherit_TYPE_descriptor(td);
|
||
|
return td->uper_encoder(td, constraints, structure, per_out);
|
||
|
}
|
||
|
|
||
|
static int
|
||
|
t301_11_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
|
||
|
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
||
|
/* Replace with underlying type checker */
|
||
|
td->check_constraints = asn_DEF_NativeEnumerated.check_constraints;
|
||
|
return td->check_constraints(td, sptr, ctfailcb, app_key);
|
||
|
}
|
||
|
|
||
|
/*
|
||
|
* This type is implemented using NativeEnumerated,
|
||
|
* so here we adjust the DEF accordingly.
|
||
|
*/
|
||
|
static void
|
||
|
t301_11_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
|
||
|
td->free_struct = asn_DEF_NativeEnumerated.free_struct;
|
||
|
td->print_struct = asn_DEF_NativeEnumerated.print_struct;
|
||
|
td->ber_decoder = asn_DEF_NativeEnumerated.ber_decoder;
|
||
|
td->der_encoder = asn_DEF_NativeEnumerated.der_encoder;
|
||
|
td->xer_decoder = asn_DEF_NativeEnumerated.xer_decoder;
|
||
|
td->xer_encoder = asn_DEF_NativeEnumerated.xer_encoder;
|
||
|
td->uper_decoder = asn_DEF_NativeEnumerated.uper_decoder;
|
||
|
td->uper_encoder = asn_DEF_NativeEnumerated.uper_encoder;
|
||
|
if(!td->per_constraints)
|
||
|
td->per_constraints = asn_DEF_NativeEnumerated.per_constraints;
|
||
|
td->elements = asn_DEF_NativeEnumerated.elements;
|
||
|
td->elements_count = asn_DEF_NativeEnumerated.elements_count;
|
||
|
/* td->specifics = asn_DEF_NativeEnumerated.specifics; // Defined explicitly */
|
||
|
}
|
||
|
|
||
|
static void
|
||
|
t301_11_free(asn_TYPE_descriptor_t *td,
|
||
|
void *struct_ptr, int contents_only) {
|
||
|
t301_11_inherit_TYPE_descriptor(td);
|
||
|
td->free_struct(td, struct_ptr, contents_only);
|
||
|
}
|
||
|
|
||
|
static int
|
||
|
t301_11_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
|
||
|
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
|
||
|
t301_11_inherit_TYPE_descriptor(td);
|
||
|
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
|
||
|
}
|
||
|
|
||
|
static asn_dec_rval_t
|
||
|
t301_11_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
||
|
void **structure, const void *bufptr, size_t size, int tag_mode) {
|
||
|
t301_11_inherit_TYPE_descriptor(td);
|
||
|
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
|
||
|
}
|
||
|
|
||
|
static asn_enc_rval_t
|
||
|
t301_11_encode_der(asn_TYPE_descriptor_t *td,
|
||
|
void *structure, int tag_mode, ber_tlv_tag_t tag,
|
||
|
asn_app_consume_bytes_f *cb, void *app_key) {
|
||
|
t301_11_inherit_TYPE_descriptor(td);
|
||
|
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
|
||
|
}
|
||
|
|
||
|
static asn_dec_rval_t
|
||
|
t301_11_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
||
|
void **structure, const char *opt_mname, const void *bufptr, size_t size) {
|
||
|
t301_11_inherit_TYPE_descriptor(td);
|
||
|
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
|
||
|
}
|
||
|
|
||
|
static asn_enc_rval_t
|
||
|
t301_11_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
|
||
|
int ilevel, enum xer_encoder_flags_e flags,
|
||
|
asn_app_consume_bytes_f *cb, void *app_key) {
|
||
|
t301_11_inherit_TYPE_descriptor(td);
|
||
|
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
|
||
|
}
|
||
|
|
||
|
static asn_dec_rval_t
|
||
|
t301_11_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
||
|
asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
|
||
|
t301_11_inherit_TYPE_descriptor(td);
|
||
|
return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
|
||
|
}
|
||
|
|
||
|
static asn_enc_rval_t
|
||
|
t301_11_encode_uper(asn_TYPE_descriptor_t *td,
|
||
|
asn_per_constraints_t *constraints,
|
||
|
void *structure, asn_per_outp_t *per_out) {
|
||
|
t301_11_inherit_TYPE_descriptor(td);
|
||
|
return td->uper_encoder(td, constraints, structure, per_out);
|
||
|
}
|
||
|
|
||
|
static int
|
||
|
t310_20_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
|
||
|
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
||
|
/* Replace with underlying type checker */
|
||
|
td->check_constraints = asn_DEF_NativeEnumerated.check_constraints;
|
||
|
return td->check_constraints(td, sptr, ctfailcb, app_key);
|
||
|
}
|
||
|
|
||
|
/*
|
||
|
* This type is implemented using NativeEnumerated,
|
||
|
* so here we adjust the DEF accordingly.
|
||
|
*/
|
||
|
static void
|
||
|
t310_20_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
|
||
|
td->free_struct = asn_DEF_NativeEnumerated.free_struct;
|
||
|
td->print_struct = asn_DEF_NativeEnumerated.print_struct;
|
||
|
td->ber_decoder = asn_DEF_NativeEnumerated.ber_decoder;
|
||
|
td->der_encoder = asn_DEF_NativeEnumerated.der_encoder;
|
||
|
td->xer_decoder = asn_DEF_NativeEnumerated.xer_decoder;
|
||
|
td->xer_encoder = asn_DEF_NativeEnumerated.xer_encoder;
|
||
|
td->uper_decoder = asn_DEF_NativeEnumerated.uper_decoder;
|
||
|
td->uper_encoder = asn_DEF_NativeEnumerated.uper_encoder;
|
||
|
if(!td->per_constraints)
|
||
|
td->per_constraints = asn_DEF_NativeEnumerated.per_constraints;
|
||
|
td->elements = asn_DEF_NativeEnumerated.elements;
|
||
|
td->elements_count = asn_DEF_NativeEnumerated.elements_count;
|
||
|
/* td->specifics = asn_DEF_NativeEnumerated.specifics; // Defined explicitly */
|
||
|
}
|
||
|
|
||
|
static void
|
||
|
t310_20_free(asn_TYPE_descriptor_t *td,
|
||
|
void *struct_ptr, int contents_only) {
|
||
|
t310_20_inherit_TYPE_descriptor(td);
|
||
|
td->free_struct(td, struct_ptr, contents_only);
|
||
|
}
|
||
|
|
||
|
static int
|
||
|
t310_20_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
|
||
|
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
|
||
|
t310_20_inherit_TYPE_descriptor(td);
|
||
|
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
|
||
|
}
|
||
|
|
||
|
static asn_dec_rval_t
|
||
|
t310_20_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
||
|
void **structure, const void *bufptr, size_t size, int tag_mode) {
|
||
|
t310_20_inherit_TYPE_descriptor(td);
|
||
|
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
|
||
|
}
|
||
|
|
||
|
static asn_enc_rval_t
|
||
|
t310_20_encode_der(asn_TYPE_descriptor_t *td,
|
||
|
void *structure, int tag_mode, ber_tlv_tag_t tag,
|
||
|
asn_app_consume_bytes_f *cb, void *app_key) {
|
||
|
t310_20_inherit_TYPE_descriptor(td);
|
||
|
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
|
||
|
}
|
||
|
|
||
|
static asn_dec_rval_t
|
||
|
t310_20_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
||
|
void **structure, const char *opt_mname, const void *bufptr, size_t size) {
|
||
|
t310_20_inherit_TYPE_descriptor(td);
|
||
|
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
|
||
|
}
|
||
|
|
||
|
static asn_enc_rval_t
|
||
|
t310_20_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
|
||
|
int ilevel, enum xer_encoder_flags_e flags,
|
||
|
asn_app_consume_bytes_f *cb, void *app_key) {
|
||
|
t310_20_inherit_TYPE_descriptor(td);
|
||
|
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
|
||
|
}
|
||
|
|
||
|
static asn_dec_rval_t
|
||
|
t310_20_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
||
|
asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
|
||
|
t310_20_inherit_TYPE_descriptor(td);
|
||
|
return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
|
||
|
}
|
||
|
|
||
|
static asn_enc_rval_t
|
||
|
t310_20_encode_uper(asn_TYPE_descriptor_t *td,
|
||
|
asn_per_constraints_t *constraints,
|
||
|
void *structure, asn_per_outp_t *per_out) {
|
||
|
t310_20_inherit_TYPE_descriptor(td);
|
||
|
return td->uper_encoder(td, constraints, structure, per_out);
|
||
|
}
|
||
|
|
||
|
static int
|
||
|
n310_28_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
|
||
|
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
||
|
/* Replace with underlying type checker */
|
||
|
td->check_constraints = asn_DEF_NativeEnumerated.check_constraints;
|
||
|
return td->check_constraints(td, sptr, ctfailcb, app_key);
|
||
|
}
|
||
|
|
||
|
/*
|
||
|
* This type is implemented using NativeEnumerated,
|
||
|
* so here we adjust the DEF accordingly.
|
||
|
*/
|
||
|
static void
|
||
|
n310_28_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
|
||
|
td->free_struct = asn_DEF_NativeEnumerated.free_struct;
|
||
|
td->print_struct = asn_DEF_NativeEnumerated.print_struct;
|
||
|
td->ber_decoder = asn_DEF_NativeEnumerated.ber_decoder;
|
||
|
td->der_encoder = asn_DEF_NativeEnumerated.der_encoder;
|
||
|
td->xer_decoder = asn_DEF_NativeEnumerated.xer_decoder;
|
||
|
td->xer_encoder = asn_DEF_NativeEnumerated.xer_encoder;
|
||
|
td->uper_decoder = asn_DEF_NativeEnumerated.uper_decoder;
|
||
|
td->uper_encoder = asn_DEF_NativeEnumerated.uper_encoder;
|
||
|
if(!td->per_constraints)
|
||
|
td->per_constraints = asn_DEF_NativeEnumerated.per_constraints;
|
||
|
td->elements = asn_DEF_NativeEnumerated.elements;
|
||
|
td->elements_count = asn_DEF_NativeEnumerated.elements_count;
|
||
|
/* td->specifics = asn_DEF_NativeEnumerated.specifics; // Defined explicitly */
|
||
|
}
|
||
|
|
||
|
static void
|
||
|
n310_28_free(asn_TYPE_descriptor_t *td,
|
||
|
void *struct_ptr, int contents_only) {
|
||
|
n310_28_inherit_TYPE_descriptor(td);
|
||
|
td->free_struct(td, struct_ptr, contents_only);
|
||
|
}
|
||
|
|
||
|
static int
|
||
|
n310_28_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
|
||
|
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
|
||
|
n310_28_inherit_TYPE_descriptor(td);
|
||
|
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
|
||
|
}
|
||
|
|
||
|
static asn_dec_rval_t
|
||
|
n310_28_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
||
|
void **structure, const void *bufptr, size_t size, int tag_mode) {
|
||
|
n310_28_inherit_TYPE_descriptor(td);
|
||
|
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
|
||
|
}
|
||
|
|
||
|
static asn_enc_rval_t
|
||
|
n310_28_encode_der(asn_TYPE_descriptor_t *td,
|
||
|
void *structure, int tag_mode, ber_tlv_tag_t tag,
|
||
|
asn_app_consume_bytes_f *cb, void *app_key) {
|
||
|
n310_28_inherit_TYPE_descriptor(td);
|
||
|
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
|
||
|
}
|
||
|
|
||
|
static asn_dec_rval_t
|
||
|
n310_28_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
||
|
void **structure, const char *opt_mname, const void *bufptr, size_t size) {
|
||
|
n310_28_inherit_TYPE_descriptor(td);
|
||
|
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
|
||
|
}
|
||
|
|
||
|
static asn_enc_rval_t
|
||
|
n310_28_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
|
||
|
int ilevel, enum xer_encoder_flags_e flags,
|
||
|
asn_app_consume_bytes_f *cb, void *app_key) {
|
||
|
n310_28_inherit_TYPE_descriptor(td);
|
||
|
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
|
||
|
}
|
||
|
|
||
|
static asn_dec_rval_t
|
||
|
n310_28_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
||
|
asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
|
||
|
n310_28_inherit_TYPE_descriptor(td);
|
||
|
return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
|
||
|
}
|
||
|
|
||
|
static asn_enc_rval_t
|
||
|
n310_28_encode_uper(asn_TYPE_descriptor_t *td,
|
||
|
asn_per_constraints_t *constraints,
|
||
|
void *structure, asn_per_outp_t *per_out) {
|
||
|
n310_28_inherit_TYPE_descriptor(td);
|
||
|
return td->uper_encoder(td, constraints, structure, per_out);
|
||
|
}
|
||
|
|
||
|
static int
|
||
|
t311_37_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
|
||
|
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
||
|
/* Replace with underlying type checker */
|
||
|
td->check_constraints = asn_DEF_NativeEnumerated.check_constraints;
|
||
|
return td->check_constraints(td, sptr, ctfailcb, app_key);
|
||
|
}
|
||
|
|
||
|
/*
|
||
|
* This type is implemented using NativeEnumerated,
|
||
|
* so here we adjust the DEF accordingly.
|
||
|
*/
|
||
|
static void
|
||
|
t311_37_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
|
||
|
td->free_struct = asn_DEF_NativeEnumerated.free_struct;
|
||
|
td->print_struct = asn_DEF_NativeEnumerated.print_struct;
|
||
|
td->ber_decoder = asn_DEF_NativeEnumerated.ber_decoder;
|
||
|
td->der_encoder = asn_DEF_NativeEnumerated.der_encoder;
|
||
|
td->xer_decoder = asn_DEF_NativeEnumerated.xer_decoder;
|
||
|
td->xer_encoder = asn_DEF_NativeEnumerated.xer_encoder;
|
||
|
td->uper_decoder = asn_DEF_NativeEnumerated.uper_decoder;
|
||
|
td->uper_encoder = asn_DEF_NativeEnumerated.uper_encoder;
|
||
|
if(!td->per_constraints)
|
||
|
td->per_constraints = asn_DEF_NativeEnumerated.per_constraints;
|
||
|
td->elements = asn_DEF_NativeEnumerated.elements;
|
||
|
td->elements_count = asn_DEF_NativeEnumerated.elements_count;
|
||
|
/* td->specifics = asn_DEF_NativeEnumerated.specifics; // Defined explicitly */
|
||
|
}
|
||
|
|
||
|
static void
|
||
|
t311_37_free(asn_TYPE_descriptor_t *td,
|
||
|
void *struct_ptr, int contents_only) {
|
||
|
t311_37_inherit_TYPE_descriptor(td);
|
||
|
td->free_struct(td, struct_ptr, contents_only);
|
||
|
}
|
||
|
|
||
|
static int
|
||
|
t311_37_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
|
||
|
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
|
||
|
t311_37_inherit_TYPE_descriptor(td);
|
||
|
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
|
||
|
}
|
||
|
|
||
|
static asn_dec_rval_t
|
||
|
t311_37_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
||
|
void **structure, const void *bufptr, size_t size, int tag_mode) {
|
||
|
t311_37_inherit_TYPE_descriptor(td);
|
||
|
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
|
||
|
}
|
||
|
|
||
|
static asn_enc_rval_t
|
||
|
t311_37_encode_der(asn_TYPE_descriptor_t *td,
|
||
|
void *structure, int tag_mode, ber_tlv_tag_t tag,
|
||
|
asn_app_consume_bytes_f *cb, void *app_key) {
|
||
|
t311_37_inherit_TYPE_descriptor(td);
|
||
|
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
|
||
|
}
|
||
|
|
||
|
static asn_dec_rval_t
|
||
|
t311_37_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
||
|
void **structure, const char *opt_mname, const void *bufptr, size_t size) {
|
||
|
t311_37_inherit_TYPE_descriptor(td);
|
||
|
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
|
||
|
}
|
||
|
|
||
|
static asn_enc_rval_t
|
||
|
t311_37_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
|
||
|
int ilevel, enum xer_encoder_flags_e flags,
|
||
|
asn_app_consume_bytes_f *cb, void *app_key) {
|
||
|
t311_37_inherit_TYPE_descriptor(td);
|
||
|
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
|
||
|
}
|
||
|
|
||
|
static asn_dec_rval_t
|
||
|
t311_37_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
||
|
asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
|
||
|
t311_37_inherit_TYPE_descriptor(td);
|
||
|
return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
|
||
|
}
|
||
|
|
||
|
static asn_enc_rval_t
|
||
|
t311_37_encode_uper(asn_TYPE_descriptor_t *td,
|
||
|
asn_per_constraints_t *constraints,
|
||
|
void *structure, asn_per_outp_t *per_out) {
|
||
|
t311_37_inherit_TYPE_descriptor(td);
|
||
|
return td->uper_encoder(td, constraints, structure, per_out);
|
||
|
}
|
||
|
|
||
|
static int
|
||
|
n311_45_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
|
||
|
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
||
|
/* Replace with underlying type checker */
|
||
|
td->check_constraints = asn_DEF_NativeEnumerated.check_constraints;
|
||
|
return td->check_constraints(td, sptr, ctfailcb, app_key);
|
||
|
}
|
||
|
|
||
|
/*
|
||
|
* This type is implemented using NativeEnumerated,
|
||
|
* so here we adjust the DEF accordingly.
|
||
|
*/
|
||
|
static void
|
||
|
n311_45_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
|
||
|
td->free_struct = asn_DEF_NativeEnumerated.free_struct;
|
||
|
td->print_struct = asn_DEF_NativeEnumerated.print_struct;
|
||
|
td->ber_decoder = asn_DEF_NativeEnumerated.ber_decoder;
|
||
|
td->der_encoder = asn_DEF_NativeEnumerated.der_encoder;
|
||
|
td->xer_decoder = asn_DEF_NativeEnumerated.xer_decoder;
|
||
|
td->xer_encoder = asn_DEF_NativeEnumerated.xer_encoder;
|
||
|
td->uper_decoder = asn_DEF_NativeEnumerated.uper_decoder;
|
||
|
td->uper_encoder = asn_DEF_NativeEnumerated.uper_encoder;
|
||
|
if(!td->per_constraints)
|
||
|
td->per_constraints = asn_DEF_NativeEnumerated.per_constraints;
|
||
|
td->elements = asn_DEF_NativeEnumerated.elements;
|
||
|
td->elements_count = asn_DEF_NativeEnumerated.elements_count;
|
||
|
/* td->specifics = asn_DEF_NativeEnumerated.specifics; // Defined explicitly */
|
||
|
}
|
||
|
|
||
|
static void
|
||
|
n311_45_free(asn_TYPE_descriptor_t *td,
|
||
|
void *struct_ptr, int contents_only) {
|
||
|
n311_45_inherit_TYPE_descriptor(td);
|
||
|
td->free_struct(td, struct_ptr, contents_only);
|
||
|
}
|
||
|
|
||
|
static int
|
||
|
n311_45_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
|
||
|
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
|
||
|
n311_45_inherit_TYPE_descriptor(td);
|
||
|
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
|
||
|
}
|
||
|
|
||
|
static asn_dec_rval_t
|
||
|
n311_45_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
||
|
void **structure, const void *bufptr, size_t size, int tag_mode) {
|
||
|
n311_45_inherit_TYPE_descriptor(td);
|
||
|
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
|
||
|
}
|
||
|
|
||
|
static asn_enc_rval_t
|
||
|
n311_45_encode_der(asn_TYPE_descriptor_t *td,
|
||
|
void *structure, int tag_mode, ber_tlv_tag_t tag,
|
||
|
asn_app_consume_bytes_f *cb, void *app_key) {
|
||
|
n311_45_inherit_TYPE_descriptor(td);
|
||
|
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
|
||
|
}
|
||
|
|
||
|
static asn_dec_rval_t
|
||
|
n311_45_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
||
|
void **structure, const char *opt_mname, const void *bufptr, size_t size) {
|
||
|
n311_45_inherit_TYPE_descriptor(td);
|
||
|
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
|
||
|
}
|
||
|
|
||
|
static asn_enc_rval_t
|
||
|
n311_45_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
|
||
|
int ilevel, enum xer_encoder_flags_e flags,
|
||
|
asn_app_consume_bytes_f *cb, void *app_key) {
|
||
|
n311_45_inherit_TYPE_descriptor(td);
|
||
|
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
|
||
|
}
|
||
|
|
||
|
static asn_dec_rval_t
|
||
|
n311_45_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
||
|
asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
|
||
|
n311_45_inherit_TYPE_descriptor(td);
|
||
|
return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
|
||
|
}
|
||
|
|
||
|
static asn_enc_rval_t
|
||
|
n311_45_encode_uper(asn_TYPE_descriptor_t *td,
|
||
|
asn_per_constraints_t *constraints,
|
||
|
void *structure, asn_per_outp_t *per_out) {
|
||
|
n311_45_inherit_TYPE_descriptor(td);
|
||
|
return td->uper_encoder(td, constraints, structure, per_out);
|
||
|
}
|
||
|
|
||
|
static asn_per_constraints_t asn_PER_type_t300_constr_2 = {
|
||
|
{ APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */,
|
||
|
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
|
||
|
0, 0 /* No PER value map */
|
||
|
};
|
||
|
static asn_per_constraints_t asn_PER_type_t301_constr_11 = {
|
||
|
{ APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */,
|
||
|
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
|
||
|
0, 0 /* No PER value map */
|
||
|
};
|
||
|
static asn_per_constraints_t asn_PER_type_t310_constr_20 = {
|
||
|
{ APC_CONSTRAINED, 3, 3, 0, 6 } /* (0..6) */,
|
||
|
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
|
||
|
0, 0 /* No PER value map */
|
||
|
};
|
||
|
static asn_per_constraints_t asn_PER_type_n310_constr_28 = {
|
||
|
{ APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */,
|
||
|
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
|
||
|
0, 0 /* No PER value map */
|
||
|
};
|
||
|
static asn_per_constraints_t asn_PER_type_t311_constr_37 = {
|
||
|
{ APC_CONSTRAINED, 3, 3, 0, 6 } /* (0..6) */,
|
||
|
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
|
||
|
0, 0 /* No PER value map */
|
||
|
};
|
||
|
static asn_per_constraints_t asn_PER_type_n311_constr_45 = {
|
||
|
{ APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */,
|
||
|
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
|
||
|
0, 0 /* No PER value map */
|
||
|
};
|
||
|
static asn_INTEGER_enum_map_t asn_MAP_t300_value2enum_2[] = {
|
||
|
{ 0, 5, "ms100" },
|
||
|
{ 1, 5, "ms200" },
|
||
|
{ 2, 5, "ms300" },
|
||
|
{ 3, 5, "ms400" },
|
||
|
{ 4, 5, "ms600" },
|
||
|
{ 5, 6, "ms1000" },
|
||
|
{ 6, 6, "ms1500" },
|
||
|
{ 7, 6, "ms2000" }
|
||
|
};
|
||
|
static unsigned int asn_MAP_t300_enum2value_2[] = {
|
||
|
0, /* ms100(0) */
|
||
|
5, /* ms1000(5) */
|
||
|
6, /* ms1500(6) */
|
||
|
1, /* ms200(1) */
|
||
|
7, /* ms2000(7) */
|
||
|
2, /* ms300(2) */
|
||
|
3, /* ms400(3) */
|
||
|
4 /* ms600(4) */
|
||
|
};
|
||
|
static asn_INTEGER_specifics_t asn_SPC_t300_specs_2 = {
|
||
|
asn_MAP_t300_value2enum_2, /* "tag" => N; sorted by tag */
|
||
|
asn_MAP_t300_enum2value_2, /* N => "tag"; sorted by N */
|
||
|
8, /* Number of elements in the maps */
|
||
|
0, /* Enumeration is not extensible */
|
||
|
1, /* Strict enumeration */
|
||
|
0, /* Native long size */
|
||
|
0
|
||
|
};
|
||
|
static ber_tlv_tag_t asn_DEF_t300_tags_2[] = {
|
||
|
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
|
||
|
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
|
||
|
};
|
||
|
static /* Use -fall-defs-global to expose */
|
||
|
asn_TYPE_descriptor_t asn_DEF_t300_2 = {
|
||
|
"t300",
|
||
|
"t300",
|
||
|
t300_2_free,
|
||
|
t300_2_print,
|
||
|
t300_2_constraint,
|
||
|
t300_2_decode_ber,
|
||
|
t300_2_encode_der,
|
||
|
t300_2_decode_xer,
|
||
|
t300_2_encode_xer,
|
||
|
t300_2_decode_uper,
|
||
|
t300_2_encode_uper,
|
||
|
0, /* Use generic outmost tag fetcher */
|
||
|
asn_DEF_t300_tags_2,
|
||
|
sizeof(asn_DEF_t300_tags_2)
|
||
|
/sizeof(asn_DEF_t300_tags_2[0]) - 1, /* 1 */
|
||
|
asn_DEF_t300_tags_2, /* Same as above */
|
||
|
sizeof(asn_DEF_t300_tags_2)
|
||
|
/sizeof(asn_DEF_t300_tags_2[0]), /* 2 */
|
||
|
&asn_PER_type_t300_constr_2,
|
||
|
0, 0, /* Defined elsewhere */
|
||
|
&asn_SPC_t300_specs_2 /* Additional specs */
|
||
|
};
|
||
|
|
||
|
static asn_INTEGER_enum_map_t asn_MAP_t301_value2enum_11[] = {
|
||
|
{ 0, 5, "ms100" },
|
||
|
{ 1, 5, "ms200" },
|
||
|
{ 2, 5, "ms300" },
|
||
|
{ 3, 5, "ms400" },
|
||
|
{ 4, 5, "ms600" },
|
||
|
{ 5, 6, "ms1000" },
|
||
|
{ 6, 6, "ms1500" },
|
||
|
{ 7, 6, "ms2000" }
|
||
|
};
|
||
|
static unsigned int asn_MAP_t301_enum2value_11[] = {
|
||
|
0, /* ms100(0) */
|
||
|
5, /* ms1000(5) */
|
||
|
6, /* ms1500(6) */
|
||
|
1, /* ms200(1) */
|
||
|
7, /* ms2000(7) */
|
||
|
2, /* ms300(2) */
|
||
|
3, /* ms400(3) */
|
||
|
4 /* ms600(4) */
|
||
|
};
|
||
|
static asn_INTEGER_specifics_t asn_SPC_t301_specs_11 = {
|
||
|
asn_MAP_t301_value2enum_11, /* "tag" => N; sorted by tag */
|
||
|
asn_MAP_t301_enum2value_11, /* N => "tag"; sorted by N */
|
||
|
8, /* Number of elements in the maps */
|
||
|
0, /* Enumeration is not extensible */
|
||
|
1, /* Strict enumeration */
|
||
|
0, /* Native long size */
|
||
|
0
|
||
|
};
|
||
|
static ber_tlv_tag_t asn_DEF_t301_tags_11[] = {
|
||
|
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
|
||
|
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
|
||
|
};
|
||
|
static /* Use -fall-defs-global to expose */
|
||
|
asn_TYPE_descriptor_t asn_DEF_t301_11 = {
|
||
|
"t301",
|
||
|
"t301",
|
||
|
t301_11_free,
|
||
|
t301_11_print,
|
||
|
t301_11_constraint,
|
||
|
t301_11_decode_ber,
|
||
|
t301_11_encode_der,
|
||
|
t301_11_decode_xer,
|
||
|
t301_11_encode_xer,
|
||
|
t301_11_decode_uper,
|
||
|
t301_11_encode_uper,
|
||
|
0, /* Use generic outmost tag fetcher */
|
||
|
asn_DEF_t301_tags_11,
|
||
|
sizeof(asn_DEF_t301_tags_11)
|
||
|
/sizeof(asn_DEF_t301_tags_11[0]) - 1, /* 1 */
|
||
|
asn_DEF_t301_tags_11, /* Same as above */
|
||
|
sizeof(asn_DEF_t301_tags_11)
|
||
|
/sizeof(asn_DEF_t301_tags_11[0]), /* 2 */
|
||
|
&asn_PER_type_t301_constr_11,
|
||
|
0, 0, /* Defined elsewhere */
|
||
|
&asn_SPC_t301_specs_11 /* Additional specs */
|
||
|
};
|
||
|
|
||
|
static asn_INTEGER_enum_map_t asn_MAP_t310_value2enum_20[] = {
|
||
|
{ 0, 3, "ms0" },
|
||
|
{ 1, 4, "ms50" },
|
||
|
{ 2, 5, "ms100" },
|
||
|
{ 3, 5, "ms200" },
|
||
|
{ 4, 5, "ms500" },
|
||
|
{ 5, 6, "ms1000" },
|
||
|
{ 6, 6, "ms2000" }
|
||
|
};
|
||
|
static unsigned int asn_MAP_t310_enum2value_20[] = {
|
||
|
0, /* ms0(0) */
|
||
|
2, /* ms100(2) */
|
||
|
5, /* ms1000(5) */
|
||
|
3, /* ms200(3) */
|
||
|
6, /* ms2000(6) */
|
||
|
1, /* ms50(1) */
|
||
|
4 /* ms500(4) */
|
||
|
};
|
||
|
static asn_INTEGER_specifics_t asn_SPC_t310_specs_20 = {
|
||
|
asn_MAP_t310_value2enum_20, /* "tag" => N; sorted by tag */
|
||
|
asn_MAP_t310_enum2value_20, /* N => "tag"; sorted by N */
|
||
|
7, /* Number of elements in the maps */
|
||
|
0, /* Enumeration is not extensible */
|
||
|
1, /* Strict enumeration */
|
||
|
0, /* Native long size */
|
||
|
0
|
||
|
};
|
||
|
static ber_tlv_tag_t asn_DEF_t310_tags_20[] = {
|
||
|
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
|
||
|
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
|
||
|
};
|
||
|
static /* Use -fall-defs-global to expose */
|
||
|
asn_TYPE_descriptor_t asn_DEF_t310_20 = {
|
||
|
"t310",
|
||
|
"t310",
|
||
|
t310_20_free,
|
||
|
t310_20_print,
|
||
|
t310_20_constraint,
|
||
|
t310_20_decode_ber,
|
||
|
t310_20_encode_der,
|
||
|
t310_20_decode_xer,
|
||
|
t310_20_encode_xer,
|
||
|
t310_20_decode_uper,
|
||
|
t310_20_encode_uper,
|
||
|
0, /* Use generic outmost tag fetcher */
|
||
|
asn_DEF_t310_tags_20,
|
||
|
sizeof(asn_DEF_t310_tags_20)
|
||
|
/sizeof(asn_DEF_t310_tags_20[0]) - 1, /* 1 */
|
||
|
asn_DEF_t310_tags_20, /* Same as above */
|
||
|
sizeof(asn_DEF_t310_tags_20)
|
||
|
/sizeof(asn_DEF_t310_tags_20[0]), /* 2 */
|
||
|
&asn_PER_type_t310_constr_20,
|
||
|
0, 0, /* Defined elsewhere */
|
||
|
&asn_SPC_t310_specs_20 /* Additional specs */
|
||
|
};
|
||
|
|
||
|
static asn_INTEGER_enum_map_t asn_MAP_n310_value2enum_28[] = {
|
||
|
{ 0, 2, "n1" },
|
||
|
{ 1, 2, "n2" },
|
||
|
{ 2, 2, "n3" },
|
||
|
{ 3, 2, "n4" },
|
||
|
{ 4, 2, "n6" },
|
||
|
{ 5, 2, "n8" },
|
||
|
{ 6, 3, "n10" },
|
||
|
{ 7, 3, "n20" }
|
||
|
};
|
||
|
static unsigned int asn_MAP_n310_enum2value_28[] = {
|
||
|
0, /* n1(0) */
|
||
|
6, /* n10(6) */
|
||
|
1, /* n2(1) */
|
||
|
7, /* n20(7) */
|
||
|
2, /* n3(2) */
|
||
|
3, /* n4(3) */
|
||
|
4, /* n6(4) */
|
||
|
5 /* n8(5) */
|
||
|
};
|
||
|
static asn_INTEGER_specifics_t asn_SPC_n310_specs_28 = {
|
||
|
asn_MAP_n310_value2enum_28, /* "tag" => N; sorted by tag */
|
||
|
asn_MAP_n310_enum2value_28, /* N => "tag"; sorted by N */
|
||
|
8, /* Number of elements in the maps */
|
||
|
0, /* Enumeration is not extensible */
|
||
|
1, /* Strict enumeration */
|
||
|
0, /* Native long size */
|
||
|
0
|
||
|
};
|
||
|
static ber_tlv_tag_t asn_DEF_n310_tags_28[] = {
|
||
|
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
|
||
|
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
|
||
|
};
|
||
|
static /* Use -fall-defs-global to expose */
|
||
|
asn_TYPE_descriptor_t asn_DEF_n310_28 = {
|
||
|
"n310",
|
||
|
"n310",
|
||
|
n310_28_free,
|
||
|
n310_28_print,
|
||
|
n310_28_constraint,
|
||
|
n310_28_decode_ber,
|
||
|
n310_28_encode_der,
|
||
|
n310_28_decode_xer,
|
||
|
n310_28_encode_xer,
|
||
|
n310_28_decode_uper,
|
||
|
n310_28_encode_uper,
|
||
|
0, /* Use generic outmost tag fetcher */
|
||
|
asn_DEF_n310_tags_28,
|
||
|
sizeof(asn_DEF_n310_tags_28)
|
||
|
/sizeof(asn_DEF_n310_tags_28[0]) - 1, /* 1 */
|
||
|
asn_DEF_n310_tags_28, /* Same as above */
|
||
|
sizeof(asn_DEF_n310_tags_28)
|
||
|
/sizeof(asn_DEF_n310_tags_28[0]), /* 2 */
|
||
|
&asn_PER_type_n310_constr_28,
|
||
|
0, 0, /* Defined elsewhere */
|
||
|
&asn_SPC_n310_specs_28 /* Additional specs */
|
||
|
};
|
||
|
|
||
|
static asn_INTEGER_enum_map_t asn_MAP_t311_value2enum_37[] = {
|
||
|
{ 0, 6, "ms1000" },
|
||
|
{ 1, 6, "ms3000" },
|
||
|
{ 2, 6, "ms5000" },
|
||
|
{ 3, 7, "ms10000" },
|
||
|
{ 4, 7, "ms15000" },
|
||
|
{ 5, 7, "ms20000" },
|
||
|
{ 6, 7, "ms30000" }
|
||
|
};
|
||
|
static unsigned int asn_MAP_t311_enum2value_37[] = {
|
||
|
0, /* ms1000(0) */
|
||
|
3, /* ms10000(3) */
|
||
|
4, /* ms15000(4) */
|
||
|
5, /* ms20000(5) */
|
||
|
1, /* ms3000(1) */
|
||
|
6, /* ms30000(6) */
|
||
|
2 /* ms5000(2) */
|
||
|
};
|
||
|
static asn_INTEGER_specifics_t asn_SPC_t311_specs_37 = {
|
||
|
asn_MAP_t311_value2enum_37, /* "tag" => N; sorted by tag */
|
||
|
asn_MAP_t311_enum2value_37, /* N => "tag"; sorted by N */
|
||
|
7, /* Number of elements in the maps */
|
||
|
0, /* Enumeration is not extensible */
|
||
|
1, /* Strict enumeration */
|
||
|
0, /* Native long size */
|
||
|
0
|
||
|
};
|
||
|
static ber_tlv_tag_t asn_DEF_t311_tags_37[] = {
|
||
|
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
|
||
|
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
|
||
|
};
|
||
|
static /* Use -fall-defs-global to expose */
|
||
|
asn_TYPE_descriptor_t asn_DEF_t311_37 = {
|
||
|
"t311",
|
||
|
"t311",
|
||
|
t311_37_free,
|
||
|
t311_37_print,
|
||
|
t311_37_constraint,
|
||
|
t311_37_decode_ber,
|
||
|
t311_37_encode_der,
|
||
|
t311_37_decode_xer,
|
||
|
t311_37_encode_xer,
|
||
|
t311_37_decode_uper,
|
||
|
t311_37_encode_uper,
|
||
|
0, /* Use generic outmost tag fetcher */
|
||
|
asn_DEF_t311_tags_37,
|
||
|
sizeof(asn_DEF_t311_tags_37)
|
||
|
/sizeof(asn_DEF_t311_tags_37[0]) - 1, /* 1 */
|
||
|
asn_DEF_t311_tags_37, /* Same as above */
|
||
|
sizeof(asn_DEF_t311_tags_37)
|
||
|
/sizeof(asn_DEF_t311_tags_37[0]), /* 2 */
|
||
|
&asn_PER_type_t311_constr_37,
|
||
|
0, 0, /* Defined elsewhere */
|
||
|
&asn_SPC_t311_specs_37 /* Additional specs */
|
||
|
};
|
||
|
|
||
|
static asn_INTEGER_enum_map_t asn_MAP_n311_value2enum_45[] = {
|
||
|
{ 0, 2, "n1" },
|
||
|
{ 1, 2, "n2" },
|
||
|
{ 2, 2, "n3" },
|
||
|
{ 3, 2, "n4" },
|
||
|
{ 4, 2, "n5" },
|
||
|
{ 5, 2, "n6" },
|
||
|
{ 6, 2, "n8" },
|
||
|
{ 7, 3, "n10" }
|
||
|
};
|
||
|
static unsigned int asn_MAP_n311_enum2value_45[] = {
|
||
|
0, /* n1(0) */
|
||
|
7, /* n10(7) */
|
||
|
1, /* n2(1) */
|
||
|
2, /* n3(2) */
|
||
|
3, /* n4(3) */
|
||
|
4, /* n5(4) */
|
||
|
5, /* n6(5) */
|
||
|
6 /* n8(6) */
|
||
|
};
|
||
|
static asn_INTEGER_specifics_t asn_SPC_n311_specs_45 = {
|
||
|
asn_MAP_n311_value2enum_45, /* "tag" => N; sorted by tag */
|
||
|
asn_MAP_n311_enum2value_45, /* N => "tag"; sorted by N */
|
||
|
8, /* Number of elements in the maps */
|
||
|
0, /* Enumeration is not extensible */
|
||
|
1, /* Strict enumeration */
|
||
|
0, /* Native long size */
|
||
|
0
|
||
|
};
|
||
|
static ber_tlv_tag_t asn_DEF_n311_tags_45[] = {
|
||
|
(ASN_TAG_CLASS_CONTEXT | (5 << 2)),
|
||
|
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
|
||
|
};
|
||
|
static /* Use -fall-defs-global to expose */
|
||
|
asn_TYPE_descriptor_t asn_DEF_n311_45 = {
|
||
|
"n311",
|
||
|
"n311",
|
||
|
n311_45_free,
|
||
|
n311_45_print,
|
||
|
n311_45_constraint,
|
||
|
n311_45_decode_ber,
|
||
|
n311_45_encode_der,
|
||
|
n311_45_decode_xer,
|
||
|
n311_45_encode_xer,
|
||
|
n311_45_decode_uper,
|
||
|
n311_45_encode_uper,
|
||
|
0, /* Use generic outmost tag fetcher */
|
||
|
asn_DEF_n311_tags_45,
|
||
|
sizeof(asn_DEF_n311_tags_45)
|
||
|
/sizeof(asn_DEF_n311_tags_45[0]) - 1, /* 1 */
|
||
|
asn_DEF_n311_tags_45, /* Same as above */
|
||
|
sizeof(asn_DEF_n311_tags_45)
|
||
|
/sizeof(asn_DEF_n311_tags_45[0]), /* 2 */
|
||
|
&asn_PER_type_n311_constr_45,
|
||
|
0, 0, /* Defined elsewhere */
|
||
|
&asn_SPC_n311_specs_45 /* Additional specs */
|
||
|
};
|
||
|
|
||
|
static asn_TYPE_member_t asn_MBR_UE_TimersAndConstants_1[] = {
|
||
|
{ ATF_NOFLAGS, 0, offsetof(struct UE_TimersAndConstants, t300),
|
||
|
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
|
||
|
-1, /* IMPLICIT tag at current level */
|
||
|
&asn_DEF_t300_2,
|
||
|
0, /* Defer constraints checking to the member type */
|
||
|
0, /* No PER visible constraints */
|
||
|
0,
|
||
|
"t300"
|
||
|
},
|
||
|
{ ATF_NOFLAGS, 0, offsetof(struct UE_TimersAndConstants, t301),
|
||
|
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
|
||
|
-1, /* IMPLICIT tag at current level */
|
||
|
&asn_DEF_t301_11,
|
||
|
0, /* Defer constraints checking to the member type */
|
||
|
0, /* No PER visible constraints */
|
||
|
0,
|
||
|
"t301"
|
||
|
},
|
||
|
{ ATF_NOFLAGS, 0, offsetof(struct UE_TimersAndConstants, t310),
|
||
|
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
|
||
|
-1, /* IMPLICIT tag at current level */
|
||
|
&asn_DEF_t310_20,
|
||
|
0, /* Defer constraints checking to the member type */
|
||
|
0, /* No PER visible constraints */
|
||
|
0,
|
||
|
"t310"
|
||
|
},
|
||
|
{ ATF_NOFLAGS, 0, offsetof(struct UE_TimersAndConstants, n310),
|
||
|
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
|
||
|
-1, /* IMPLICIT tag at current level */
|
||
|
&asn_DEF_n310_28,
|
||
|
0, /* Defer constraints checking to the member type */
|
||
|
0, /* No PER visible constraints */
|
||
|
0,
|
||
|
"n310"
|
||
|
},
|
||
|
{ ATF_NOFLAGS, 0, offsetof(struct UE_TimersAndConstants, t311),
|
||
|
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
|
||
|
-1, /* IMPLICIT tag at current level */
|
||
|
&asn_DEF_t311_37,
|
||
|
0, /* Defer constraints checking to the member type */
|
||
|
0, /* No PER visible constraints */
|
||
|
0,
|
||
|
"t311"
|
||
|
},
|
||
|
{ ATF_NOFLAGS, 0, offsetof(struct UE_TimersAndConstants, n311),
|
||
|
(ASN_TAG_CLASS_CONTEXT | (5 << 2)),
|
||
|
-1, /* IMPLICIT tag at current level */
|
||
|
&asn_DEF_n311_45,
|
||
|
0, /* Defer constraints checking to the member type */
|
||
|
0, /* No PER visible constraints */
|
||
|
0,
|
||
|
"n311"
|
||
|
},
|
||
|
};
|
||
|
static ber_tlv_tag_t asn_DEF_UE_TimersAndConstants_tags_1[] = {
|
||
|
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
||
|
};
|
||
|
static asn_TYPE_tag2member_t asn_MAP_UE_TimersAndConstants_tag2el_1[] = {
|
||
|
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* t300 at 4016 */
|
||
|
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* t301 at 4019 */
|
||
|
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* t310 at 4022 */
|
||
|
{ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* n310 at 4024 */
|
||
|
{ (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* t311 at 4026 */
|
||
|
{ (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* n311 at 4029 */
|
||
|
};
|
||
|
static asn_SEQUENCE_specifics_t asn_SPC_UE_TimersAndConstants_specs_1 = {
|
||
|
sizeof(struct UE_TimersAndConstants),
|
||
|
offsetof(struct UE_TimersAndConstants, _asn_ctx),
|
||
|
asn_MAP_UE_TimersAndConstants_tag2el_1,
|
||
|
6, /* Count of tags in the map */
|
||
|
0, 0, 0, /* Optional elements (not needed) */
|
||
|
5, /* Start extensions */
|
||
|
7 /* Stop extensions */
|
||
|
};
|
||
|
asn_TYPE_descriptor_t asn_DEF_UE_TimersAndConstants = {
|
||
|
"UE-TimersAndConstants",
|
||
|
"UE-TimersAndConstants",
|
||
|
SEQUENCE_free,
|
||
|
SEQUENCE_print,
|
||
|
SEQUENCE_constraint,
|
||
|
SEQUENCE_decode_ber,
|
||
|
SEQUENCE_encode_der,
|
||
|
SEQUENCE_decode_xer,
|
||
|
SEQUENCE_encode_xer,
|
||
|
SEQUENCE_decode_uper,
|
||
|
SEQUENCE_encode_uper,
|
||
|
0, /* Use generic outmost tag fetcher */
|
||
|
asn_DEF_UE_TimersAndConstants_tags_1,
|
||
|
sizeof(asn_DEF_UE_TimersAndConstants_tags_1)
|
||
|
/sizeof(asn_DEF_UE_TimersAndConstants_tags_1[0]), /* 1 */
|
||
|
asn_DEF_UE_TimersAndConstants_tags_1, /* Same as above */
|
||
|
sizeof(asn_DEF_UE_TimersAndConstants_tags_1)
|
||
|
/sizeof(asn_DEF_UE_TimersAndConstants_tags_1[0]), /* 1 */
|
||
|
0, /* No PER visible constraints */
|
||
|
asn_MBR_UE_TimersAndConstants_1,
|
||
|
6, /* Elements count */
|
||
|
&asn_SPC_UE_TimersAndConstants_specs_1 /* Additional specs */
|
||
|
};
|
||
|
|