1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-14 04:00:34 +00:00
This commit is contained in:
Carles Fernandez 2019-10-05 03:17:30 +02:00
commit 94096283e5
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D
671 changed files with 43498 additions and 43517 deletions

View File

@ -97,7 +97,7 @@ Channel.signal=1C
;######### ACQUISITION GLOBAL CONFIG ############
Acquisition_1C.implementation=GPS_L1_CA_PCPS_Acquisition_Fine_Doppler
Acquisition_1C.item_type=gr_complex
Acquisition_1C.coherent_integration_time_ms =1
Acquisition_1C.coherent_integration_time_ms=1
Acquisition_1C.threshold=0.015
;Acquisition_1C.pfa=0.0001
Acquisition_1C.doppler_max=10000

View File

@ -654,7 +654,7 @@ EXCLUDE = @top_srcdir@/docs/html \
@top_srcdir@/cmake \
@top_srcdir@/data \
@top_srcdir@/src/core/libs/supl \
@top_srcdir@/src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr \
@top_srcdir@/src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr \
# The EXCLUDE_SYMLINKS tag can be used select whether or not files or

View File

@ -46,8 +46,8 @@ class Fpga_Acquisition
{
public:
/*!
* \brief Constructor
*/
* \brief Constructor
*/
Fpga_Acquisition(
std::string device_name,
uint32_t nsamples,

View File

@ -40,7 +40,7 @@
*
* cl
* cl_ext_device_fission
* #define USE_CL_DEVICE_FISSION
* #define USE_CL_DEVICE_FISSION
*/
/*! \mainpage

View File

@ -2,7 +2,7 @@
* \file fpga_switch.h
* \brief Switch that connects the HW accelerator queues to the analog front end or the DMA.
* \authors <ul>
* <li> Marc Majoral, 2019. mmajoral(at)cttc.cat
* <li> Marc Majoral, 2019. mmajoral(at)cttc.cat
* <li> Javier Arribas, 2016. jarribas(at)cttc.es
* </ul>
*
@ -47,8 +47,8 @@ class Fpga_Switch
{
public:
/*!
* \brief Constructor
*/
* \brief Constructor
*/
explicit Fpga_Switch(const std::string& device_name);
/*!

View File

@ -65,13 +65,13 @@ class dll_pll_veml_tracking_fpga : public gr::block
{
public:
/*!
* \brief Destructor
*/
* \brief Destructor
*/
~dll_pll_veml_tracking_fpga();
/*!
* \brief Set the channel number and configure some multicorrelator parameters
*/
* \brief Set the channel number and configure some multicorrelator parameters
*/
void set_channel(uint32_t channel);
/*!
@ -85,24 +85,24 @@ public:
void set_gnss_synchro(Gnss_Synchro *p_gnss_synchro);
/*!
* \brief This function starts the tracking process
*/
* \brief This function starts the tracking process
*/
void start_tracking();
/*!
* \brief This function sets a flag that makes general_work to stop in order to finish the tracking process.
*/
* \brief This function sets a flag that makes general_work to stop in order to finish the tracking process.
*/
void stop_tracking();
/*!
* \brief General Work
*/
* \brief General Work
*/
int general_work(int noutput_items, gr_vector_int &ninput_items,
gr_vector_const_void_star &input_items, gr_vector_void_star &output_items);
/*!
* \brief This function disables the HW multicorrelator in the FPGA in order to stop the tracking process
*/
* \brief This function disables the HW multicorrelator in the FPGA in order to stop the tracking process
*/
void reset();
private:

View File

@ -140,7 +140,7 @@ bool cuda_multicorrelator::init_cuda_integrated_resampler(
int n_correlators)
{
// use command-line specified CUDA device, otherwise use device with highest Gflops/s
// findCudaDevice(argc, (const char **)argv);
// findCudaDevice(argc, (const char **)argv);
cudaDeviceProp prop;
int num_devices, device;
cudaGetDeviceCount(&num_devices);
@ -208,8 +208,8 @@ bool cuda_multicorrelator::init_cuda_integrated_resampler(
//******** CudaMalloc version ***********
// input signal GPU memory (can be mapped to CPU memory in shared memory devices!)
// cudaMalloc((void **)&d_sig_in, size);
// cudaMemset(d_sig_in,0,size);
// cudaMalloc((void **)&d_sig_in, size);
// cudaMemset(d_sig_in,0,size);
// Doppler-free signal (internal GPU memory)
cudaMalloc((void **)&d_sig_doppler_wiped, size);
@ -249,20 +249,20 @@ bool cuda_multicorrelator::set_local_code_and_taps(
{
cudaSetDevice(selected_gps_device);
//********* ZERO COPY VERSION ************
// // Get device pointer from host memory. No allocation or memcpy
// cudaError_t code;
// // local code CPU -> GPU copy memory
// code=cudaHostGetDevicePointer((void **)&d_local_codes_in, (void *) local_codes_in, 0);
// if (code!=cudaSuccess)
// {
// printf("cuda cudaHostGetDevicePointer error in set_local_code_and_taps \r\n");
// }
// // Correlator shifts vector CPU -> GPU copy memory (fractional chip shifts are allowed!)
// code=cudaHostGetDevicePointer((void **)&d_shifts_chips, (void *) shifts_chips, 0);
// if (code!=cudaSuccess)
// {
// printf("cuda cudaHostGetDevicePointer error in set_local_code_and_taps \r\n");
// }
// // Get device pointer from host memory. No allocation or memcpy
// cudaError_t code;
// // local code CPU -> GPU copy memory
// code=cudaHostGetDevicePointer((void **)&d_local_codes_in, (void *) local_codes_in, 0);
// if (code!=cudaSuccess)
// {
// printf("cuda cudaHostGetDevicePointer error in set_local_code_and_taps \r\n");
// }
// // Correlator shifts vector CPU -> GPU copy memory (fractional chip shifts are allowed!)
// code=cudaHostGetDevicePointer((void **)&d_shifts_chips, (void *) shifts_chips, 0);
// if (code!=cudaSuccess)
// {
// printf("cuda cudaHostGetDevicePointer error in set_local_code_and_taps \r\n");
// }
//******** CudaMalloc version ***********
//local code CPU -> GPU copy memory

View File

@ -2,7 +2,7 @@
* \file fpga_multicorrelator.h
* \brief FPGA vector correlator class
* \authors <ul>
* <li> Marc Majoral, 2019. mmajoral(at)cttc.cat
* <li> Marc Majoral, 2019. mmajoral(at)cttc.cat
* <li> Javier Arribas, 2019. jarribas(at)cttc.es
* </ul>
*
@ -49,8 +49,8 @@ class Fpga_Multicorrelator_8sc
{
public:
/*!
* \brief Constructor
*/
* \brief Constructor
*/
Fpga_Multicorrelator_8sc(int32_t n_correlators,
const std::string &device_name,
uint32_t dev_file_num,

View File

@ -190,9 +190,9 @@ int Gnss_Sdr_Supl_Client::get_assistance(int i_mcc, int i_mns, int i_lac, int i_
else
{
/*
* If supl_get_assist() fails, the connection remains open
* and the memory/files are not released.
*/
* If supl_get_assist() fails, the connection remains open
* and the memory/files are not released.
*/
supl_close(&ctx);
}
return err;

View File

@ -1,34 +1,34 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#include "Accuracy.h"
int
Accuracy_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= 0 && value <= 127)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= 0 && value <= 127)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
/*
@ -37,109 +37,109 @@ Accuracy_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
*/
static void
Accuracy_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_NativeInteger.free_struct;
td->print_struct = asn_DEF_NativeInteger.print_struct;
td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
td->der_encoder = asn_DEF_NativeInteger.der_encoder;
td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
if(!td->per_constraints)
td->per_constraints = asn_DEF_NativeInteger.per_constraints;
td->elements = asn_DEF_NativeInteger.elements;
td->elements_count = asn_DEF_NativeInteger.elements_count;
td->specifics = asn_DEF_NativeInteger.specifics;
td->free_struct = asn_DEF_NativeInteger.free_struct;
td->print_struct = asn_DEF_NativeInteger.print_struct;
td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
td->der_encoder = asn_DEF_NativeInteger.der_encoder;
td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
if(!td->per_constraints)
td->per_constraints = asn_DEF_NativeInteger.per_constraints;
td->elements = asn_DEF_NativeInteger.elements;
td->elements_count = asn_DEF_NativeInteger.elements_count;
td->specifics = asn_DEF_NativeInteger.specifics;
}
void
Accuracy_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
Accuracy_1_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
void *struct_ptr, int contents_only) {
Accuracy_1_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
}
int
Accuracy_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
Accuracy_1_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
Accuracy_1_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
asn_dec_rval_t
Accuracy_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) {
Accuracy_1_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
void **structure, const void *bufptr, size_t size, int tag_mode) {
Accuracy_1_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
asn_enc_rval_t
Accuracy_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) {
Accuracy_1_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
Accuracy_1_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
asn_dec_rval_t
Accuracy_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) {
Accuracy_1_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
void **structure, const char *opt_mname, const void *bufptr, size_t size) {
Accuracy_1_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
asn_enc_rval_t
Accuracy_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) {
Accuracy_1_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
Accuracy_1_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
asn_dec_rval_t
Accuracy_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) {
Accuracy_1_inherit_TYPE_descriptor(td);
return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
Accuracy_1_inherit_TYPE_descriptor(td);
return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
}
asn_enc_rval_t
Accuracy_encode_uper(asn_TYPE_descriptor_t *td,
asn_per_constraints_t *constraints,
void *structure, asn_per_outp_t *per_out) {
Accuracy_1_inherit_TYPE_descriptor(td);
return td->uper_encoder(td, constraints, structure, per_out);
asn_per_constraints_t *constraints,
void *structure, asn_per_outp_t *per_out) {
Accuracy_1_inherit_TYPE_descriptor(td);
return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_ACCURACY_CONSTR_1 = {
{ APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_Accuracy_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_Accuracy = {
"Accuracy",
"Accuracy",
Accuracy_free,
Accuracy_print,
Accuracy_constraint,
Accuracy_decode_ber,
Accuracy_encode_der,
Accuracy_decode_xer,
Accuracy_encode_xer,
Accuracy_decode_uper,
Accuracy_encode_uper,
0, /* Use generic outmost tag fetcher */
asn_DEF_Accuracy_tags_1,
sizeof(asn_DEF_Accuracy_tags_1)
/sizeof(asn_DEF_Accuracy_tags_1[0]), /* 1 */
asn_DEF_Accuracy_tags_1, /* Same as above */
sizeof(asn_DEF_Accuracy_tags_1)
/sizeof(asn_DEF_Accuracy_tags_1[0]), /* 1 */
&ASN_PER_TYPE_ACCURACY_CONSTR_1,
0, 0, /* No members */
0 /* No specifics */
"Accuracy",
"Accuracy",
Accuracy_free,
Accuracy_print,
Accuracy_constraint,
Accuracy_decode_ber,
Accuracy_encode_der,
Accuracy_decode_xer,
Accuracy_encode_xer,
Accuracy_decode_uper,
Accuracy_encode_uper,
0, /* Use generic outmost tag fetcher */
asn_DEF_Accuracy_tags_1,
sizeof(asn_DEF_Accuracy_tags_1)
/sizeof(asn_DEF_Accuracy_tags_1[0]), /* 1 */
asn_DEF_Accuracy_tags_1, /* Same as above */
sizeof(asn_DEF_Accuracy_tags_1)
/sizeof(asn_DEF_Accuracy_tags_1[0]), /* 1 */
&ASN_PER_TYPE_ACCURACY_CONSTR_1,
0, 0, /* No members */
0 /* No specifics */
};

View File

@ -1,7 +1,7 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#ifndef _Accuracy_H_

View File

@ -1,61 +1,61 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#include "AccuracyOpt.h"
static asn_TYPE_member_t asn_MBR_AccuracyOpt_1[] = {
{ ATF_POINTER, 1, offsetof(struct AccuracyOpt, accuracy),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_Accuracy,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"accuracy"
},
{ ATF_POINTER, 1, offsetof(struct AccuracyOpt, accuracy),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_Accuracy,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"accuracy"
},
};
static int asn_MAP_AccuracyOpt_oms_1[] = { 0 };
static ber_tlv_tag_t asn_DEF_AccuracyOpt_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static asn_TYPE_tag2member_t asn_MAP_AccuracyOpt_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* accuracy at 125 */
};
static asn_SEQUENCE_specifics_t asn_SPC_AccuracyOpt_specs_1 = {
sizeof(struct AccuracyOpt),
offsetof(struct AccuracyOpt, _asn_ctx),
asn_MAP_AccuracyOpt_tag2el_1,
1, /* Count of tags in the map */
asn_MAP_AccuracyOpt_oms_1, /* Optional members */
1, 0, /* Root/Additions */
-1, /* Start extensions */
-1 /* Stop extensions */
sizeof(struct AccuracyOpt),
offsetof(struct AccuracyOpt, _asn_ctx),
asn_MAP_AccuracyOpt_tag2el_1,
1, /* Count of tags in the map */
asn_MAP_AccuracyOpt_oms_1, /* Optional members */
1, 0, /* Root/Additions */
-1, /* Start extensions */
-1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_AccuracyOpt = {
"AccuracyOpt",
"AccuracyOpt",
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_AccuracyOpt_tags_1,
sizeof(asn_DEF_AccuracyOpt_tags_1)
/sizeof(asn_DEF_AccuracyOpt_tags_1[0]), /* 1 */
asn_DEF_AccuracyOpt_tags_1, /* Same as above */
sizeof(asn_DEF_AccuracyOpt_tags_1)
/sizeof(asn_DEF_AccuracyOpt_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
asn_MBR_AccuracyOpt_1,
1, /* Elements count */
&asn_SPC_AccuracyOpt_specs_1 /* Additional specs */
"AccuracyOpt",
"AccuracyOpt",
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_AccuracyOpt_tags_1,
sizeof(asn_DEF_AccuracyOpt_tags_1)
/sizeof(asn_DEF_AccuracyOpt_tags_1[0]), /* 1 */
asn_DEF_AccuracyOpt_tags_1, /* Same as above */
sizeof(asn_DEF_AccuracyOpt_tags_1)
/sizeof(asn_DEF_AccuracyOpt_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
asn_MBR_AccuracyOpt_1,
1, /* Elements count */
&asn_SPC_AccuracyOpt_specs_1 /* Additional specs */
};

View File

@ -1,7 +1,7 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#ifndef _AccuracyOpt_H_

View File

@ -1,69 +1,69 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#include "AcquisAssist.h"
static asn_TYPE_member_t asn_MBR_AcquisAssist_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct AcquisAssist, timeRelation),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_TimeRelation,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"timeRelation"
},
{ ATF_NOFLAGS, 0, offsetof(struct AcquisAssist, acquisList),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_SeqOfAcquisElement,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"acquisList"
},
{ ATF_NOFLAGS, 0, offsetof(struct AcquisAssist, timeRelation),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_TimeRelation,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"timeRelation"
},
{ ATF_NOFLAGS, 0, offsetof(struct AcquisAssist, acquisList),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_SeqOfAcquisElement,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"acquisList"
},
};
static ber_tlv_tag_t asn_DEF_AcquisAssist_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static asn_TYPE_tag2member_t asn_MAP_AcquisAssist_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* timeRelation at 817 */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* acquisList at 822 */
};
static asn_SEQUENCE_specifics_t asn_SPC_AcquisAssist_specs_1 = {
sizeof(struct AcquisAssist),
offsetof(struct AcquisAssist, _asn_ctx),
asn_MAP_AcquisAssist_tag2el_1,
2, /* Count of tags in the map */
0, 0, 0, /* Optional elements (not needed) */
-1, /* Start extensions */
-1 /* Stop extensions */
sizeof(struct AcquisAssist),
offsetof(struct AcquisAssist, _asn_ctx),
asn_MAP_AcquisAssist_tag2el_1,
2, /* Count of tags in the map */
0, 0, 0, /* Optional elements (not needed) */
-1, /* Start extensions */
-1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_AcquisAssist = {
"AcquisAssist",
"AcquisAssist",
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_AcquisAssist_tags_1,
sizeof(asn_DEF_AcquisAssist_tags_1)
/sizeof(asn_DEF_AcquisAssist_tags_1[0]), /* 1 */
asn_DEF_AcquisAssist_tags_1, /* Same as above */
sizeof(asn_DEF_AcquisAssist_tags_1)
/sizeof(asn_DEF_AcquisAssist_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
asn_MBR_AcquisAssist_1,
2, /* Elements count */
&asn_SPC_AcquisAssist_specs_1 /* Additional specs */
"AcquisAssist",
"AcquisAssist",
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_AcquisAssist_tags_1,
sizeof(asn_DEF_AcquisAssist_tags_1)
/sizeof(asn_DEF_AcquisAssist_tags_1[0]), /* 1 */
asn_DEF_AcquisAssist_tags_1, /* Same as above */
sizeof(asn_DEF_AcquisAssist_tags_1)
/sizeof(asn_DEF_AcquisAssist_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
asn_MBR_AcquisAssist_1,
2, /* Elements count */
&asn_SPC_AcquisAssist_specs_1 /* Additional specs */
};

View File

@ -1,7 +1,7 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#ifndef _AcquisAssist_H_

View File

@ -1,238 +1,238 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#include "AcquisElement.h"
static int
memb_doppler0_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= -2048 && value <= 2047)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= -2048 && value <= 2047)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
static int
memb_codePhase_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= 0 && value <= 1022)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= 0 && value <= 1022)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
static int
memb_intCodePhase_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= 0 && value <= 19)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= 0 && value <= 19)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
static int
memb_gpsBitNumber_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= 0 && value <= 3)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= 0 && value <= 3)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
static int
memb_codePhaseSearchWindow_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= 0 && value <= 15)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= 0 && value <= 15)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
static asn_per_constraints_t ASN_PER_MEMB_DOPPLER0_CONSTR_3 = {
{ APC_CONSTRAINED, 12, 12, -2048, 2047 } /* (-2048..2047) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 12, 12, -2048, 2047 } /* (-2048..2047) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_CODE_PHASE_CONSTR_5 = {
{ APC_CONSTRAINED, 10, 10, 0, 1022 } /* (0..1022) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 10, 10, 0, 1022 } /* (0..1022) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_INT_CODE_PHASE_CONSTR_6 = {
{ APC_CONSTRAINED, 5, 5, 0, 19 } /* (0..19) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 5, 5, 0, 19 } /* (0..19) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_GPS_BIT_NUMBER_CONSTR_7 = {
{ APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_CODE_PHASE_SEARCH_WINDOW_CONSTR_8 = {
{ APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_AcquisElement_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct AcquisElement, svid),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_SatelliteID,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"svid"
},
{ ATF_NOFLAGS, 0, offsetof(struct AcquisElement, doppler0),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_doppler0_constraint_1,
&ASN_PER_MEMB_DOPPLER0_CONSTR_3,
0,
"doppler0"
},
{ ATF_POINTER, 1, offsetof(struct AcquisElement, addionalDoppler),
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_AddionalDopplerFields,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"addionalDoppler"
},
{ ATF_NOFLAGS, 0, offsetof(struct AcquisElement, codePhase),
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_codePhase_constraint_1,
&ASN_PER_MEMB_CODE_PHASE_CONSTR_5,
0,
"codePhase"
},
{ ATF_NOFLAGS, 0, offsetof(struct AcquisElement, intCodePhase),
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_intCodePhase_constraint_1,
&ASN_PER_MEMB_INT_CODE_PHASE_CONSTR_6,
0,
"intCodePhase"
},
{ ATF_NOFLAGS, 0, offsetof(struct AcquisElement, gpsBitNumber),
(ASN_TAG_CLASS_CONTEXT | (5 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_gpsBitNumber_constraint_1,
&ASN_PER_MEMB_GPS_BIT_NUMBER_CONSTR_7,
0,
"gpsBitNumber"
},
{ ATF_NOFLAGS, 0, offsetof(struct AcquisElement, codePhaseSearchWindow),
(ASN_TAG_CLASS_CONTEXT | (6 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_codePhaseSearchWindow_constraint_1,
&ASN_PER_MEMB_CODE_PHASE_SEARCH_WINDOW_CONSTR_8,
0,
"codePhaseSearchWindow"
},
{ ATF_POINTER, 1, offsetof(struct AcquisElement, addionalAngle),
(ASN_TAG_CLASS_CONTEXT | (7 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_AddionalAngleFields,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"addionalAngle"
},
{ ATF_NOFLAGS, 0, offsetof(struct AcquisElement, svid),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_SatelliteID,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"svid"
},
{ ATF_NOFLAGS, 0, offsetof(struct AcquisElement, doppler0),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_doppler0_constraint_1,
&ASN_PER_MEMB_DOPPLER0_CONSTR_3,
0,
"doppler0"
},
{ ATF_POINTER, 1, offsetof(struct AcquisElement, addionalDoppler),
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_AddionalDopplerFields,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"addionalDoppler"
},
{ ATF_NOFLAGS, 0, offsetof(struct AcquisElement, codePhase),
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_codePhase_constraint_1,
&ASN_PER_MEMB_CODE_PHASE_CONSTR_5,
0,
"codePhase"
},
{ ATF_NOFLAGS, 0, offsetof(struct AcquisElement, intCodePhase),
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_intCodePhase_constraint_1,
&ASN_PER_MEMB_INT_CODE_PHASE_CONSTR_6,
0,
"intCodePhase"
},
{ ATF_NOFLAGS, 0, offsetof(struct AcquisElement, gpsBitNumber),
(ASN_TAG_CLASS_CONTEXT | (5 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_gpsBitNumber_constraint_1,
&ASN_PER_MEMB_GPS_BIT_NUMBER_CONSTR_7,
0,
"gpsBitNumber"
},
{ ATF_NOFLAGS, 0, offsetof(struct AcquisElement, codePhaseSearchWindow),
(ASN_TAG_CLASS_CONTEXT | (6 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_codePhaseSearchWindow_constraint_1,
&ASN_PER_MEMB_CODE_PHASE_SEARCH_WINDOW_CONSTR_8,
0,
"codePhaseSearchWindow"
},
{ ATF_POINTER, 1, offsetof(struct AcquisElement, addionalAngle),
(ASN_TAG_CLASS_CONTEXT | (7 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_AddionalAngleFields,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"addionalAngle"
},
};
static int asn_MAP_AcquisElement_oms_1[] = { 2, 7 };
static ber_tlv_tag_t asn_DEF_AcquisElement_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static asn_TYPE_tag2member_t asn_MAP_AcquisElement_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svid at 834 */
@ -245,37 +245,37 @@ static asn_TYPE_tag2member_t asn_MAP_AcquisElement_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* addionalAngle at 844 */
};
static asn_SEQUENCE_specifics_t asn_SPC_AcquisElement_specs_1 = {
sizeof(struct AcquisElement),
offsetof(struct AcquisElement, _asn_ctx),
asn_MAP_AcquisElement_tag2el_1,
8, /* Count of tags in the map */
asn_MAP_AcquisElement_oms_1, /* Optional members */
2, 0, /* Root/Additions */
-1, /* Start extensions */
-1 /* Stop extensions */
sizeof(struct AcquisElement),
offsetof(struct AcquisElement, _asn_ctx),
asn_MAP_AcquisElement_tag2el_1,
8, /* Count of tags in the map */
asn_MAP_AcquisElement_oms_1, /* Optional members */
2, 0, /* Root/Additions */
-1, /* Start extensions */
-1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_AcquisElement = {
"AcquisElement",
"AcquisElement",
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_AcquisElement_tags_1,
sizeof(asn_DEF_AcquisElement_tags_1)
/sizeof(asn_DEF_AcquisElement_tags_1[0]), /* 1 */
asn_DEF_AcquisElement_tags_1, /* Same as above */
sizeof(asn_DEF_AcquisElement_tags_1)
/sizeof(asn_DEF_AcquisElement_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
asn_MBR_AcquisElement_1,
8, /* Elements count */
&asn_SPC_AcquisElement_specs_1 /* Additional specs */
"AcquisElement",
"AcquisElement",
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_AcquisElement_tags_1,
sizeof(asn_DEF_AcquisElement_tags_1)
/sizeof(asn_DEF_AcquisElement_tags_1[0]), /* 1 */
asn_DEF_AcquisElement_tags_1, /* Same as above */
sizeof(asn_DEF_AcquisElement_tags_1)
/sizeof(asn_DEF_AcquisElement_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
asn_MBR_AcquisElement_1,
8, /* Elements count */
&asn_SPC_AcquisElement_specs_1 /* Additional specs */
};

View File

@ -1,7 +1,7 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#ifndef _AcquisElement_H_

View File

@ -1,129 +1,129 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#include "AddionalAngleFields.h"
static int
memb_azimuth_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= 0 && value <= 31)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= 0 && value <= 31)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
static int
memb_elevation_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= 0 && value <= 7)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= 0 && value <= 7)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
static asn_per_constraints_t ASN_PER_MEMB_AZIMUTH_CONSTR_2 = {
{ APC_CONSTRAINED, 5, 5, 0, 31 } /* (0..31) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 5, 5, 0, 31 } /* (0..31) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_ELEVATION_CONSTR_3 = {
{ APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_AddionalAngleFields_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct AddionalAngleFields, azimuth),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_azimuth_constraint_1,
&ASN_PER_MEMB_AZIMUTH_CONSTR_2,
0,
"azimuth"
},
{ ATF_NOFLAGS, 0, offsetof(struct AddionalAngleFields, elevation),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_elevation_constraint_1,
&ASN_PER_MEMB_ELEVATION_CONSTR_3,
0,
"elevation"
},
{ ATF_NOFLAGS, 0, offsetof(struct AddionalAngleFields, azimuth),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_azimuth_constraint_1,
&ASN_PER_MEMB_AZIMUTH_CONSTR_2,
0,
"azimuth"
},
{ ATF_NOFLAGS, 0, offsetof(struct AddionalAngleFields, elevation),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_elevation_constraint_1,
&ASN_PER_MEMB_ELEVATION_CONSTR_3,
0,
"elevation"
},
};
static ber_tlv_tag_t asn_DEF_AddionalAngleFields_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static asn_TYPE_tag2member_t asn_MAP_AddionalAngleFields_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* azimuth at 858 */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* elevation at 860 */
};
static asn_SEQUENCE_specifics_t asn_SPC_AddionalAngleFields_specs_1 = {
sizeof(struct AddionalAngleFields),
offsetof(struct AddionalAngleFields, _asn_ctx),
asn_MAP_AddionalAngleFields_tag2el_1,
2, /* Count of tags in the map */
0, 0, 0, /* Optional elements (not needed) */
-1, /* Start extensions */
-1 /* Stop extensions */
sizeof(struct AddionalAngleFields),
offsetof(struct AddionalAngleFields, _asn_ctx),
asn_MAP_AddionalAngleFields_tag2el_1,
2, /* Count of tags in the map */
0, 0, 0, /* Optional elements (not needed) */
-1, /* Start extensions */
-1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_AddionalAngleFields = {
"AddionalAngleFields",
"AddionalAngleFields",
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_AddionalAngleFields_tags_1,
sizeof(asn_DEF_AddionalAngleFields_tags_1)
/sizeof(asn_DEF_AddionalAngleFields_tags_1[0]), /* 1 */
asn_DEF_AddionalAngleFields_tags_1, /* Same as above */
sizeof(asn_DEF_AddionalAngleFields_tags_1)
/sizeof(asn_DEF_AddionalAngleFields_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
asn_MBR_AddionalAngleFields_1,
2, /* Elements count */
&asn_SPC_AddionalAngleFields_specs_1 /* Additional specs */
"AddionalAngleFields",
"AddionalAngleFields",
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_AddionalAngleFields_tags_1,
sizeof(asn_DEF_AddionalAngleFields_tags_1)
/sizeof(asn_DEF_AddionalAngleFields_tags_1[0]), /* 1 */
asn_DEF_AddionalAngleFields_tags_1, /* Same as above */
sizeof(asn_DEF_AddionalAngleFields_tags_1)
/sizeof(asn_DEF_AddionalAngleFields_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
asn_MBR_AddionalAngleFields_1,
2, /* Elements count */
&asn_SPC_AddionalAngleFields_specs_1 /* Additional specs */
};

View File

@ -1,7 +1,7 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#ifndef _AddionalAngleFields_H_

View File

@ -1,129 +1,129 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#include "AddionalDopplerFields.h"
static int
memb_doppler1_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= 0 && value <= 63)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= 0 && value <= 63)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
static int
memb_dopplerUncertainty_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= 0 && value <= 7)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= 0 && value <= 7)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
static asn_per_constraints_t ASN_PER_MEMB_DOPPLER1_CONSTR_2 = {
{ APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_DOPPLER_UNCERTAINTY_CONSTR_3 = {
{ APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_AddionalDopplerFields_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct AddionalDopplerFields, doppler1),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_doppler1_constraint_1,
&ASN_PER_MEMB_DOPPLER1_CONSTR_2,
0,
"doppler1"
},
{ ATF_NOFLAGS, 0, offsetof(struct AddionalDopplerFields, dopplerUncertainty),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_dopplerUncertainty_constraint_1,
&ASN_PER_MEMB_DOPPLER_UNCERTAINTY_CONSTR_3,
0,
"dopplerUncertainty"
},
{ ATF_NOFLAGS, 0, offsetof(struct AddionalDopplerFields, doppler1),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_doppler1_constraint_1,
&ASN_PER_MEMB_DOPPLER1_CONSTR_2,
0,
"doppler1"
},
{ ATF_NOFLAGS, 0, offsetof(struct AddionalDopplerFields, dopplerUncertainty),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_dopplerUncertainty_constraint_1,
&ASN_PER_MEMB_DOPPLER_UNCERTAINTY_CONSTR_3,
0,
"dopplerUncertainty"
},
};
static ber_tlv_tag_t asn_DEF_AddionalDopplerFields_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static asn_TYPE_tag2member_t asn_MAP_AddionalDopplerFields_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* doppler1 at 850 */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* dopplerUncertainty at 851 */
};
static asn_SEQUENCE_specifics_t asn_SPC_AddionalDopplerFields_specs_1 = {
sizeof(struct AddionalDopplerFields),
offsetof(struct AddionalDopplerFields, _asn_ctx),
asn_MAP_AddionalDopplerFields_tag2el_1,
2, /* Count of tags in the map */
0, 0, 0, /* Optional elements (not needed) */
-1, /* Start extensions */
-1 /* Stop extensions */
sizeof(struct AddionalDopplerFields),
offsetof(struct AddionalDopplerFields, _asn_ctx),
asn_MAP_AddionalDopplerFields_tag2el_1,
2, /* Count of tags in the map */
0, 0, 0, /* Optional elements (not needed) */
-1, /* Start extensions */
-1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_AddionalDopplerFields = {
"AddionalDopplerFields",
"AddionalDopplerFields",
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_AddionalDopplerFields_tags_1,
sizeof(asn_DEF_AddionalDopplerFields_tags_1)
/sizeof(asn_DEF_AddionalDopplerFields_tags_1[0]), /* 1 */
asn_DEF_AddionalDopplerFields_tags_1, /* Same as above */
sizeof(asn_DEF_AddionalDopplerFields_tags_1)
/sizeof(asn_DEF_AddionalDopplerFields_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
asn_MBR_AddionalDopplerFields_1,
2, /* Elements count */
&asn_SPC_AddionalDopplerFields_specs_1 /* Additional specs */
"AddionalDopplerFields",
"AddionalDopplerFields",
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_AddionalDopplerFields_tags_1,
sizeof(asn_DEF_AddionalDopplerFields_tags_1)
/sizeof(asn_DEF_AddionalDopplerFields_tags_1[0]), /* 1 */
asn_DEF_AddionalDopplerFields_tags_1, /* Same as above */
sizeof(asn_DEF_AddionalDopplerFields_tags_1)
/sizeof(asn_DEF_AddionalDopplerFields_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
asn_MBR_AddionalDopplerFields_1,
2, /* Elements count */
&asn_SPC_AddionalDopplerFields_specs_1 /* Additional specs */
};

View File

@ -1,7 +1,7 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#ifndef _AddionalDopplerFields_H_

View File

@ -1,43 +1,43 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#include "AdditionalAssistanceData.h"
static asn_TYPE_member_t asn_MBR_AdditionalAssistanceData_1[] = {
{ ATF_POINTER, 3, offsetof(struct AdditionalAssistanceData, gpsAssistanceData),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_GPSAssistanceData,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"gpsAssistanceData"
},
{ ATF_POINTER, 2, offsetof(struct AdditionalAssistanceData, extensionContainer),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_ExtensionContainer,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"extensionContainer"
},
{ ATF_POINTER, 1, offsetof(struct AdditionalAssistanceData, ganssAssistanceData),
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_GANSSAssistanceData,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"ganssAssistanceData"
},
{ ATF_POINTER, 3, offsetof(struct AdditionalAssistanceData, gpsAssistanceData),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_GPSAssistanceData,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"gpsAssistanceData"
},
{ ATF_POINTER, 2, offsetof(struct AdditionalAssistanceData, extensionContainer),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_ExtensionContainer,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"extensionContainer"
},
{ ATF_POINTER, 1, offsetof(struct AdditionalAssistanceData, ganssAssistanceData),
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_GANSSAssistanceData,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"ganssAssistanceData"
},
};
static int asn_MAP_AdditionalAssistanceData_oms_1[] = { 0, 1, 2 };
static ber_tlv_tag_t asn_DEF_AdditionalAssistanceData_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static asn_TYPE_tag2member_t asn_MAP_AdditionalAssistanceData_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gpsAssistanceData at 520 */
@ -45,37 +45,37 @@ static asn_TYPE_tag2member_t asn_MAP_AdditionalAssistanceData_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ganssAssistanceData at 523 */
};
static asn_SEQUENCE_specifics_t asn_SPC_AdditionalAssistanceData_specs_1 = {
sizeof(struct AdditionalAssistanceData),
offsetof(struct AdditionalAssistanceData, _asn_ctx),
asn_MAP_AdditionalAssistanceData_tag2el_1,
3, /* Count of tags in the map */
asn_MAP_AdditionalAssistanceData_oms_1, /* Optional members */
2, 1, /* Root/Additions */
1, /* Start extensions */
4 /* Stop extensions */
sizeof(struct AdditionalAssistanceData),
offsetof(struct AdditionalAssistanceData, _asn_ctx),
asn_MAP_AdditionalAssistanceData_tag2el_1,
3, /* Count of tags in the map */
asn_MAP_AdditionalAssistanceData_oms_1, /* Optional members */
2, 1, /* Root/Additions */
1, /* Start extensions */
4 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_AdditionalAssistanceData = {
"AdditionalAssistanceData",
"AdditionalAssistanceData",
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_AdditionalAssistanceData_tags_1,
sizeof(asn_DEF_AdditionalAssistanceData_tags_1)
/sizeof(asn_DEF_AdditionalAssistanceData_tags_1[0]), /* 1 */
asn_DEF_AdditionalAssistanceData_tags_1, /* Same as above */
sizeof(asn_DEF_AdditionalAssistanceData_tags_1)
/sizeof(asn_DEF_AdditionalAssistanceData_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
asn_MBR_AdditionalAssistanceData_1,
3, /* Elements count */
&asn_SPC_AdditionalAssistanceData_specs_1 /* Additional specs */
"AdditionalAssistanceData",
"AdditionalAssistanceData",
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_AdditionalAssistanceData_tags_1,
sizeof(asn_DEF_AdditionalAssistanceData_tags_1)
/sizeof(asn_DEF_AdditionalAssistanceData_tags_1[0]), /* 1 */
asn_DEF_AdditionalAssistanceData_tags_1, /* Same as above */
sizeof(asn_DEF_AdditionalAssistanceData_tags_1)
/sizeof(asn_DEF_AdditionalAssistanceData_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
asn_MBR_AdditionalAssistanceData_1,
3, /* Elements count */
&asn_SPC_AdditionalAssistanceData_specs_1 /* Additional specs */
};

View File

@ -1,7 +1,7 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#ifndef _AdditionalAssistanceData_H_
@ -27,9 +27,9 @@ extern "C"
GPSAssistanceData_t *gpsAssistanceData /* OPTIONAL */;
ExtensionContainer_t *extensionContainer /* OPTIONAL */;
/*
* This type is extensible,
* possible extensions are below.
*/
* This type is extensible,
* possible extensions are below.
*/
GANSSAssistanceData_t *ganssAssistanceData /* OPTIONAL */;
/* Context for parsing across buffer boundaries */

View File

@ -1,129 +1,129 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#include "AdditionalDopplerFields.h"
static int
memb_doppler1_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= 0 && value <= 63)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= 0 && value <= 63)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
static int
memb_dopplerUncertainty_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= 0 && value <= 4)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= 0 && value <= 4)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
static asn_per_constraints_t ASN_PER_MEMB_DOPPLER1_CONSTR_2 = {
{ APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_DOPPLER_UNCERTAINTY_CONSTR_3 = {
{ APC_CONSTRAINED, 3, 3, 0, 4 } /* (0..4) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 3, 3, 0, 4 } /* (0..4) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_AdditionalDopplerFields_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct AdditionalDopplerFields, doppler1),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_doppler1_constraint_1,
&ASN_PER_MEMB_DOPPLER1_CONSTR_2,
0,
"doppler1"
},
{ ATF_NOFLAGS, 0, offsetof(struct AdditionalDopplerFields, dopplerUncertainty),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_dopplerUncertainty_constraint_1,
&ASN_PER_MEMB_DOPPLER_UNCERTAINTY_CONSTR_3,
0,
"dopplerUncertainty"
},
{ ATF_NOFLAGS, 0, offsetof(struct AdditionalDopplerFields, doppler1),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_doppler1_constraint_1,
&ASN_PER_MEMB_DOPPLER1_CONSTR_2,
0,
"doppler1"
},
{ ATF_NOFLAGS, 0, offsetof(struct AdditionalDopplerFields, dopplerUncertainty),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_dopplerUncertainty_constraint_1,
&ASN_PER_MEMB_DOPPLER_UNCERTAINTY_CONSTR_3,
0,
"dopplerUncertainty"
},
};
static ber_tlv_tag_t asn_DEF_AdditionalDopplerFields_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static asn_TYPE_tag2member_t asn_MAP_AdditionalDopplerFields_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* doppler1 at 1342 */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* dopplerUncertainty at 1343 */
};
static asn_SEQUENCE_specifics_t asn_SPC_AdditionalDopplerFields_specs_1 = {
sizeof(struct AdditionalDopplerFields),
offsetof(struct AdditionalDopplerFields, _asn_ctx),
asn_MAP_AdditionalDopplerFields_tag2el_1,
2, /* Count of tags in the map */
0, 0, 0, /* Optional elements (not needed) */
-1, /* Start extensions */
-1 /* Stop extensions */
sizeof(struct AdditionalDopplerFields),
offsetof(struct AdditionalDopplerFields, _asn_ctx),
asn_MAP_AdditionalDopplerFields_tag2el_1,
2, /* Count of tags in the map */
0, 0, 0, /* Optional elements (not needed) */
-1, /* Start extensions */
-1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_AdditionalDopplerFields = {
"AdditionalDopplerFields",
"AdditionalDopplerFields",
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_AdditionalDopplerFields_tags_1,
sizeof(asn_DEF_AdditionalDopplerFields_tags_1)
/sizeof(asn_DEF_AdditionalDopplerFields_tags_1[0]), /* 1 */
asn_DEF_AdditionalDopplerFields_tags_1, /* Same as above */
sizeof(asn_DEF_AdditionalDopplerFields_tags_1)
/sizeof(asn_DEF_AdditionalDopplerFields_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
asn_MBR_AdditionalDopplerFields_1,
2, /* Elements count */
&asn_SPC_AdditionalDopplerFields_specs_1 /* Additional specs */
"AdditionalDopplerFields",
"AdditionalDopplerFields",
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_AdditionalDopplerFields_tags_1,
sizeof(asn_DEF_AdditionalDopplerFields_tags_1)
/sizeof(asn_DEF_AdditionalDopplerFields_tags_1[0]), /* 1 */
asn_DEF_AdditionalDopplerFields_tags_1, /* Same as above */
sizeof(asn_DEF_AdditionalDopplerFields_tags_1)
/sizeof(asn_DEF_AdditionalDopplerFields_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
asn_MBR_AdditionalDopplerFields_1,
2, /* Elements count */
&asn_SPC_AdditionalDopplerFields_specs_1 /* Additional specs */
};

View File

@ -1,7 +1,7 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#ifndef _AdditionalDopplerFields_H_

View File

@ -1,34 +1,34 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#include "AlertFlag.h"
int
AlertFlag_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= 0 && value <= 1)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= 0 && value <= 1)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
/*
@ -37,109 +37,109 @@ AlertFlag_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
*/
static void
AlertFlag_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_NativeInteger.free_struct;
td->print_struct = asn_DEF_NativeInteger.print_struct;
td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
td->der_encoder = asn_DEF_NativeInteger.der_encoder;
td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
if(!td->per_constraints)
td->per_constraints = asn_DEF_NativeInteger.per_constraints;
td->elements = asn_DEF_NativeInteger.elements;
td->elements_count = asn_DEF_NativeInteger.elements_count;
td->specifics = asn_DEF_NativeInteger.specifics;
td->free_struct = asn_DEF_NativeInteger.free_struct;
td->print_struct = asn_DEF_NativeInteger.print_struct;
td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
td->der_encoder = asn_DEF_NativeInteger.der_encoder;
td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
if(!td->per_constraints)
td->per_constraints = asn_DEF_NativeInteger.per_constraints;
td->elements = asn_DEF_NativeInteger.elements;
td->elements_count = asn_DEF_NativeInteger.elements_count;
td->specifics = asn_DEF_NativeInteger.specifics;
}
void
AlertFlag_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
AlertFlag_1_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
void *struct_ptr, int contents_only) {
AlertFlag_1_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
}
int
AlertFlag_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
AlertFlag_1_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
AlertFlag_1_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
asn_dec_rval_t
AlertFlag_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) {
AlertFlag_1_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
void **structure, const void *bufptr, size_t size, int tag_mode) {
AlertFlag_1_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
asn_enc_rval_t
AlertFlag_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) {
AlertFlag_1_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
AlertFlag_1_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
asn_dec_rval_t
AlertFlag_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) {
AlertFlag_1_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
void **structure, const char *opt_mname, const void *bufptr, size_t size) {
AlertFlag_1_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
asn_enc_rval_t
AlertFlag_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) {
AlertFlag_1_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
AlertFlag_1_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
asn_dec_rval_t
AlertFlag_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) {
AlertFlag_1_inherit_TYPE_descriptor(td);
return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
AlertFlag_1_inherit_TYPE_descriptor(td);
return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
}
asn_enc_rval_t
AlertFlag_encode_uper(asn_TYPE_descriptor_t *td,
asn_per_constraints_t *constraints,
void *structure, asn_per_outp_t *per_out) {
AlertFlag_1_inherit_TYPE_descriptor(td);
return td->uper_encoder(td, constraints, structure, per_out);
asn_per_constraints_t *constraints,
void *structure, asn_per_outp_t *per_out) {
AlertFlag_1_inherit_TYPE_descriptor(td);
return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_ALERT_FLAG_CONSTR_1 = {
{ APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_AlertFlag_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_AlertFlag = {
"AlertFlag",
"AlertFlag",
AlertFlag_free,
AlertFlag_print,
AlertFlag_constraint,
AlertFlag_decode_ber,
AlertFlag_encode_der,
AlertFlag_decode_xer,
AlertFlag_encode_xer,
AlertFlag_decode_uper,
AlertFlag_encode_uper,
0, /* Use generic outmost tag fetcher */
asn_DEF_AlertFlag_tags_1,
sizeof(asn_DEF_AlertFlag_tags_1)
/sizeof(asn_DEF_AlertFlag_tags_1[0]), /* 1 */
asn_DEF_AlertFlag_tags_1, /* Same as above */
sizeof(asn_DEF_AlertFlag_tags_1)
/sizeof(asn_DEF_AlertFlag_tags_1[0]), /* 1 */
&ASN_PER_TYPE_ALERT_FLAG_CONSTR_1,
0, 0, /* No members */
0 /* No specifics */
"AlertFlag",
"AlertFlag",
AlertFlag_free,
AlertFlag_print,
AlertFlag_constraint,
AlertFlag_decode_ber,
AlertFlag_encode_der,
AlertFlag_decode_xer,
AlertFlag_encode_xer,
AlertFlag_decode_uper,
AlertFlag_encode_uper,
0, /* Use generic outmost tag fetcher */
asn_DEF_AlertFlag_tags_1,
sizeof(asn_DEF_AlertFlag_tags_1)
/sizeof(asn_DEF_AlertFlag_tags_1[0]), /* 1 */
asn_DEF_AlertFlag_tags_1, /* Same as above */
sizeof(asn_DEF_AlertFlag_tags_1)
/sizeof(asn_DEF_AlertFlag_tags_1[0]), /* 1 */
&ASN_PER_TYPE_ALERT_FLAG_CONSTR_1,
0, 0, /* No members */
0 /* No specifics */
};

View File

@ -1,7 +1,7 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#ifndef _AlertFlag_H_

View File

@ -1,405 +1,405 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#include "Almanac-KeplerianSet.h"
static int
memb_kepAlmanacE_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= 0 && value <= 2047)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= 0 && value <= 2047)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
static int
memb_kepAlmanacDeltaI_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= -1024 && value <= 1023)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= -1024 && value <= 1023)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
static int
memb_kepAlmanacOmegaDot_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= -1024 && value <= 1023)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= -1024 && value <= 1023)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
static int
memb_kepSVHealth_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= 0 && value <= 15)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= 0 && value <= 15)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
static int
memb_kepAlmanacAPowerHalf_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= -65536 && value <= 65535)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= -65536 && value <= 65535)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
static int
memb_kepAlmanacOmega0_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= -32768 && value <= 32767)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= -32768 && value <= 32767)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
static int
memb_kepAlmanacW_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= -32768 && value <= 32767)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= -32768 && value <= 32767)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
static int
memb_kepAlmanacM0_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= -32768 && value <= 32767)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= -32768 && value <= 32767)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
static int
memb_kepAlmanacAF0_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= -8192 && value <= 8191)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= -8192 && value <= 8191)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
static int
memb_kepAlmanacAF1_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= -1024 && value <= 1023)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= -1024 && value <= 1023)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
static asn_per_constraints_t ASN_PER_MEMB_KEP_ALMANAC_E_CONSTR_2 = {
{ APC_CONSTRAINED, 11, 11, 0, 2047 } /* (0..2047) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 11, 11, 0, 2047 } /* (0..2047) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_KEP_ALMANAC_DELTA_I_CONSTR_3 = {
{ APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_KEP_ALMANAC_OMEGA_DOT_CONSTR_4 = {
{ APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_KEP_SV_HEALTH_CONSTR_5 = {
{ APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_KEP_ALMANAC_A_POWER_HALF_CONSTR_6 = {
{ APC_CONSTRAINED, 17, -1, -65536, 65535 } /* (-65536..65535) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 17, -1, -65536, 65535 } /* (-65536..65535) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_KEP_ALMANAC_OMEGA0_CONSTR_7 = {
{ APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_KEP_ALMANAC_W_CONSTR_8 = {
{ APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_KEP_ALMANAC_M0_CONSTR_9 = {
{ APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_KEP_ALMANAC_A_F0_CONSTR_10 = {
{ APC_CONSTRAINED, 14, 14, -8192, 8191 } /* (-8192..8191) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 14, 14, -8192, 8191 } /* (-8192..8191) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_KEP_ALMANAC_A_F1_CONSTR_11 = {
{ APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_Almanac_KeplerianSet_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct Almanac_KeplerianSet, kepAlmanacE),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_kepAlmanacE_constraint_1,
&ASN_PER_MEMB_KEP_ALMANAC_E_CONSTR_2,
0,
"kepAlmanacE"
},
{ ATF_NOFLAGS, 0, offsetof(struct Almanac_KeplerianSet, kepAlmanacDeltaI),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_kepAlmanacDeltaI_constraint_1,
&ASN_PER_MEMB_KEP_ALMANAC_DELTA_I_CONSTR_3,
0,
"kepAlmanacDeltaI"
},
{ ATF_NOFLAGS, 0, offsetof(struct Almanac_KeplerianSet, kepAlmanacOmegaDot),
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_kepAlmanacOmegaDot_constraint_1,
&ASN_PER_MEMB_KEP_ALMANAC_OMEGA_DOT_CONSTR_4,
0,
"kepAlmanacOmegaDot"
},
{ ATF_NOFLAGS, 0, offsetof(struct Almanac_KeplerianSet, kepSVHealth),
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_kepSVHealth_constraint_1,
&ASN_PER_MEMB_KEP_SV_HEALTH_CONSTR_5,
0,
"kepSVHealth"
},
{ ATF_NOFLAGS, 0, offsetof(struct Almanac_KeplerianSet, kepAlmanacAPowerHalf),
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_kepAlmanacAPowerHalf_constraint_1,
&ASN_PER_MEMB_KEP_ALMANAC_A_POWER_HALF_CONSTR_6,
0,
"kepAlmanacAPowerHalf"
},
{ ATF_NOFLAGS, 0, offsetof(struct Almanac_KeplerianSet, kepAlmanacOmega0),
(ASN_TAG_CLASS_CONTEXT | (5 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_kepAlmanacOmega0_constraint_1,
&ASN_PER_MEMB_KEP_ALMANAC_OMEGA0_CONSTR_7,
0,
"kepAlmanacOmega0"
},
{ ATF_NOFLAGS, 0, offsetof(struct Almanac_KeplerianSet, kepAlmanacW),
(ASN_TAG_CLASS_CONTEXT | (6 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_kepAlmanacW_constraint_1,
&ASN_PER_MEMB_KEP_ALMANAC_W_CONSTR_8,
0,
"kepAlmanacW"
},
{ ATF_NOFLAGS, 0, offsetof(struct Almanac_KeplerianSet, kepAlmanacM0),
(ASN_TAG_CLASS_CONTEXT | (7 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_kepAlmanacM0_constraint_1,
&ASN_PER_MEMB_KEP_ALMANAC_M0_CONSTR_9,
0,
"kepAlmanacM0"
},
{ ATF_NOFLAGS, 0, offsetof(struct Almanac_KeplerianSet, kepAlmanacAF0),
(ASN_TAG_CLASS_CONTEXT | (8 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_kepAlmanacAF0_constraint_1,
&ASN_PER_MEMB_KEP_ALMANAC_A_F0_CONSTR_10,
0,
"kepAlmanacAF0"
},
{ ATF_NOFLAGS, 0, offsetof(struct Almanac_KeplerianSet, kepAlmanacAF1),
(ASN_TAG_CLASS_CONTEXT | (9 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_kepAlmanacAF1_constraint_1,
&ASN_PER_MEMB_KEP_ALMANAC_A_F1_CONSTR_11,
0,
"kepAlmanacAF1"
},
{ ATF_NOFLAGS, 0, offsetof(struct Almanac_KeplerianSet, kepAlmanacE),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_kepAlmanacE_constraint_1,
&ASN_PER_MEMB_KEP_ALMANAC_E_CONSTR_2,
0,
"kepAlmanacE"
},
{ ATF_NOFLAGS, 0, offsetof(struct Almanac_KeplerianSet, kepAlmanacDeltaI),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_kepAlmanacDeltaI_constraint_1,
&ASN_PER_MEMB_KEP_ALMANAC_DELTA_I_CONSTR_3,
0,
"kepAlmanacDeltaI"
},
{ ATF_NOFLAGS, 0, offsetof(struct Almanac_KeplerianSet, kepAlmanacOmegaDot),
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_kepAlmanacOmegaDot_constraint_1,
&ASN_PER_MEMB_KEP_ALMANAC_OMEGA_DOT_CONSTR_4,
0,
"kepAlmanacOmegaDot"
},
{ ATF_NOFLAGS, 0, offsetof(struct Almanac_KeplerianSet, kepSVHealth),
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_kepSVHealth_constraint_1,
&ASN_PER_MEMB_KEP_SV_HEALTH_CONSTR_5,
0,
"kepSVHealth"
},
{ ATF_NOFLAGS, 0, offsetof(struct Almanac_KeplerianSet, kepAlmanacAPowerHalf),
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_kepAlmanacAPowerHalf_constraint_1,
&ASN_PER_MEMB_KEP_ALMANAC_A_POWER_HALF_CONSTR_6,
0,
"kepAlmanacAPowerHalf"
},
{ ATF_NOFLAGS, 0, offsetof(struct Almanac_KeplerianSet, kepAlmanacOmega0),
(ASN_TAG_CLASS_CONTEXT | (5 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_kepAlmanacOmega0_constraint_1,
&ASN_PER_MEMB_KEP_ALMANAC_OMEGA0_CONSTR_7,
0,
"kepAlmanacOmega0"
},
{ ATF_NOFLAGS, 0, offsetof(struct Almanac_KeplerianSet, kepAlmanacW),
(ASN_TAG_CLASS_CONTEXT | (6 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_kepAlmanacW_constraint_1,
&ASN_PER_MEMB_KEP_ALMANAC_W_CONSTR_8,
0,
"kepAlmanacW"
},
{ ATF_NOFLAGS, 0, offsetof(struct Almanac_KeplerianSet, kepAlmanacM0),
(ASN_TAG_CLASS_CONTEXT | (7 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_kepAlmanacM0_constraint_1,
&ASN_PER_MEMB_KEP_ALMANAC_M0_CONSTR_9,
0,
"kepAlmanacM0"
},
{ ATF_NOFLAGS, 0, offsetof(struct Almanac_KeplerianSet, kepAlmanacAF0),
(ASN_TAG_CLASS_CONTEXT | (8 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_kepAlmanacAF0_constraint_1,
&ASN_PER_MEMB_KEP_ALMANAC_A_F0_CONSTR_10,
0,
"kepAlmanacAF0"
},
{ ATF_NOFLAGS, 0, offsetof(struct Almanac_KeplerianSet, kepAlmanacAF1),
(ASN_TAG_CLASS_CONTEXT | (9 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_kepAlmanacAF1_constraint_1,
&ASN_PER_MEMB_KEP_ALMANAC_A_F1_CONSTR_11,
0,
"kepAlmanacAF1"
},
};
static ber_tlv_tag_t asn_DEF_Almanac_KeplerianSet_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static asn_TYPE_tag2member_t asn_MAP_Almanac_KeplerianSet_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* kepAlmanacE at 1368 */
@ -414,36 +414,36 @@ static asn_TYPE_tag2member_t asn_MAP_Almanac_KeplerianSet_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 } /* kepAlmanacAF1 at 1377 */
};
static asn_SEQUENCE_specifics_t asn_SPC_Almanac_KeplerianSet_specs_1 = {
sizeof(struct Almanac_KeplerianSet),
offsetof(struct Almanac_KeplerianSet, _asn_ctx),
asn_MAP_Almanac_KeplerianSet_tag2el_1,
10, /* Count of tags in the map */
0, 0, 0, /* Optional elements (not needed) */
-1, /* Start extensions */
-1 /* Stop extensions */
sizeof(struct Almanac_KeplerianSet),
offsetof(struct Almanac_KeplerianSet, _asn_ctx),
asn_MAP_Almanac_KeplerianSet_tag2el_1,
10, /* Count of tags in the map */
0, 0, 0, /* Optional elements (not needed) */
-1, /* Start extensions */
-1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_Almanac_KeplerianSet = {
"Almanac-KeplerianSet",
"Almanac-KeplerianSet",
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_Almanac_KeplerianSet_tags_1,
sizeof(asn_DEF_Almanac_KeplerianSet_tags_1)
/sizeof(asn_DEF_Almanac_KeplerianSet_tags_1[0]), /* 1 */
asn_DEF_Almanac_KeplerianSet_tags_1, /* Same as above */
sizeof(asn_DEF_Almanac_KeplerianSet_tags_1)
/sizeof(asn_DEF_Almanac_KeplerianSet_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
asn_MBR_Almanac_KeplerianSet_1,
10, /* Elements count */
&asn_SPC_Almanac_KeplerianSet_specs_1 /* Additional specs */
"Almanac-KeplerianSet",
"Almanac-KeplerianSet",
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_Almanac_KeplerianSet_tags_1,
sizeof(asn_DEF_Almanac_KeplerianSet_tags_1)
/sizeof(asn_DEF_Almanac_KeplerianSet_tags_1[0]), /* 1 */
asn_DEF_Almanac_KeplerianSet_tags_1, /* Same as above */
sizeof(asn_DEF_Almanac_KeplerianSet_tags_1)
/sizeof(asn_DEF_Almanac_KeplerianSet_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
asn_MBR_Almanac_KeplerianSet_1,
10, /* Elements count */
&asn_SPC_Almanac_KeplerianSet_specs_1 /* Additional specs */
};

View File

@ -1,7 +1,7 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#ifndef _Almanac_KeplerianSet_H_

View File

@ -1,99 +1,99 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#include "Almanac.h"
static int
memb_alamanacWNa_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= 0 && value <= 255)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= 0 && value <= 255)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
static asn_per_constraints_t ASN_PER_MEMB_ALAMANAC_W_NA_CONSTR_2 = {
{ APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_Almanac_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct Almanac, alamanacWNa),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_alamanacWNa_constraint_1,
&ASN_PER_MEMB_ALAMANAC_W_NA_CONSTR_2,
0,
"alamanacWNa"
},
{ ATF_NOFLAGS, 0, offsetof(struct Almanac, almanacList),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_SeqOfAlmanacElement,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"almanacList"
},
{ ATF_NOFLAGS, 0, offsetof(struct Almanac, alamanacWNa),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_alamanacWNa_constraint_1,
&ASN_PER_MEMB_ALAMANAC_W_NA_CONSTR_2,
0,
"alamanacWNa"
},
{ ATF_NOFLAGS, 0, offsetof(struct Almanac, almanacList),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_SeqOfAlmanacElement,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"almanacList"
},
};
static ber_tlv_tag_t asn_DEF_Almanac_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static asn_TYPE_tag2member_t asn_MAP_Almanac_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* alamanacWNa at 789 */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* almanacList at 794 */
};
static asn_SEQUENCE_specifics_t asn_SPC_Almanac_specs_1 = {
sizeof(struct Almanac),
offsetof(struct Almanac, _asn_ctx),
asn_MAP_Almanac_tag2el_1,
2, /* Count of tags in the map */
0, 0, 0, /* Optional elements (not needed) */
-1, /* Start extensions */
-1 /* Stop extensions */
sizeof(struct Almanac),
offsetof(struct Almanac, _asn_ctx),
asn_MAP_Almanac_tag2el_1,
2, /* Count of tags in the map */
0, 0, 0, /* Optional elements (not needed) */
-1, /* Start extensions */
-1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_Almanac = {
"Almanac",
"Almanac",
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_Almanac_tags_1,
sizeof(asn_DEF_Almanac_tags_1)
/sizeof(asn_DEF_Almanac_tags_1[0]), /* 1 */
asn_DEF_Almanac_tags_1, /* Same as above */
sizeof(asn_DEF_Almanac_tags_1)
/sizeof(asn_DEF_Almanac_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
asn_MBR_Almanac_1,
2, /* Elements count */
&asn_SPC_Almanac_specs_1 /* Additional specs */
"Almanac",
"Almanac",
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_Almanac_tags_1,
sizeof(asn_DEF_Almanac_tags_1)
/sizeof(asn_DEF_Almanac_tags_1[0]), /* 1 */
asn_DEF_Almanac_tags_1, /* Same as above */
sizeof(asn_DEF_Almanac_tags_1)
/sizeof(asn_DEF_Almanac_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
asn_MBR_Almanac_1,
2, /* Elements count */
&asn_SPC_Almanac_specs_1 /* Additional specs */
};

View File

@ -1,7 +1,7 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#ifndef _Almanac_H_

View File

@ -1,453 +1,453 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#include "AlmanacElement.h"
static int
memb_almanacE_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= 0 && value <= 65535)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= 0 && value <= 65535)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
static int
memb_alamanacToa_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= 0 && value <= 255)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= 0 && value <= 255)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
static int
memb_almanacKsii_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= -32768 && value <= 32767)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= -32768 && value <= 32767)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
static int
memb_almanacOmegaDot_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= -32768 && value <= 32767)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= -32768 && value <= 32767)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
static int
memb_almanacSVhealth_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= 0 && value <= 255)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= 0 && value <= 255)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
static int
memb_almanacAPowerHalf_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= 0 && value <= 16777215)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= 0 && value <= 16777215)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
static int
memb_almanacOmega0_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= -8388608 && value <= 8388607)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= -8388608 && value <= 8388607)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
static int
memb_almanacW_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= -8388608 && value <= 8388607)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= -8388608 && value <= 8388607)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
static int
memb_almanacM0_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= -8388608 && value <= 8388607)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= -8388608 && value <= 8388607)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
static int
memb_almanacAF0_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= -1024 && value <= 1023)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= -1024 && value <= 1023)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
static int
memb_almanacAF1_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= -1024 && value <= 1023)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= -1024 && value <= 1023)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
static asn_per_constraints_t ASN_PER_MEMB_ALMANAC_E_CONSTR_3 = {
{ APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_ALAMANAC_TOA_CONSTR_4 = {
{ APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_ALMANAC_KSII_CONSTR_5 = {
{ APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_ALMANAC_OMEGA_DOT_CONSTR_6 = {
{ APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_ALMANAC_S_VHEALTH_CONSTR_7 = {
{ APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_ALMANAC_A_POWER_HALF_CONSTR_8 = {
{ APC_CONSTRAINED, 24, -1, 0, 16777215 } /* (0..16777215) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 24, -1, 0, 16777215 } /* (0..16777215) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_ALMANAC_OMEGA0_CONSTR_9 = {
{ APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_ALMANAC_W_CONSTR_10 = {
{ APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_ALMANAC_M0_CONSTR_11 = {
{ APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_ALMANAC_A_F0_CONSTR_12 = {
{ APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_ALMANAC_A_F1_CONSTR_13 = {
{ APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_AlmanacElement_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct AlmanacElement, satelliteID),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_SatelliteID,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"satelliteID"
},
{ ATF_NOFLAGS, 0, offsetof(struct AlmanacElement, almanacE),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_almanacE_constraint_1,
&ASN_PER_MEMB_ALMANAC_E_CONSTR_3,
0,
"almanacE"
},
{ ATF_NOFLAGS, 0, offsetof(struct AlmanacElement, alamanacToa),
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_alamanacToa_constraint_1,
&ASN_PER_MEMB_ALAMANAC_TOA_CONSTR_4,
0,
"alamanacToa"
},
{ ATF_NOFLAGS, 0, offsetof(struct AlmanacElement, almanacKsii),
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_almanacKsii_constraint_1,
&ASN_PER_MEMB_ALMANAC_KSII_CONSTR_5,
0,
"almanacKsii"
},
{ ATF_NOFLAGS, 0, offsetof(struct AlmanacElement, almanacOmegaDot),
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_almanacOmegaDot_constraint_1,
&ASN_PER_MEMB_ALMANAC_OMEGA_DOT_CONSTR_6,
0,
"almanacOmegaDot"
},
{ ATF_NOFLAGS, 0, offsetof(struct AlmanacElement, almanacSVhealth),
(ASN_TAG_CLASS_CONTEXT | (5 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_almanacSVhealth_constraint_1,
&ASN_PER_MEMB_ALMANAC_S_VHEALTH_CONSTR_7,
0,
"almanacSVhealth"
},
{ ATF_NOFLAGS, 0, offsetof(struct AlmanacElement, almanacAPowerHalf),
(ASN_TAG_CLASS_CONTEXT | (6 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_almanacAPowerHalf_constraint_1,
&ASN_PER_MEMB_ALMANAC_A_POWER_HALF_CONSTR_8,
0,
"almanacAPowerHalf"
},
{ ATF_NOFLAGS, 0, offsetof(struct AlmanacElement, almanacOmega0),
(ASN_TAG_CLASS_CONTEXT | (7 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_almanacOmega0_constraint_1,
&ASN_PER_MEMB_ALMANAC_OMEGA0_CONSTR_9,
0,
"almanacOmega0"
},
{ ATF_NOFLAGS, 0, offsetof(struct AlmanacElement, almanacW),
(ASN_TAG_CLASS_CONTEXT | (8 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_almanacW_constraint_1,
&ASN_PER_MEMB_ALMANAC_W_CONSTR_10,
0,
"almanacW"
},
{ ATF_NOFLAGS, 0, offsetof(struct AlmanacElement, almanacM0),
(ASN_TAG_CLASS_CONTEXT | (9 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_almanacM0_constraint_1,
&ASN_PER_MEMB_ALMANAC_M0_CONSTR_11,
0,
"almanacM0"
},
{ ATF_NOFLAGS, 0, offsetof(struct AlmanacElement, almanacAF0),
(ASN_TAG_CLASS_CONTEXT | (10 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_almanacAF0_constraint_1,
&ASN_PER_MEMB_ALMANAC_A_F0_CONSTR_12,
0,
"almanacAF0"
},
{ ATF_NOFLAGS, 0, offsetof(struct AlmanacElement, almanacAF1),
(ASN_TAG_CLASS_CONTEXT | (11 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_almanacAF1_constraint_1,
&ASN_PER_MEMB_ALMANAC_A_F1_CONSTR_13,
0,
"almanacAF1"
},
{ ATF_NOFLAGS, 0, offsetof(struct AlmanacElement, satelliteID),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_SatelliteID,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"satelliteID"
},
{ ATF_NOFLAGS, 0, offsetof(struct AlmanacElement, almanacE),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_almanacE_constraint_1,
&ASN_PER_MEMB_ALMANAC_E_CONSTR_3,
0,
"almanacE"
},
{ ATF_NOFLAGS, 0, offsetof(struct AlmanacElement, alamanacToa),
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_alamanacToa_constraint_1,
&ASN_PER_MEMB_ALAMANAC_TOA_CONSTR_4,
0,
"alamanacToa"
},
{ ATF_NOFLAGS, 0, offsetof(struct AlmanacElement, almanacKsii),
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_almanacKsii_constraint_1,
&ASN_PER_MEMB_ALMANAC_KSII_CONSTR_5,
0,
"almanacKsii"
},
{ ATF_NOFLAGS, 0, offsetof(struct AlmanacElement, almanacOmegaDot),
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_almanacOmegaDot_constraint_1,
&ASN_PER_MEMB_ALMANAC_OMEGA_DOT_CONSTR_6,
0,
"almanacOmegaDot"
},
{ ATF_NOFLAGS, 0, offsetof(struct AlmanacElement, almanacSVhealth),
(ASN_TAG_CLASS_CONTEXT | (5 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_almanacSVhealth_constraint_1,
&ASN_PER_MEMB_ALMANAC_S_VHEALTH_CONSTR_7,
0,
"almanacSVhealth"
},
{ ATF_NOFLAGS, 0, offsetof(struct AlmanacElement, almanacAPowerHalf),
(ASN_TAG_CLASS_CONTEXT | (6 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_almanacAPowerHalf_constraint_1,
&ASN_PER_MEMB_ALMANAC_A_POWER_HALF_CONSTR_8,
0,
"almanacAPowerHalf"
},
{ ATF_NOFLAGS, 0, offsetof(struct AlmanacElement, almanacOmega0),
(ASN_TAG_CLASS_CONTEXT | (7 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_almanacOmega0_constraint_1,
&ASN_PER_MEMB_ALMANAC_OMEGA0_CONSTR_9,
0,
"almanacOmega0"
},
{ ATF_NOFLAGS, 0, offsetof(struct AlmanacElement, almanacW),
(ASN_TAG_CLASS_CONTEXT | (8 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_almanacW_constraint_1,
&ASN_PER_MEMB_ALMANAC_W_CONSTR_10,
0,
"almanacW"
},
{ ATF_NOFLAGS, 0, offsetof(struct AlmanacElement, almanacM0),
(ASN_TAG_CLASS_CONTEXT | (9 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_almanacM0_constraint_1,
&ASN_PER_MEMB_ALMANAC_M0_CONSTR_11,
0,
"almanacM0"
},
{ ATF_NOFLAGS, 0, offsetof(struct AlmanacElement, almanacAF0),
(ASN_TAG_CLASS_CONTEXT | (10 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_almanacAF0_constraint_1,
&ASN_PER_MEMB_ALMANAC_A_F0_CONSTR_12,
0,
"almanacAF0"
},
{ ATF_NOFLAGS, 0, offsetof(struct AlmanacElement, almanacAF1),
(ASN_TAG_CLASS_CONTEXT | (11 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_almanacAF1_constraint_1,
&ASN_PER_MEMB_ALMANAC_A_F1_CONSTR_13,
0,
"almanacAF1"
},
};
static ber_tlv_tag_t asn_DEF_AlmanacElement_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static asn_TYPE_tag2member_t asn_MAP_AlmanacElement_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* satelliteID at 799 */
@ -464,36 +464,36 @@ static asn_TYPE_tag2member_t asn_MAP_AlmanacElement_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 } /* almanacAF1 at 810 */
};
static asn_SEQUENCE_specifics_t asn_SPC_AlmanacElement_specs_1 = {
sizeof(struct AlmanacElement),
offsetof(struct AlmanacElement, _asn_ctx),
asn_MAP_AlmanacElement_tag2el_1,
12, /* Count of tags in the map */
0, 0, 0, /* Optional elements (not needed) */
-1, /* Start extensions */
-1 /* Stop extensions */
sizeof(struct AlmanacElement),
offsetof(struct AlmanacElement, _asn_ctx),
asn_MAP_AlmanacElement_tag2el_1,
12, /* Count of tags in the map */
0, 0, 0, /* Optional elements (not needed) */
-1, /* Start extensions */
-1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_AlmanacElement = {
"AlmanacElement",
"AlmanacElement",
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_AlmanacElement_tags_1,
sizeof(asn_DEF_AlmanacElement_tags_1)
/sizeof(asn_DEF_AlmanacElement_tags_1[0]), /* 1 */
asn_DEF_AlmanacElement_tags_1, /* Same as above */
sizeof(asn_DEF_AlmanacElement_tags_1)
/sizeof(asn_DEF_AlmanacElement_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
asn_MBR_AlmanacElement_1,
12, /* Elements count */
&asn_SPC_AlmanacElement_specs_1 /* Additional specs */
"AlmanacElement",
"AlmanacElement",
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_AlmanacElement_tags_1,
sizeof(asn_DEF_AlmanacElement_tags_1)
/sizeof(asn_DEF_AlmanacElement_tags_1[0]), /* 1 */
asn_DEF_AlmanacElement_tags_1, /* Same as above */
sizeof(asn_DEF_AlmanacElement_tags_1)
/sizeof(asn_DEF_AlmanacElement_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
asn_MBR_AlmanacElement_1,
12, /* Elements count */
&asn_SPC_AlmanacElement_specs_1 /* Additional specs */
};

View File

@ -1,7 +1,7 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#ifndef _AlmanacElement_H_

View File

@ -1,34 +1,34 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#include "AntiSpoofFlag.h"
int
AntiSpoofFlag_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= 0 && value <= 1)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= 0 && value <= 1)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
/*
@ -37,109 +37,109 @@ AntiSpoofFlag_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
*/
static void
AntiSpoofFlag_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_NativeInteger.free_struct;
td->print_struct = asn_DEF_NativeInteger.print_struct;
td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
td->der_encoder = asn_DEF_NativeInteger.der_encoder;
td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
if(!td->per_constraints)
td->per_constraints = asn_DEF_NativeInteger.per_constraints;
td->elements = asn_DEF_NativeInteger.elements;
td->elements_count = asn_DEF_NativeInteger.elements_count;
td->specifics = asn_DEF_NativeInteger.specifics;
td->free_struct = asn_DEF_NativeInteger.free_struct;
td->print_struct = asn_DEF_NativeInteger.print_struct;
td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
td->der_encoder = asn_DEF_NativeInteger.der_encoder;
td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
if(!td->per_constraints)
td->per_constraints = asn_DEF_NativeInteger.per_constraints;
td->elements = asn_DEF_NativeInteger.elements;
td->elements_count = asn_DEF_NativeInteger.elements_count;
td->specifics = asn_DEF_NativeInteger.specifics;
}
void
AntiSpoofFlag_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
AntiSpoofFlag_1_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
void *struct_ptr, int contents_only) {
AntiSpoofFlag_1_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
}
int
AntiSpoofFlag_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
AntiSpoofFlag_1_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
AntiSpoofFlag_1_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
asn_dec_rval_t
AntiSpoofFlag_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) {
AntiSpoofFlag_1_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
void **structure, const void *bufptr, size_t size, int tag_mode) {
AntiSpoofFlag_1_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
asn_enc_rval_t
AntiSpoofFlag_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) {
AntiSpoofFlag_1_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
AntiSpoofFlag_1_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
asn_dec_rval_t
AntiSpoofFlag_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) {
AntiSpoofFlag_1_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
void **structure, const char *opt_mname, const void *bufptr, size_t size) {
AntiSpoofFlag_1_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
asn_enc_rval_t
AntiSpoofFlag_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) {
AntiSpoofFlag_1_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
AntiSpoofFlag_1_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
asn_dec_rval_t
AntiSpoofFlag_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) {
AntiSpoofFlag_1_inherit_TYPE_descriptor(td);
return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
AntiSpoofFlag_1_inherit_TYPE_descriptor(td);
return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
}
asn_enc_rval_t
AntiSpoofFlag_encode_uper(asn_TYPE_descriptor_t *td,
asn_per_constraints_t *constraints,
void *structure, asn_per_outp_t *per_out) {
AntiSpoofFlag_1_inherit_TYPE_descriptor(td);
return td->uper_encoder(td, constraints, structure, per_out);
asn_per_constraints_t *constraints,
void *structure, asn_per_outp_t *per_out) {
AntiSpoofFlag_1_inherit_TYPE_descriptor(td);
return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_ANTI_SPOOF_FLAG_CONSTR_1 = {
{ APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_AntiSpoofFlag_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_AntiSpoofFlag = {
"AntiSpoofFlag",
"AntiSpoofFlag",
AntiSpoofFlag_free,
AntiSpoofFlag_print,
AntiSpoofFlag_constraint,
AntiSpoofFlag_decode_ber,
AntiSpoofFlag_encode_der,
AntiSpoofFlag_decode_xer,
AntiSpoofFlag_encode_xer,
AntiSpoofFlag_decode_uper,
AntiSpoofFlag_encode_uper,
0, /* Use generic outmost tag fetcher */
asn_DEF_AntiSpoofFlag_tags_1,
sizeof(asn_DEF_AntiSpoofFlag_tags_1)
/sizeof(asn_DEF_AntiSpoofFlag_tags_1[0]), /* 1 */
asn_DEF_AntiSpoofFlag_tags_1, /* Same as above */
sizeof(asn_DEF_AntiSpoofFlag_tags_1)
/sizeof(asn_DEF_AntiSpoofFlag_tags_1[0]), /* 1 */
&ASN_PER_TYPE_ANTI_SPOOF_FLAG_CONSTR_1,
0, 0, /* No members */
0 /* No specifics */
"AntiSpoofFlag",
"AntiSpoofFlag",
AntiSpoofFlag_free,
AntiSpoofFlag_print,
AntiSpoofFlag_constraint,
AntiSpoofFlag_decode_ber,
AntiSpoofFlag_encode_der,
AntiSpoofFlag_decode_xer,
AntiSpoofFlag_encode_xer,
AntiSpoofFlag_decode_uper,
AntiSpoofFlag_encode_uper,
0, /* Use generic outmost tag fetcher */
asn_DEF_AntiSpoofFlag_tags_1,
sizeof(asn_DEF_AntiSpoofFlag_tags_1)
/sizeof(asn_DEF_AntiSpoofFlag_tags_1[0]), /* 1 */
asn_DEF_AntiSpoofFlag_tags_1, /* Same as above */
sizeof(asn_DEF_AntiSpoofFlag_tags_1)
/sizeof(asn_DEF_AntiSpoofFlag_tags_1[0]), /* 1 */
&ASN_PER_TYPE_ANTI_SPOOF_FLAG_CONSTR_1,
0, 0, /* No members */
0 /* No specifics */
};

View File

@ -1,7 +1,7 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#ifndef _AntiSpoofFlag_H_

View File

@ -1,69 +1,69 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#include "AssistBTSData-R98-ExpOTD.h"
static asn_TYPE_member_t asn_MBR_AssistBTSData_R98_ExpOTD_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct AssistBTSData_R98_ExpOTD, expectedOTD),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_ExpectedOTD,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"expectedOTD"
},
{ ATF_NOFLAGS, 0, offsetof(struct AssistBTSData_R98_ExpOTD, expOTDuncertainty),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_ExpOTDUncertainty,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"expOTDuncertainty"
},
{ ATF_NOFLAGS, 0, offsetof(struct AssistBTSData_R98_ExpOTD, expectedOTD),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_ExpectedOTD,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"expectedOTD"
},
{ ATF_NOFLAGS, 0, offsetof(struct AssistBTSData_R98_ExpOTD, expOTDuncertainty),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_ExpOTDUncertainty,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"expOTDuncertainty"
},
};
static ber_tlv_tag_t asn_DEF_AssistBTSData_R98_ExpOTD_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static asn_TYPE_tag2member_t asn_MAP_AssistBTSData_R98_ExpOTD_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* expectedOTD at 933 */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* expOTDuncertainty at 935 */
};
static asn_SEQUENCE_specifics_t asn_SPC_AssistBTSData_R98_ExpOTD_specs_1 = {
sizeof(struct AssistBTSData_R98_ExpOTD),
offsetof(struct AssistBTSData_R98_ExpOTD, _asn_ctx),
asn_MAP_AssistBTSData_R98_ExpOTD_tag2el_1,
2, /* Count of tags in the map */
0, 0, 0, /* Optional elements (not needed) */
-1, /* Start extensions */
-1 /* Stop extensions */
sizeof(struct AssistBTSData_R98_ExpOTD),
offsetof(struct AssistBTSData_R98_ExpOTD, _asn_ctx),
asn_MAP_AssistBTSData_R98_ExpOTD_tag2el_1,
2, /* Count of tags in the map */
0, 0, 0, /* Optional elements (not needed) */
-1, /* Start extensions */
-1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_AssistBTSData_R98_ExpOTD = {
"AssistBTSData-R98-ExpOTD",
"AssistBTSData-R98-ExpOTD",
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_AssistBTSData_R98_ExpOTD_tags_1,
sizeof(asn_DEF_AssistBTSData_R98_ExpOTD_tags_1)
/sizeof(asn_DEF_AssistBTSData_R98_ExpOTD_tags_1[0]), /* 1 */
asn_DEF_AssistBTSData_R98_ExpOTD_tags_1, /* Same as above */
sizeof(asn_DEF_AssistBTSData_R98_ExpOTD_tags_1)
/sizeof(asn_DEF_AssistBTSData_R98_ExpOTD_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
asn_MBR_AssistBTSData_R98_ExpOTD_1,
2, /* Elements count */
&asn_SPC_AssistBTSData_R98_ExpOTD_specs_1 /* Additional specs */
"AssistBTSData-R98-ExpOTD",
"AssistBTSData-R98-ExpOTD",
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_AssistBTSData_R98_ExpOTD_tags_1,
sizeof(asn_DEF_AssistBTSData_R98_ExpOTD_tags_1)
/sizeof(asn_DEF_AssistBTSData_R98_ExpOTD_tags_1[0]), /* 1 */
asn_DEF_AssistBTSData_R98_ExpOTD_tags_1, /* Same as above */
sizeof(asn_DEF_AssistBTSData_R98_ExpOTD_tags_1)
/sizeof(asn_DEF_AssistBTSData_R98_ExpOTD_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
asn_MBR_AssistBTSData_R98_ExpOTD_1,
2, /* Elements count */
&asn_SPC_AssistBTSData_R98_ExpOTD_specs_1 /* Additional specs */
};

View File

@ -1,7 +1,7 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#ifndef _AssistBTSData_R98_ExpOTD_H_

View File

@ -1,61 +1,61 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#include "AssistBTSData.h"
static asn_TYPE_member_t asn_MBR_AssistBTSData_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct AssistBTSData, bsic),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_BSIC,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"bsic"
},
{ ATF_NOFLAGS, 0, offsetof(struct AssistBTSData, multiFrameOffset),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_MultiFrameOffset,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"multiFrameOffset"
},
{ ATF_NOFLAGS, 0, offsetof(struct AssistBTSData, timeSlotScheme),
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_TimeSlotScheme,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"timeSlotScheme"
},
{ ATF_NOFLAGS, 0, offsetof(struct AssistBTSData, roughRTD),
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_RoughRTD,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"roughRTD"
},
{ ATF_POINTER, 1, offsetof(struct AssistBTSData, calcAssistanceBTS),
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_CalcAssistanceBTS,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"calcAssistanceBTS"
},
{ ATF_NOFLAGS, 0, offsetof(struct AssistBTSData, bsic),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_BSIC,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"bsic"
},
{ ATF_NOFLAGS, 0, offsetof(struct AssistBTSData, multiFrameOffset),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_MultiFrameOffset,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"multiFrameOffset"
},
{ ATF_NOFLAGS, 0, offsetof(struct AssistBTSData, timeSlotScheme),
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_TimeSlotScheme,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"timeSlotScheme"
},
{ ATF_NOFLAGS, 0, offsetof(struct AssistBTSData, roughRTD),
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_RoughRTD,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"roughRTD"
},
{ ATF_POINTER, 1, offsetof(struct AssistBTSData, calcAssistanceBTS),
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_CalcAssistanceBTS,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"calcAssistanceBTS"
},
};
static int asn_MAP_AssistBTSData_oms_1[] = { 4 };
static ber_tlv_tag_t asn_DEF_AssistBTSData_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static asn_TYPE_tag2member_t asn_MAP_AssistBTSData_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bsic at 229 */
@ -65,37 +65,37 @@ static asn_TYPE_tag2member_t asn_MAP_AssistBTSData_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* calcAssistanceBTS at 235 */
};
static asn_SEQUENCE_specifics_t asn_SPC_AssistBTSData_specs_1 = {
sizeof(struct AssistBTSData),
offsetof(struct AssistBTSData, _asn_ctx),
asn_MAP_AssistBTSData_tag2el_1,
5, /* Count of tags in the map */
asn_MAP_AssistBTSData_oms_1, /* Optional members */
1, 0, /* Root/Additions */
-1, /* Start extensions */
-1 /* Stop extensions */
sizeof(struct AssistBTSData),
offsetof(struct AssistBTSData, _asn_ctx),
asn_MAP_AssistBTSData_tag2el_1,
5, /* Count of tags in the map */
asn_MAP_AssistBTSData_oms_1, /* Optional members */
1, 0, /* Root/Additions */
-1, /* Start extensions */
-1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_AssistBTSData = {
"AssistBTSData",
"AssistBTSData",
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_AssistBTSData_tags_1,
sizeof(asn_DEF_AssistBTSData_tags_1)
/sizeof(asn_DEF_AssistBTSData_tags_1[0]), /* 1 */
asn_DEF_AssistBTSData_tags_1, /* Same as above */
sizeof(asn_DEF_AssistBTSData_tags_1)
/sizeof(asn_DEF_AssistBTSData_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
asn_MBR_AssistBTSData_1,
5, /* Elements count */
&asn_SPC_AssistBTSData_specs_1 /* Additional specs */
"AssistBTSData",
"AssistBTSData",
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_AssistBTSData_tags_1,
sizeof(asn_DEF_AssistBTSData_tags_1)
/sizeof(asn_DEF_AssistBTSData_tags_1[0]), /* 1 */
asn_DEF_AssistBTSData_tags_1, /* Same as above */
sizeof(asn_DEF_AssistBTSData_tags_1)
/sizeof(asn_DEF_AssistBTSData_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
asn_MBR_AssistBTSData_1,
5, /* Elements count */
&asn_SPC_AssistBTSData_specs_1 /* Additional specs */
};

View File

@ -1,7 +1,7 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#ifndef _AssistBTSData_H_

View File

@ -1,88 +1,88 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#include "AssistanceData.h"
static asn_TYPE_member_t asn_MBR_AssistanceData_1[] = {
{ ATF_POINTER, 8, offsetof(struct AssistanceData, referenceAssistData),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_ReferenceAssistData,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"referenceAssistData"
},
{ ATF_POINTER, 7, offsetof(struct AssistanceData, msrAssistData),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_MsrAssistData,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"msrAssistData"
},
{ ATF_POINTER, 6, offsetof(struct AssistanceData, systemInfoAssistData),
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_SystemInfoAssistData,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"systemInfoAssistData"
},
{ ATF_POINTER, 5, offsetof(struct AssistanceData, gps_AssistData),
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_GPS_AssistData,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"gps-AssistData"
},
{ ATF_POINTER, 4, offsetof(struct AssistanceData, moreAssDataToBeSent),
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_MoreAssDataToBeSent,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"moreAssDataToBeSent"
},
{ ATF_POINTER, 3, offsetof(struct AssistanceData, extensionContainer),
(ASN_TAG_CLASS_CONTEXT | (5 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_ExtensionContainer,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"extensionContainer"
},
{ ATF_POINTER, 2, offsetof(struct AssistanceData, rel98_AssistanceData_Extension),
(ASN_TAG_CLASS_CONTEXT | (6 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_Rel98_AssistanceData_Extension,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"rel98-AssistanceData-Extension"
},
{ ATF_POINTER, 1, offsetof(struct AssistanceData, rel5_AssistanceData_Extension),
(ASN_TAG_CLASS_CONTEXT | (7 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_Rel5_AssistanceData_Extension,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"rel5-AssistanceData-Extension"
},
{ ATF_POINTER, 8, offsetof(struct AssistanceData, referenceAssistData),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_ReferenceAssistData,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"referenceAssistData"
},
{ ATF_POINTER, 7, offsetof(struct AssistanceData, msrAssistData),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_MsrAssistData,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"msrAssistData"
},
{ ATF_POINTER, 6, offsetof(struct AssistanceData, systemInfoAssistData),
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_SystemInfoAssistData,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"systemInfoAssistData"
},
{ ATF_POINTER, 5, offsetof(struct AssistanceData, gps_AssistData),
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_GPS_AssistData,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"gps-AssistData"
},
{ ATF_POINTER, 4, offsetof(struct AssistanceData, moreAssDataToBeSent),
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_MoreAssDataToBeSent,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"moreAssDataToBeSent"
},
{ ATF_POINTER, 3, offsetof(struct AssistanceData, extensionContainer),
(ASN_TAG_CLASS_CONTEXT | (5 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_ExtensionContainer,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"extensionContainer"
},
{ ATF_POINTER, 2, offsetof(struct AssistanceData, rel98_AssistanceData_Extension),
(ASN_TAG_CLASS_CONTEXT | (6 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_Rel98_AssistanceData_Extension,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"rel98-AssistanceData-Extension"
},
{ ATF_POINTER, 1, offsetof(struct AssistanceData, rel5_AssistanceData_Extension),
(ASN_TAG_CLASS_CONTEXT | (7 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_Rel5_AssistanceData_Extension,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"rel5-AssistanceData-Extension"
},
};
static int asn_MAP_AssistanceData_oms_1[] = { 0, 1, 2, 3, 4, 5, 6, 7 };
static ber_tlv_tag_t asn_DEF_AssistanceData_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static asn_TYPE_tag2member_t asn_MAP_AssistanceData_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* referenceAssistData at 75 */
@ -95,37 +95,37 @@ static asn_TYPE_tag2member_t asn_MAP_AssistanceData_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* rel5-AssistanceData-Extension at 87 */
};
static asn_SEQUENCE_specifics_t asn_SPC_AssistanceData_specs_1 = {
sizeof(struct AssistanceData),
offsetof(struct AssistanceData, _asn_ctx),
asn_MAP_AssistanceData_tag2el_1,
8, /* Count of tags in the map */
asn_MAP_AssistanceData_oms_1, /* Optional members */
6, 2, /* Root/Additions */
5, /* Start extensions */
9 /* Stop extensions */
sizeof(struct AssistanceData),
offsetof(struct AssistanceData, _asn_ctx),
asn_MAP_AssistanceData_tag2el_1,
8, /* Count of tags in the map */
asn_MAP_AssistanceData_oms_1, /* Optional members */
6, 2, /* Root/Additions */
5, /* Start extensions */
9 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_AssistanceData = {
"AssistanceData",
"AssistanceData",
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_AssistanceData_tags_1,
sizeof(asn_DEF_AssistanceData_tags_1)
/sizeof(asn_DEF_AssistanceData_tags_1[0]), /* 1 */
asn_DEF_AssistanceData_tags_1, /* Same as above */
sizeof(asn_DEF_AssistanceData_tags_1)
/sizeof(asn_DEF_AssistanceData_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
asn_MBR_AssistanceData_1,
8, /* Elements count */
&asn_SPC_AssistanceData_specs_1 /* Additional specs */
"AssistanceData",
"AssistanceData",
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_AssistanceData_tags_1,
sizeof(asn_DEF_AssistanceData_tags_1)
/sizeof(asn_DEF_AssistanceData_tags_1[0]), /* 1 */
asn_DEF_AssistanceData_tags_1, /* Same as above */
sizeof(asn_DEF_AssistanceData_tags_1)
/sizeof(asn_DEF_AssistanceData_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
asn_MBR_AssistanceData_1,
8, /* Elements count */
&asn_SPC_AssistanceData_specs_1 /* Additional specs */
};

View File

@ -1,7 +1,7 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#ifndef _AssistanceData_H_
@ -38,9 +38,9 @@ extern "C"
MoreAssDataToBeSent_t *moreAssDataToBeSent /* OPTIONAL */;
ExtensionContainer_t *extensionContainer /* OPTIONAL */;
/*
* This type is extensible,
* possible extensions are below.
*/
* This type is extensible,
* possible extensions are below.
*/
struct Rel98_AssistanceData_Extension *rel98_AssistanceData_Extension /* OPTIONAL */;
struct Rel5_AssistanceData_Extension *rel5_AssistanceData_Extension /* OPTIONAL */;

View File

@ -1,34 +1,34 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#include "BCCHCarrier.h"
int
BCCHCarrier_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= 0 && value <= 1023)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= 0 && value <= 1023)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
/*
@ -37,109 +37,109 @@ BCCHCarrier_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
*/
static void
BCCHCarrier_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_NativeInteger.free_struct;
td->print_struct = asn_DEF_NativeInteger.print_struct;
td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
td->der_encoder = asn_DEF_NativeInteger.der_encoder;
td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
if(!td->per_constraints)
td->per_constraints = asn_DEF_NativeInteger.per_constraints;
td->elements = asn_DEF_NativeInteger.elements;
td->elements_count = asn_DEF_NativeInteger.elements_count;
td->specifics = asn_DEF_NativeInteger.specifics;
td->free_struct = asn_DEF_NativeInteger.free_struct;
td->print_struct = asn_DEF_NativeInteger.print_struct;
td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
td->der_encoder = asn_DEF_NativeInteger.der_encoder;
td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
if(!td->per_constraints)
td->per_constraints = asn_DEF_NativeInteger.per_constraints;
td->elements = asn_DEF_NativeInteger.elements;
td->elements_count = asn_DEF_NativeInteger.elements_count;
td->specifics = asn_DEF_NativeInteger.specifics;
}
void
BCCHCarrier_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
BCCHCarrier_1_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
void *struct_ptr, int contents_only) {
BCCHCarrier_1_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
}
int
BCCHCarrier_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
BCCHCarrier_1_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
BCCHCarrier_1_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
asn_dec_rval_t
BCCHCarrier_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) {
BCCHCarrier_1_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
void **structure, const void *bufptr, size_t size, int tag_mode) {
BCCHCarrier_1_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
asn_enc_rval_t
BCCHCarrier_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) {
BCCHCarrier_1_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
BCCHCarrier_1_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
asn_dec_rval_t
BCCHCarrier_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) {
BCCHCarrier_1_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
void **structure, const char *opt_mname, const void *bufptr, size_t size) {
BCCHCarrier_1_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
asn_enc_rval_t
BCCHCarrier_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) {
BCCHCarrier_1_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
BCCHCarrier_1_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
asn_dec_rval_t
BCCHCarrier_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) {
BCCHCarrier_1_inherit_TYPE_descriptor(td);
return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
BCCHCarrier_1_inherit_TYPE_descriptor(td);
return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
}
asn_enc_rval_t
BCCHCarrier_encode_uper(asn_TYPE_descriptor_t *td,
asn_per_constraints_t *constraints,
void *structure, asn_per_outp_t *per_out) {
BCCHCarrier_1_inherit_TYPE_descriptor(td);
return td->uper_encoder(td, constraints, structure, per_out);
asn_per_constraints_t *constraints,
void *structure, asn_per_outp_t *per_out) {
BCCHCarrier_1_inherit_TYPE_descriptor(td);
return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_BCCH_CARRIER_CONSTR_1 = {
{ APC_CONSTRAINED, 10, 10, 0, 1023 } /* (0..1023) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 10, 10, 0, 1023 } /* (0..1023) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_BCCHCarrier_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_BCCHCarrier = {
"BCCHCarrier",
"BCCHCarrier",
BCCHCarrier_free,
BCCHCarrier_print,
BCCHCarrier_constraint,
BCCHCarrier_decode_ber,
BCCHCarrier_encode_der,
BCCHCarrier_decode_xer,
BCCHCarrier_encode_xer,
BCCHCarrier_decode_uper,
BCCHCarrier_encode_uper,
0, /* Use generic outmost tag fetcher */
asn_DEF_BCCHCarrier_tags_1,
sizeof(asn_DEF_BCCHCarrier_tags_1)
/sizeof(asn_DEF_BCCHCarrier_tags_1[0]), /* 1 */
asn_DEF_BCCHCarrier_tags_1, /* Same as above */
sizeof(asn_DEF_BCCHCarrier_tags_1)
/sizeof(asn_DEF_BCCHCarrier_tags_1[0]), /* 1 */
&ASN_PER_TYPE_BCCH_CARRIER_CONSTR_1,
0, 0, /* No members */
0 /* No specifics */
"BCCHCarrier",
"BCCHCarrier",
BCCHCarrier_free,
BCCHCarrier_print,
BCCHCarrier_constraint,
BCCHCarrier_decode_ber,
BCCHCarrier_encode_der,
BCCHCarrier_decode_xer,
BCCHCarrier_encode_xer,
BCCHCarrier_decode_uper,
BCCHCarrier_encode_uper,
0, /* Use generic outmost tag fetcher */
asn_DEF_BCCHCarrier_tags_1,
sizeof(asn_DEF_BCCHCarrier_tags_1)
/sizeof(asn_DEF_BCCHCarrier_tags_1[0]), /* 1 */
asn_DEF_BCCHCarrier_tags_1, /* Same as above */
sizeof(asn_DEF_BCCHCarrier_tags_1)
/sizeof(asn_DEF_BCCHCarrier_tags_1[0]), /* 1 */
&ASN_PER_TYPE_BCCH_CARRIER_CONSTR_1,
0, 0, /* No members */
0 /* No specifics */
};

View File

@ -1,7 +1,7 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#ifndef _BCCHCarrier_H_

View File

@ -10,35 +10,35 @@
* BIT STRING basic type description.
*/
static ber_tlv_tag_t asn_DEF_BIT_STRING_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (3 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (3 << 2))
};
static asn_OCTET_STRING_specifics_t asn_DEF_BIT_STRING_specs = {
sizeof(BIT_STRING_t),
offsetof(BIT_STRING_t, _asn_ctx),
ASN_OSUBV_BIT
sizeof(BIT_STRING_t),
offsetof(BIT_STRING_t, _asn_ctx),
ASN_OSUBV_BIT
};
asn_TYPE_descriptor_t asn_DEF_BIT_STRING = {
"BIT STRING",
"BIT_STRING",
OCTET_STRING_free, /* Implemented in terms of OCTET STRING */
BIT_STRING_print,
BIT_STRING_constraint,
OCTET_STRING_decode_ber, /* Implemented in terms of OCTET STRING */
OCTET_STRING_encode_der, /* Implemented in terms of OCTET STRING */
OCTET_STRING_decode_xer_binary,
BIT_STRING_encode_xer,
OCTET_STRING_decode_uper, /* Unaligned PER decoder */
OCTET_STRING_encode_uper, /* Unaligned PER encoder */
0, /* Use generic outmost tag fetcher */
asn_DEF_BIT_STRING_tags,
sizeof(asn_DEF_BIT_STRING_tags)
/ sizeof(asn_DEF_BIT_STRING_tags[0]),
asn_DEF_BIT_STRING_tags, /* Same as above */
sizeof(asn_DEF_BIT_STRING_tags)
/ sizeof(asn_DEF_BIT_STRING_tags[0]),
0, /* No PER visible constraints */
0, 0, /* No members */
&asn_DEF_BIT_STRING_specs
"BIT STRING",
"BIT_STRING",
OCTET_STRING_free, /* Implemented in terms of OCTET STRING */
BIT_STRING_print,
BIT_STRING_constraint,
OCTET_STRING_decode_ber, /* Implemented in terms of OCTET STRING */
OCTET_STRING_encode_der, /* Implemented in terms of OCTET STRING */
OCTET_STRING_decode_xer_binary,
BIT_STRING_encode_xer,
OCTET_STRING_decode_uper, /* Unaligned PER decoder */
OCTET_STRING_encode_uper, /* Unaligned PER encoder */
0, /* Use generic outmost tag fetcher */
asn_DEF_BIT_STRING_tags,
sizeof(asn_DEF_BIT_STRING_tags)
/ sizeof(asn_DEF_BIT_STRING_tags[0]),
asn_DEF_BIT_STRING_tags, /* Same as above */
sizeof(asn_DEF_BIT_STRING_tags)
/ sizeof(asn_DEF_BIT_STRING_tags[0]),
0, /* No PER visible constraints */
0, 0, /* No members */
&asn_DEF_BIT_STRING_specs
};
/*
@ -46,91 +46,91 @@ asn_TYPE_descriptor_t asn_DEF_BIT_STRING = {
*/
int
BIT_STRING_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
if(st && st->buf) {
if((st->size == 0 && st->bits_unused)
|| st->bits_unused < 0 || st->bits_unused > 7) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: invalid padding byte (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(st && st->buf) {
if((st->size == 0 && st->bits_unused)
|| st->bits_unused < 0 || st->bits_unused > 7) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: invalid padding byte (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
return 0;
return 0;
}
static char *_bit_pattern[16] = {
"0000", "0001", "0010", "0011", "0100", "0101", "0110", "0111",
"1000", "1001", "1010", "1011", "1100", "1101", "1110", "1111"
"0000", "0001", "0010", "0011", "0100", "0101", "0110", "0111",
"1000", "1001", "1010", "1011", "1100", "1101", "1110", "1111"
};
asn_enc_rval_t
BIT_STRING_encode_xer(asn_TYPE_descriptor_t *td, void *sptr,
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_enc_rval_t er;
char scratch[128];
char *p = scratch;
char *scend = scratch + (sizeof(scratch) - 10);
const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
int xcan = (flags & XER_F_CANONICAL);
uint8_t *buf;
uint8_t *end;
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_enc_rval_t er;
char scratch[128];
char *p = scratch;
char *scend = scratch + (sizeof(scratch) - 10);
const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
int xcan = (flags & XER_F_CANONICAL);
uint8_t *buf;
uint8_t *end;
if(!st || !st->buf)
_ASN_ENCODE_FAILED;
if(!st || !st->buf)
_ASN_ENCODE_FAILED;
er.encoded = 0;
er.encoded = 0;
buf = st->buf;
end = buf + st->size - 1; /* Last byte is special */
buf = st->buf;
end = buf + st->size - 1; /* Last byte is special */
/*
* Binary dump
*/
for(; buf < end; buf++) {
int v = *buf;
int nline = xcan?0:(((buf - st->buf) % 8) == 0);
if(p >= scend || nline) {
er.encoded += p - scratch;
_ASN_CALLBACK(scratch, p - scratch);
p = scratch;
if(nline) _i_ASN_TEXT_INDENT(1, ilevel);
}
memcpy(p + 0, _bit_pattern[v >> 4], 4);
memcpy(p + 4, _bit_pattern[v & 0x0f], 4);
p += 8;
}
/*
* Binary dump
*/
for(; buf < end; buf++) {
int v = *buf;
int nline = xcan?0:(((buf - st->buf) % 8) == 0);
if(p >= scend || nline) {
er.encoded += p - scratch;
_ASN_CALLBACK(scratch, p - scratch);
p = scratch;
if(nline) _i_ASN_TEXT_INDENT(1, ilevel);
}
memcpy(p + 0, _bit_pattern[v >> 4], 4);
memcpy(p + 4, _bit_pattern[v & 0x0f], 4);
p += 8;
}
if(!xcan && ((buf - st->buf) % 8) == 0)
_i_ASN_TEXT_INDENT(1, ilevel);
er.encoded += p - scratch;
_ASN_CALLBACK(scratch, p - scratch);
p = scratch;
if(!xcan && ((buf - st->buf) % 8) == 0)
_i_ASN_TEXT_INDENT(1, ilevel);
er.encoded += p - scratch;
_ASN_CALLBACK(scratch, p - scratch);
p = scratch;
if(buf == end) {
int v = *buf;
int ubits = st->bits_unused;
int i;
for(i = 7; i >= ubits; i--)
*p++ = (v & (1 << i)) ? 0x31 : 0x30;
er.encoded += p - scratch;
_ASN_CALLBACK(scratch, p - scratch);
}
if(buf == end) {
int v = *buf;
int ubits = st->bits_unused;
int i;
for(i = 7; i >= ubits; i--)
*p++ = (v & (1 << i)) ? 0x31 : 0x30;
er.encoded += p - scratch;
_ASN_CALLBACK(scratch, p - scratch);
}
if(!xcan) _i_ASN_TEXT_INDENT(1, ilevel - 1);
if(!xcan) _i_ASN_TEXT_INDENT(1, ilevel - 1);
_ASN_ENCODED_OK(er);
_ASN_ENCODED_OK(er);
cb_failed:
_ASN_ENCODE_FAILED;
_ASN_ENCODE_FAILED;
}
@ -139,51 +139,51 @@ cb_failed:
*/
int
BIT_STRING_print(asn_TYPE_descriptor_t *td, const void *sptr, int ilevel,
asn_app_consume_bytes_f *cb, void *app_key) {
static const char *h2c = "0123456789ABCDEF";
char scratch[64];
const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
uint8_t *buf;
uint8_t *end;
char *p = scratch;
asn_app_consume_bytes_f *cb, void *app_key) {
static const char *h2c = "0123456789ABCDEF";
char scratch[64];
const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
uint8_t *buf;
uint8_t *end;
char *p = scratch;
(void)td; /* Unused argument */
(void)td; /* Unused argument */
if(!st || !st->buf)
return (cb("<absent>", 8, app_key) < 0) ? -1 : 0;
if(!st || !st->buf)
return (cb("<absent>", 8, app_key) < 0) ? -1 : 0;
ilevel++;
buf = st->buf;
end = buf + st->size;
ilevel++;
buf = st->buf;
end = buf + st->size;
/*
* Hexadecimal dump.
*/
for(; buf < end; buf++) {
if((buf - st->buf) % 16 == 0 && (st->size > 16)
&& buf != st->buf) {
_i_INDENT(1);
/* Dump the string */
if(cb(scratch, p - scratch, app_key) < 0) return -1;
p = scratch;
}
*p++ = h2c[*buf >> 4];
*p++ = h2c[*buf & 0x0F];
*p++ = 0x20;
}
/*
* Hexadecimal dump.
*/
for(; buf < end; buf++) {
if((buf - st->buf) % 16 == 0 && (st->size > 16)
&& buf != st->buf) {
_i_INDENT(1);
/* Dump the string */
if(cb(scratch, p - scratch, app_key) < 0) return -1;
p = scratch;
}
*p++ = h2c[*buf >> 4];
*p++ = h2c[*buf & 0x0F];
*p++ = 0x20;
}
if(p > scratch) {
p--; /* Eat the tailing space */
if(p > scratch) {
p--; /* Eat the tailing space */
if((st->size > 16)) {
_i_INDENT(1);
}
if((st->size > 16)) {
_i_INDENT(1);
}
/* Dump the incomplete 16-bytes row */
if(cb(scratch, p - scratch, app_key) < 0)
return -1;
}
/* Dump the incomplete 16-bytes row */
if(cb(scratch, p - scratch, app_key) < 0)
return -1;
}
return 0;
return 0;
}

View File

@ -10,28 +10,28 @@
* BOOLEAN basic type description.
*/
static ber_tlv_tag_t asn_DEF_BOOLEAN_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (1 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (1 << 2))
};
asn_TYPE_descriptor_t asn_DEF_BOOLEAN = {
"BOOLEAN",
"BOOLEAN",
BOOLEAN_free,
BOOLEAN_print,
asn_generic_no_constraint,
BOOLEAN_decode_ber,
BOOLEAN_encode_der,
BOOLEAN_decode_xer,
BOOLEAN_encode_xer,
BOOLEAN_decode_uper, /* Unaligned PER decoder */
BOOLEAN_encode_uper, /* Unaligned PER encoder */
0, /* Use generic outmost tag fetcher */
asn_DEF_BOOLEAN_tags,
sizeof(asn_DEF_BOOLEAN_tags) / sizeof(asn_DEF_BOOLEAN_tags[0]),
asn_DEF_BOOLEAN_tags, /* Same as above */
sizeof(asn_DEF_BOOLEAN_tags) / sizeof(asn_DEF_BOOLEAN_tags[0]),
0, /* No PER visible constraints */
0, 0, /* No members */
0 /* No specifics */
"BOOLEAN",
"BOOLEAN",
BOOLEAN_free,
BOOLEAN_print,
asn_generic_no_constraint,
BOOLEAN_decode_ber,
BOOLEAN_encode_der,
BOOLEAN_decode_xer,
BOOLEAN_encode_xer,
BOOLEAN_decode_uper, /* Unaligned PER decoder */
BOOLEAN_encode_uper, /* Unaligned PER encoder */
0, /* Use generic outmost tag fetcher */
asn_DEF_BOOLEAN_tags,
sizeof(asn_DEF_BOOLEAN_tags) / sizeof(asn_DEF_BOOLEAN_tags[0]),
asn_DEF_BOOLEAN_tags, /* Same as above */
sizeof(asn_DEF_BOOLEAN_tags) / sizeof(asn_DEF_BOOLEAN_tags[0]),
0, /* No PER visible constraints */
0, 0, /* No members */
0 /* No specifics */
};
/*
@ -39,97 +39,97 @@ asn_TYPE_descriptor_t asn_DEF_BOOLEAN = {
*/
asn_dec_rval_t
BOOLEAN_decode_ber(asn_codec_ctx_t *opt_codec_ctx,
asn_TYPE_descriptor_t *td,
void **bool_value, const void *buf_ptr, size_t size,
int tag_mode) {
BOOLEAN_t *st = (BOOLEAN_t *)*bool_value;
asn_dec_rval_t rval;
ber_tlv_len_t length;
ber_tlv_len_t lidx;
asn_TYPE_descriptor_t *td,
void **bool_value, const void *buf_ptr, size_t size,
int tag_mode) {
BOOLEAN_t *st = (BOOLEAN_t *)*bool_value;
asn_dec_rval_t rval;
ber_tlv_len_t length;
ber_tlv_len_t lidx;
if(st == NULL) {
st = (BOOLEAN_t *)(*bool_value = CALLOC(1, sizeof(*st)));
if(st == NULL) {
rval.code = RC_FAIL;
rval.consumed = 0;
return rval;
}
}
if(st == NULL) {
st = (BOOLEAN_t *)(*bool_value = CALLOC(1, sizeof(*st)));
if(st == NULL) {
rval.code = RC_FAIL;
rval.consumed = 0;
return rval;
}
}
ASN_DEBUG("Decoding %s as BOOLEAN (tm=%d)",
td->name, tag_mode);
ASN_DEBUG("Decoding %s as BOOLEAN (tm=%d)",
td->name, tag_mode);
/*
* Check tags.
*/
rval = ber_check_tags(opt_codec_ctx, td, 0, buf_ptr, size,
tag_mode, 0, &length, 0);
if(rval.code != RC_OK)
return rval;
/*
* Check tags.
*/
rval = ber_check_tags(opt_codec_ctx, td, 0, buf_ptr, size,
tag_mode, 0, &length, 0);
if(rval.code != RC_OK)
return rval;
ASN_DEBUG("Boolean length is %d bytes", (int)length);
ASN_DEBUG("Boolean length is %d bytes", (int)length);
buf_ptr = ((const char *)buf_ptr) + rval.consumed;
size -= rval.consumed;
if(length > (ber_tlv_len_t)size) {
rval.code = RC_WMORE;
rval.consumed = 0;
return rval;
}
buf_ptr = ((const char *)buf_ptr) + rval.consumed;
size -= rval.consumed;
if(length > (ber_tlv_len_t)size) {
rval.code = RC_WMORE;
rval.consumed = 0;
return rval;
}
/*
* Compute boolean value.
*/
for(*st = 0, lidx = 0;
(lidx < length) && *st == 0; lidx++) {
/*
* Very simple approach: read bytes until the end or
* value is already TRUE.
* BOOLEAN is not supposed to contain meaningful data anyway.
*/
*st |= ((const uint8_t *)buf_ptr)[lidx];
}
/*
* Compute boolean value.
*/
for(*st = 0, lidx = 0;
(lidx < length) && *st == 0; lidx++) {
/*
* Very simple approach: read bytes until the end or
* value is already TRUE.
* BOOLEAN is not supposed to contain meaningful data anyway.
*/
*st |= ((const uint8_t *)buf_ptr)[lidx];
}
rval.code = RC_OK;
rval.consumed += length;
rval.code = RC_OK;
rval.consumed += length;
ASN_DEBUG("Took %ld/%ld bytes to encode %s, value=%d",
(long)rval.consumed, (long)length,
td->name, *st);
ASN_DEBUG("Took %ld/%ld bytes to encode %s, value=%d",
(long)rval.consumed, (long)length,
td->name, *st);
return rval;
return rval;
}
asn_enc_rval_t
BOOLEAN_encode_der(asn_TYPE_descriptor_t *td, void *sptr,
int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_enc_rval_t erval;
BOOLEAN_t *st = (BOOLEAN_t *)sptr;
int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_enc_rval_t erval;
BOOLEAN_t *st = (BOOLEAN_t *)sptr;
erval.encoded = der_write_tags(td, 1, tag_mode, 0, tag, cb, app_key);
if(erval.encoded == -1) {
erval.failed_type = td;
erval.structure_ptr = sptr;
return erval;
}
erval.encoded = der_write_tags(td, 1, tag_mode, 0, tag, cb, app_key);
if(erval.encoded == -1) {
erval.failed_type = td;
erval.structure_ptr = sptr;
return erval;
}
if(cb) {
uint8_t bool_value;
if(cb) {
uint8_t bool_value;
bool_value = *st ? 0xff : 0; /* 0xff mandated by DER */
bool_value = *st ? 0xff : 0; /* 0xff mandated by DER */
if(cb(&bool_value, 1, app_key) < 0) {
erval.encoded = -1;
erval.failed_type = td;
erval.structure_ptr = sptr;
return erval;
}
}
if(cb(&bool_value, 1, app_key) < 0) {
erval.encoded = -1;
erval.failed_type = td;
erval.structure_ptr = sptr;
return erval;
}
}
erval.encoded += 1;
erval.encoded += 1;
_ASN_ENCODED_OK(erval);
_ASN_ENCODED_OK(erval);
}
@ -138,147 +138,147 @@ BOOLEAN_encode_der(asn_TYPE_descriptor_t *td, void *sptr,
*/
static enum xer_pbd_rval
BOOLEAN__xer_body_decode(asn_TYPE_descriptor_t *td, void *sptr, const void *chunk_buf, size_t chunk_size) {
BOOLEAN_t *st = (BOOLEAN_t *)sptr;
const char *p = (const char *)chunk_buf;
BOOLEAN_t *st = (BOOLEAN_t *)sptr;
const char *p = (const char *)chunk_buf;
(void)td;
(void)td;
if(chunk_size && p[0] == 0x3c /* '<' */) {
switch(xer_check_tag(chunk_buf, chunk_size, "false")) {
case XCT_BOTH:
/* "<false/>" */
*st = 0;
break;
case XCT_UNKNOWN_BO:
if(xer_check_tag(chunk_buf, chunk_size, "true")
!= XCT_BOTH)
return XPBD_BROKEN_ENCODING;
/* "<true/>" */
*st = 1; /* Or 0xff as in DER?.. */
break;
default:
return XPBD_BROKEN_ENCODING;
}
return XPBD_BODY_CONSUMED;
} else {
if(xer_is_whitespace(chunk_buf, chunk_size))
return XPBD_NOT_BODY_IGNORE;
else
return XPBD_BROKEN_ENCODING;
}
if(chunk_size && p[0] == 0x3c /* '<' */) {
switch(xer_check_tag(chunk_buf, chunk_size, "false")) {
case XCT_BOTH:
/* "<false/>" */
*st = 0;
break;
case XCT_UNKNOWN_BO:
if(xer_check_tag(chunk_buf, chunk_size, "true")
!= XCT_BOTH)
return XPBD_BROKEN_ENCODING;
/* "<true/>" */
*st = 1; /* Or 0xff as in DER?.. */
break;
default:
return XPBD_BROKEN_ENCODING;
}
return XPBD_BODY_CONSUMED;
} else {
if(xer_is_whitespace(chunk_buf, chunk_size))
return XPBD_NOT_BODY_IGNORE;
else
return XPBD_BROKEN_ENCODING;
}
}
asn_dec_rval_t
BOOLEAN_decode_xer(asn_codec_ctx_t *opt_codec_ctx,
asn_TYPE_descriptor_t *td, void **sptr, const char *opt_mname,
const void *buf_ptr, size_t size) {
asn_TYPE_descriptor_t *td, void **sptr, const char *opt_mname,
const void *buf_ptr, size_t size) {
return xer_decode_primitive(opt_codec_ctx, td,
sptr, sizeof(BOOLEAN_t), opt_mname, buf_ptr, size,
BOOLEAN__xer_body_decode);
return xer_decode_primitive(opt_codec_ctx, td,
sptr, sizeof(BOOLEAN_t), opt_mname, buf_ptr, size,
BOOLEAN__xer_body_decode);
}
asn_enc_rval_t
BOOLEAN_encode_xer(asn_TYPE_descriptor_t *td, void *sptr,
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
const BOOLEAN_t *st = (const BOOLEAN_t *)sptr;
asn_enc_rval_t er;
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
const BOOLEAN_t *st = (const BOOLEAN_t *)sptr;
asn_enc_rval_t er;
(void)ilevel;
(void)flags;
(void)ilevel;
(void)flags;
if(!st) _ASN_ENCODE_FAILED;
if(!st) _ASN_ENCODE_FAILED;
if(*st) {
_ASN_CALLBACK("<true/>", 7);
er.encoded = 7;
} else {
_ASN_CALLBACK("<false/>", 8);
er.encoded = 8;
}
if(*st) {
_ASN_CALLBACK("<true/>", 7);
er.encoded = 7;
} else {
_ASN_CALLBACK("<false/>", 8);
er.encoded = 8;
}
_ASN_ENCODED_OK(er);
_ASN_ENCODED_OK(er);
cb_failed:
_ASN_ENCODE_FAILED;
_ASN_ENCODE_FAILED;
}
int
BOOLEAN_print(asn_TYPE_descriptor_t *td, const void *sptr, int ilevel,
asn_app_consume_bytes_f *cb, void *app_key) {
const BOOLEAN_t *st = (const BOOLEAN_t *)sptr;
const char *buf;
size_t buflen;
asn_app_consume_bytes_f *cb, void *app_key) {
const BOOLEAN_t *st = (const BOOLEAN_t *)sptr;
const char *buf;
size_t buflen;
(void)td; /* Unused argument */
(void)ilevel; /* Unused argument */
(void)td; /* Unused argument */
(void)ilevel; /* Unused argument */
if(st) {
if(*st) {
buf = "TRUE";
buflen = 4;
} else {
buf = "FALSE";
buflen = 5;
}
} else {
buf = "<absent>";
buflen = 8;
}
if(st) {
if(*st) {
buf = "TRUE";
buflen = 4;
} else {
buf = "FALSE";
buflen = 5;
}
} else {
buf = "<absent>";
buflen = 8;
}
return (cb(buf, buflen, app_key) < 0) ? -1 : 0;
return (cb(buf, buflen, app_key) < 0) ? -1 : 0;
}
void
BOOLEAN_free(asn_TYPE_descriptor_t *td, void *ptr, int contents_only) {
if(td && ptr && !contents_only) {
FREEMEM(ptr);
}
if(td && ptr && !contents_only) {
FREEMEM(ptr);
}
}
asn_dec_rval_t
BOOLEAN_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
asn_per_constraints_t *constraints, void **sptr, asn_per_data_t *pd) {
asn_dec_rval_t rv;
BOOLEAN_t *st = (BOOLEAN_t *)*sptr;
asn_per_constraints_t *constraints, void **sptr, asn_per_data_t *pd) {
asn_dec_rval_t rv;
BOOLEAN_t *st = (BOOLEAN_t *)*sptr;
(void)opt_codec_ctx;
(void)constraints;
(void)opt_codec_ctx;
(void)constraints;
if(!st) {
st = (BOOLEAN_t *)(*sptr = MALLOC(sizeof(*st)));
if(!st) _ASN_DECODE_FAILED;
}
if(!st) {
st = (BOOLEAN_t *)(*sptr = MALLOC(sizeof(*st)));
if(!st) _ASN_DECODE_FAILED;
}
/*
* Extract a single bit
*/
switch(per_get_few_bits(pd, 1)) {
case 1: *st = 1; break;
case 0: *st = 0; break;
case -1: default: _ASN_DECODE_STARVED;
}
/*
* Extract a single bit
*/
switch(per_get_few_bits(pd, 1)) {
case 1: *st = 1; break;
case 0: *st = 0; break;
case -1: default: _ASN_DECODE_STARVED;
}
ASN_DEBUG("%s decoded as %s", td->name, *st ? "TRUE" : "FALSE");
ASN_DEBUG("%s decoded as %s", td->name, *st ? "TRUE" : "FALSE");
rv.code = RC_OK;
rv.consumed = 1;
return rv;
rv.code = RC_OK;
rv.consumed = 1;
return rv;
}
asn_enc_rval_t
BOOLEAN_encode_uper(asn_TYPE_descriptor_t *td,
asn_per_constraints_t *constraints, void *sptr, asn_per_outp_t *po) {
const BOOLEAN_t *st = (const BOOLEAN_t *)sptr;
asn_enc_rval_t er;
asn_per_constraints_t *constraints, void *sptr, asn_per_outp_t *po) {
const BOOLEAN_t *st = (const BOOLEAN_t *)sptr;
asn_enc_rval_t er;
(void)constraints;
(void)constraints;
if(!st) _ASN_ENCODE_FAILED;
if(!st) _ASN_ENCODE_FAILED;
per_put_few_bits(po, *st ? 1 : 0, 1);
per_put_few_bits(po, *st ? 1 : 0, 1);
_ASN_ENCODED_OK(er);
_ASN_ENCODED_OK(er);
}

View File

@ -1,34 +1,34 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#include "BSIC.h"
int
BSIC_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= 0 && value <= 63)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= 0 && value <= 63)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
/*
@ -37,109 +37,109 @@ BSIC_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
*/
static void
BSIC_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_NativeInteger.free_struct;
td->print_struct = asn_DEF_NativeInteger.print_struct;
td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
td->der_encoder = asn_DEF_NativeInteger.der_encoder;
td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
if(!td->per_constraints)
td->per_constraints = asn_DEF_NativeInteger.per_constraints;
td->elements = asn_DEF_NativeInteger.elements;
td->elements_count = asn_DEF_NativeInteger.elements_count;
td->specifics = asn_DEF_NativeInteger.specifics;
td->free_struct = asn_DEF_NativeInteger.free_struct;
td->print_struct = asn_DEF_NativeInteger.print_struct;
td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
td->der_encoder = asn_DEF_NativeInteger.der_encoder;
td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
if(!td->per_constraints)
td->per_constraints = asn_DEF_NativeInteger.per_constraints;
td->elements = asn_DEF_NativeInteger.elements;
td->elements_count = asn_DEF_NativeInteger.elements_count;
td->specifics = asn_DEF_NativeInteger.specifics;
}
void
BSIC_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
BSIC_1_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
void *struct_ptr, int contents_only) {
BSIC_1_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
}
int
BSIC_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
BSIC_1_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
BSIC_1_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
asn_dec_rval_t
BSIC_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) {
BSIC_1_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
void **structure, const void *bufptr, size_t size, int tag_mode) {
BSIC_1_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
asn_enc_rval_t
BSIC_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) {
BSIC_1_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
BSIC_1_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
asn_dec_rval_t
BSIC_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) {
BSIC_1_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
void **structure, const char *opt_mname, const void *bufptr, size_t size) {
BSIC_1_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
asn_enc_rval_t
BSIC_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) {
BSIC_1_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
BSIC_1_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
asn_dec_rval_t
BSIC_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) {
BSIC_1_inherit_TYPE_descriptor(td);
return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
BSIC_1_inherit_TYPE_descriptor(td);
return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
}
asn_enc_rval_t
BSIC_encode_uper(asn_TYPE_descriptor_t *td,
asn_per_constraints_t *constraints,
void *structure, asn_per_outp_t *per_out) {
BSIC_1_inherit_TYPE_descriptor(td);
return td->uper_encoder(td, constraints, structure, per_out);
asn_per_constraints_t *constraints,
void *structure, asn_per_outp_t *per_out) {
BSIC_1_inherit_TYPE_descriptor(td);
return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_BSIC_CONSTR_1 = {
{ APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_BSIC_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_BSIC = {
"BSIC",
"BSIC",
BSIC_free,
BSIC_print,
BSIC_constraint,
BSIC_decode_ber,
BSIC_encode_der,
BSIC_decode_xer,
BSIC_encode_xer,
BSIC_decode_uper,
BSIC_encode_uper,
0, /* Use generic outmost tag fetcher */
asn_DEF_BSIC_tags_1,
sizeof(asn_DEF_BSIC_tags_1)
/sizeof(asn_DEF_BSIC_tags_1[0]), /* 1 */
asn_DEF_BSIC_tags_1, /* Same as above */
sizeof(asn_DEF_BSIC_tags_1)
/sizeof(asn_DEF_BSIC_tags_1[0]), /* 1 */
&ASN_PER_TYPE_BSIC_CONSTR_1,
0, 0, /* No members */
0 /* No specifics */
"BSIC",
"BSIC",
BSIC_free,
BSIC_print,
BSIC_constraint,
BSIC_decode_ber,
BSIC_encode_der,
BSIC_decode_xer,
BSIC_encode_xer,
BSIC_decode_uper,
BSIC_encode_uper,
0, /* Use generic outmost tag fetcher */
asn_DEF_BSIC_tags_1,
sizeof(asn_DEF_BSIC_tags_1)
/sizeof(asn_DEF_BSIC_tags_1[0]), /* 1 */
asn_DEF_BSIC_tags_1, /* Same as above */
sizeof(asn_DEF_BSIC_tags_1)
/sizeof(asn_DEF_BSIC_tags_1[0]), /* 1 */
&ASN_PER_TYPE_BSIC_CONSTR_1,
0, 0, /* No members */
0 /* No specifics */
};

View File

@ -1,7 +1,7 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#ifndef _BSIC_H_

View File

@ -1,69 +1,69 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#include "BSICAndCarrier.h"
static asn_TYPE_member_t asn_MBR_BSICAndCarrier_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct BSICAndCarrier, carrier),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_BCCHCarrier,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"carrier"
},
{ ATF_NOFLAGS, 0, offsetof(struct BSICAndCarrier, bsic),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_BSIC,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"bsic"
},
{ ATF_NOFLAGS, 0, offsetof(struct BSICAndCarrier, carrier),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_BCCHCarrier,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"carrier"
},
{ ATF_NOFLAGS, 0, offsetof(struct BSICAndCarrier, bsic),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_BSIC,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"bsic"
},
};
static ber_tlv_tag_t asn_DEF_BSICAndCarrier_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static asn_TYPE_tag2member_t asn_MAP_BSICAndCarrier_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* carrier at 304 */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* bsic at 306 */
};
static asn_SEQUENCE_specifics_t asn_SPC_BSICAndCarrier_specs_1 = {
sizeof(struct BSICAndCarrier),
offsetof(struct BSICAndCarrier, _asn_ctx),
asn_MAP_BSICAndCarrier_tag2el_1,
2, /* Count of tags in the map */
0, 0, 0, /* Optional elements (not needed) */
-1, /* Start extensions */
-1 /* Stop extensions */
sizeof(struct BSICAndCarrier),
offsetof(struct BSICAndCarrier, _asn_ctx),
asn_MAP_BSICAndCarrier_tag2el_1,
2, /* Count of tags in the map */
0, 0, 0, /* Optional elements (not needed) */
-1, /* Start extensions */
-1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_BSICAndCarrier = {
"BSICAndCarrier",
"BSICAndCarrier",
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_BSICAndCarrier_tags_1,
sizeof(asn_DEF_BSICAndCarrier_tags_1)
/sizeof(asn_DEF_BSICAndCarrier_tags_1[0]), /* 1 */
asn_DEF_BSICAndCarrier_tags_1, /* Same as above */
sizeof(asn_DEF_BSICAndCarrier_tags_1)
/sizeof(asn_DEF_BSICAndCarrier_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
asn_MBR_BSICAndCarrier_1,
2, /* Elements count */
&asn_SPC_BSICAndCarrier_specs_1 /* Additional specs */
"BSICAndCarrier",
"BSICAndCarrier",
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_BSICAndCarrier_tags_1,
sizeof(asn_DEF_BSICAndCarrier_tags_1)
/sizeof(asn_DEF_BSICAndCarrier_tags_1[0]), /* 1 */
asn_DEF_BSICAndCarrier_tags_1, /* Same as above */
sizeof(asn_DEF_BSICAndCarrier_tags_1)
/sizeof(asn_DEF_BSICAndCarrier_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
asn_MBR_BSICAndCarrier_1,
2, /* Elements count */
&asn_SPC_BSICAndCarrier_specs_1 /* Additional specs */
};

View File

@ -1,7 +1,7 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#ifndef _BSICAndCarrier_H_

View File

@ -1,35 +1,35 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#include "BTSPosition.h"
int
BTSPosition_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
const Ext_GeographicalInformation_t *st = (const Ext_GeographicalInformation_t *)sptr;
size_t size;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
const Ext_GeographicalInformation_t *st = (const Ext_GeographicalInformation_t *)sptr;
size_t size;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
size = st->size;
size = st->size;
if((size >= 1 && size <= 20)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((size >= 1 && size <= 20)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
/*
@ -38,104 +38,104 @@ BTSPosition_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
*/
static void
BTSPosition_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_Ext_GeographicalInformation.free_struct;
td->print_struct = asn_DEF_Ext_GeographicalInformation.print_struct;
td->ber_decoder = asn_DEF_Ext_GeographicalInformation.ber_decoder;
td->der_encoder = asn_DEF_Ext_GeographicalInformation.der_encoder;
td->xer_decoder = asn_DEF_Ext_GeographicalInformation.xer_decoder;
td->xer_encoder = asn_DEF_Ext_GeographicalInformation.xer_encoder;
td->uper_decoder = asn_DEF_Ext_GeographicalInformation.uper_decoder;
td->uper_encoder = asn_DEF_Ext_GeographicalInformation.uper_encoder;
if(!td->per_constraints)
td->per_constraints = asn_DEF_Ext_GeographicalInformation.per_constraints;
td->elements = asn_DEF_Ext_GeographicalInformation.elements;
td->elements_count = asn_DEF_Ext_GeographicalInformation.elements_count;
td->specifics = asn_DEF_Ext_GeographicalInformation.specifics;
td->free_struct = asn_DEF_Ext_GeographicalInformation.free_struct;
td->print_struct = asn_DEF_Ext_GeographicalInformation.print_struct;
td->ber_decoder = asn_DEF_Ext_GeographicalInformation.ber_decoder;
td->der_encoder = asn_DEF_Ext_GeographicalInformation.der_encoder;
td->xer_decoder = asn_DEF_Ext_GeographicalInformation.xer_decoder;
td->xer_encoder = asn_DEF_Ext_GeographicalInformation.xer_encoder;
td->uper_decoder = asn_DEF_Ext_GeographicalInformation.uper_decoder;
td->uper_encoder = asn_DEF_Ext_GeographicalInformation.uper_encoder;
if(!td->per_constraints)
td->per_constraints = asn_DEF_Ext_GeographicalInformation.per_constraints;
td->elements = asn_DEF_Ext_GeographicalInformation.elements;
td->elements_count = asn_DEF_Ext_GeographicalInformation.elements_count;
td->specifics = asn_DEF_Ext_GeographicalInformation.specifics;
}
void
BTSPosition_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
BTSPosition_1_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
void *struct_ptr, int contents_only) {
BTSPosition_1_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
}
int
BTSPosition_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
BTSPosition_1_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
BTSPosition_1_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
asn_dec_rval_t
BTSPosition_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) {
BTSPosition_1_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
void **structure, const void *bufptr, size_t size, int tag_mode) {
BTSPosition_1_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
asn_enc_rval_t
BTSPosition_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) {
BTSPosition_1_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
BTSPosition_1_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
asn_dec_rval_t
BTSPosition_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) {
BTSPosition_1_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
void **structure, const char *opt_mname, const void *bufptr, size_t size) {
BTSPosition_1_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
asn_enc_rval_t
BTSPosition_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) {
BTSPosition_1_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
BTSPosition_1_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
asn_dec_rval_t
BTSPosition_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) {
BTSPosition_1_inherit_TYPE_descriptor(td);
return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
BTSPosition_1_inherit_TYPE_descriptor(td);
return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
}
asn_enc_rval_t
BTSPosition_encode_uper(asn_TYPE_descriptor_t *td,
asn_per_constraints_t *constraints,
void *structure, asn_per_outp_t *per_out) {
BTSPosition_1_inherit_TYPE_descriptor(td);
return td->uper_encoder(td, constraints, structure, per_out);
asn_per_constraints_t *constraints,
void *structure, asn_per_outp_t *per_out) {
BTSPosition_1_inherit_TYPE_descriptor(td);
return td->uper_encoder(td, constraints, structure, per_out);
}
static ber_tlv_tag_t asn_DEF_BTSPosition_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (4 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (4 << 2))
};
asn_TYPE_descriptor_t asn_DEF_BTSPosition = {
"BTSPosition",
"BTSPosition",
BTSPosition_free,
BTSPosition_print,
BTSPosition_constraint,
BTSPosition_decode_ber,
BTSPosition_encode_der,
BTSPosition_decode_xer,
BTSPosition_encode_xer,
BTSPosition_decode_uper,
BTSPosition_encode_uper,
0, /* Use generic outmost tag fetcher */
asn_DEF_BTSPosition_tags_1,
sizeof(asn_DEF_BTSPosition_tags_1)
/sizeof(asn_DEF_BTSPosition_tags_1[0]), /* 1 */
asn_DEF_BTSPosition_tags_1, /* Same as above */
sizeof(asn_DEF_BTSPosition_tags_1)
/sizeof(asn_DEF_BTSPosition_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
0, 0, /* No members */
0 /* No specifics */
"BTSPosition",
"BTSPosition",
BTSPosition_free,
BTSPosition_print,
BTSPosition_constraint,
BTSPosition_decode_ber,
BTSPosition_encode_der,
BTSPosition_decode_xer,
BTSPosition_encode_xer,
BTSPosition_decode_uper,
BTSPosition_encode_uper,
0, /* Use generic outmost tag fetcher */
asn_DEF_BTSPosition_tags_1,
sizeof(asn_DEF_BTSPosition_tags_1)
/sizeof(asn_DEF_BTSPosition_tags_1[0]), /* 1 */
asn_DEF_BTSPosition_tags_1, /* Same as above */
sizeof(asn_DEF_BTSPosition_tags_1)
/sizeof(asn_DEF_BTSPosition_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
0, 0, /* No members */
0 /* No specifics */
};

View File

@ -1,7 +1,7 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#ifndef _BTSPosition_H_

View File

@ -1,101 +1,101 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#include "BadSignalElement.h"
static int
memb_badSignalID_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= 0 && value <= 3)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= 0 && value <= 3)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
static asn_per_constraints_t ASN_PER_MEMB_BAD_SIGNAL_ID_CONSTR_3 = {
{ APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_BadSignalElement_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct BadSignalElement, badSVID),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_SVID,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"badSVID"
},
{ ATF_POINTER, 1, offsetof(struct BadSignalElement, badSignalID),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_badSignalID_constraint_1,
&ASN_PER_MEMB_BAD_SIGNAL_ID_CONSTR_3,
0,
"badSignalID"
},
{ ATF_NOFLAGS, 0, offsetof(struct BadSignalElement, badSVID),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_SVID,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"badSVID"
},
{ ATF_POINTER, 1, offsetof(struct BadSignalElement, badSignalID),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_badSignalID_constraint_1,
&ASN_PER_MEMB_BAD_SIGNAL_ID_CONSTR_3,
0,
"badSignalID"
},
};
static int asn_MAP_BadSignalElement_oms_1[] = { 1 };
static ber_tlv_tag_t asn_DEF_BadSignalElement_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static asn_TYPE_tag2member_t asn_MAP_BadSignalElement_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* badSVID at 1300 */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* badSignalID at 1301 */
};
static asn_SEQUENCE_specifics_t asn_SPC_BadSignalElement_specs_1 = {
sizeof(struct BadSignalElement),
offsetof(struct BadSignalElement, _asn_ctx),
asn_MAP_BadSignalElement_tag2el_1,
2, /* Count of tags in the map */
asn_MAP_BadSignalElement_oms_1, /* Optional members */
1, 0, /* Root/Additions */
-1, /* Start extensions */
-1 /* Stop extensions */
sizeof(struct BadSignalElement),
offsetof(struct BadSignalElement, _asn_ctx),
asn_MAP_BadSignalElement_tag2el_1,
2, /* Count of tags in the map */
asn_MAP_BadSignalElement_oms_1, /* Optional members */
1, 0, /* Root/Additions */
-1, /* Start extensions */
-1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_BadSignalElement = {
"BadSignalElement",
"BadSignalElement",
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_BadSignalElement_tags_1,
sizeof(asn_DEF_BadSignalElement_tags_1)
/sizeof(asn_DEF_BadSignalElement_tags_1[0]), /* 1 */
asn_DEF_BadSignalElement_tags_1, /* Same as above */
sizeof(asn_DEF_BadSignalElement_tags_1)
/sizeof(asn_DEF_BadSignalElement_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
asn_MBR_BadSignalElement_1,
2, /* Elements count */
&asn_SPC_BadSignalElement_specs_1 /* Additional specs */
"BadSignalElement",
"BadSignalElement",
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_BadSignalElement_tags_1,
sizeof(asn_DEF_BadSignalElement_tags_1)
/sizeof(asn_DEF_BadSignalElement_tags_1[0]), /* 1 */
asn_DEF_BadSignalElement_tags_1, /* Same as above */
sizeof(asn_DEF_BadSignalElement_tags_1)
/sizeof(asn_DEF_BadSignalElement_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
asn_MBR_BadSignalElement_1,
2, /* Elements count */
&asn_SPC_BadSignalElement_specs_1 /* Additional specs */
};

View File

@ -1,7 +1,7 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#ifndef _BadSignalElement_H_

View File

@ -1,34 +1,34 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#include "BitNumber.h"
int
BitNumber_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= 0 && value <= 156)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= 0 && value <= 156)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
/*
@ -37,109 +37,109 @@ BitNumber_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
*/
static void
BitNumber_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_NativeInteger.free_struct;
td->print_struct = asn_DEF_NativeInteger.print_struct;
td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
td->der_encoder = asn_DEF_NativeInteger.der_encoder;
td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
if(!td->per_constraints)
td->per_constraints = asn_DEF_NativeInteger.per_constraints;
td->elements = asn_DEF_NativeInteger.elements;
td->elements_count = asn_DEF_NativeInteger.elements_count;
td->specifics = asn_DEF_NativeInteger.specifics;
td->free_struct = asn_DEF_NativeInteger.free_struct;
td->print_struct = asn_DEF_NativeInteger.print_struct;
td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
td->der_encoder = asn_DEF_NativeInteger.der_encoder;
td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
if(!td->per_constraints)
td->per_constraints = asn_DEF_NativeInteger.per_constraints;
td->elements = asn_DEF_NativeInteger.elements;
td->elements_count = asn_DEF_NativeInteger.elements_count;
td->specifics = asn_DEF_NativeInteger.specifics;
}
void
BitNumber_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
BitNumber_1_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
void *struct_ptr, int contents_only) {
BitNumber_1_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
}
int
BitNumber_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
BitNumber_1_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
BitNumber_1_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
asn_dec_rval_t
BitNumber_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) {
BitNumber_1_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
void **structure, const void *bufptr, size_t size, int tag_mode) {
BitNumber_1_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
asn_enc_rval_t
BitNumber_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) {
BitNumber_1_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
BitNumber_1_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
asn_dec_rval_t
BitNumber_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) {
BitNumber_1_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
void **structure, const char *opt_mname, const void *bufptr, size_t size) {
BitNumber_1_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
asn_enc_rval_t
BitNumber_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) {
BitNumber_1_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
BitNumber_1_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
asn_dec_rval_t
BitNumber_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) {
BitNumber_1_inherit_TYPE_descriptor(td);
return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
BitNumber_1_inherit_TYPE_descriptor(td);
return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
}
asn_enc_rval_t
BitNumber_encode_uper(asn_TYPE_descriptor_t *td,
asn_per_constraints_t *constraints,
void *structure, asn_per_outp_t *per_out) {
BitNumber_1_inherit_TYPE_descriptor(td);
return td->uper_encoder(td, constraints, structure, per_out);
asn_per_constraints_t *constraints,
void *structure, asn_per_outp_t *per_out) {
BitNumber_1_inherit_TYPE_descriptor(td);
return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_BIT_NUMBER_CONSTR_1 = {
{ APC_CONSTRAINED, 8, 8, 0, 156 } /* (0..156) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 8, 8, 0, 156 } /* (0..156) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_BitNumber_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_BitNumber = {
"BitNumber",
"BitNumber",
BitNumber_free,
BitNumber_print,
BitNumber_constraint,
BitNumber_decode_ber,
BitNumber_encode_der,
BitNumber_decode_xer,
BitNumber_encode_xer,
BitNumber_decode_uper,
BitNumber_encode_uper,
0, /* Use generic outmost tag fetcher */
asn_DEF_BitNumber_tags_1,
sizeof(asn_DEF_BitNumber_tags_1)
/sizeof(asn_DEF_BitNumber_tags_1[0]), /* 1 */
asn_DEF_BitNumber_tags_1, /* Same as above */
sizeof(asn_DEF_BitNumber_tags_1)
/sizeof(asn_DEF_BitNumber_tags_1[0]), /* 1 */
&ASN_PER_TYPE_BIT_NUMBER_CONSTR_1,
0, 0, /* No members */
0 /* No specifics */
"BitNumber",
"BitNumber",
BitNumber_free,
BitNumber_print,
BitNumber_constraint,
BitNumber_decode_ber,
BitNumber_encode_der,
BitNumber_decode_xer,
BitNumber_encode_xer,
BitNumber_decode_uper,
BitNumber_encode_uper,
0, /* Use generic outmost tag fetcher */
asn_DEF_BitNumber_tags_1,
sizeof(asn_DEF_BitNumber_tags_1)
/sizeof(asn_DEF_BitNumber_tags_1[0]), /* 1 */
asn_DEF_BitNumber_tags_1, /* Same as above */
sizeof(asn_DEF_BitNumber_tags_1)
/sizeof(asn_DEF_BitNumber_tags_1[0]), /* 1 */
&ASN_PER_TYPE_BIT_NUMBER_CONSTR_1,
0, 0, /* No members */
0 /* No specifics */
};

View File

@ -1,7 +1,7 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#ifndef _BitNumber_H_

View File

@ -1,69 +1,69 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#include "CalcAssistanceBTS.h"
static asn_TYPE_member_t asn_MBR_CalcAssistanceBTS_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct CalcAssistanceBTS, fineRTD),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_FineRTD,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"fineRTD"
},
{ ATF_NOFLAGS, 0, offsetof(struct CalcAssistanceBTS, referenceWGS84),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_ReferenceWGS84,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"referenceWGS84"
},
{ ATF_NOFLAGS, 0, offsetof(struct CalcAssistanceBTS, fineRTD),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_FineRTD,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"fineRTD"
},
{ ATF_NOFLAGS, 0, offsetof(struct CalcAssistanceBTS, referenceWGS84),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_ReferenceWGS84,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"referenceWGS84"
},
};
static ber_tlv_tag_t asn_DEF_CalcAssistanceBTS_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static asn_TYPE_tag2member_t asn_MAP_CalcAssistanceBTS_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* fineRTD at 241 */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* referenceWGS84 at 243 */
};
static asn_SEQUENCE_specifics_t asn_SPC_CalcAssistanceBTS_specs_1 = {
sizeof(struct CalcAssistanceBTS),
offsetof(struct CalcAssistanceBTS, _asn_ctx),
asn_MAP_CalcAssistanceBTS_tag2el_1,
2, /* Count of tags in the map */
0, 0, 0, /* Optional elements (not needed) */
-1, /* Start extensions */
-1 /* Stop extensions */
sizeof(struct CalcAssistanceBTS),
offsetof(struct CalcAssistanceBTS, _asn_ctx),
asn_MAP_CalcAssistanceBTS_tag2el_1,
2, /* Count of tags in the map */
0, 0, 0, /* Optional elements (not needed) */
-1, /* Start extensions */
-1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_CalcAssistanceBTS = {
"CalcAssistanceBTS",
"CalcAssistanceBTS",
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_CalcAssistanceBTS_tags_1,
sizeof(asn_DEF_CalcAssistanceBTS_tags_1)
/sizeof(asn_DEF_CalcAssistanceBTS_tags_1[0]), /* 1 */
asn_DEF_CalcAssistanceBTS_tags_1, /* Same as above */
sizeof(asn_DEF_CalcAssistanceBTS_tags_1)
/sizeof(asn_DEF_CalcAssistanceBTS_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
asn_MBR_CalcAssistanceBTS_1,
2, /* Elements count */
&asn_SPC_CalcAssistanceBTS_specs_1 /* Additional specs */
"CalcAssistanceBTS",
"CalcAssistanceBTS",
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_CalcAssistanceBTS_tags_1,
sizeof(asn_DEF_CalcAssistanceBTS_tags_1)
/sizeof(asn_DEF_CalcAssistanceBTS_tags_1[0]), /* 1 */
asn_DEF_CalcAssistanceBTS_tags_1, /* Same as above */
sizeof(asn_DEF_CalcAssistanceBTS_tags_1)
/sizeof(asn_DEF_CalcAssistanceBTS_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
asn_MBR_CalcAssistanceBTS_1,
2, /* Elements count */
&asn_SPC_CalcAssistanceBTS_specs_1 /* Additional specs */
};

View File

@ -1,7 +1,7 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#ifndef _CalcAssistanceBTS_H_

View File

@ -1,34 +1,34 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#include "CellID.h"
int
CellID_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= 0 && value <= 65535)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= 0 && value <= 65535)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
/*
@ -37,109 +37,109 @@ CellID_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
*/
static void
CellID_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_NativeInteger.free_struct;
td->print_struct = asn_DEF_NativeInteger.print_struct;
td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
td->der_encoder = asn_DEF_NativeInteger.der_encoder;
td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
if(!td->per_constraints)
td->per_constraints = asn_DEF_NativeInteger.per_constraints;
td->elements = asn_DEF_NativeInteger.elements;
td->elements_count = asn_DEF_NativeInteger.elements_count;
td->specifics = asn_DEF_NativeInteger.specifics;
td->free_struct = asn_DEF_NativeInteger.free_struct;
td->print_struct = asn_DEF_NativeInteger.print_struct;
td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
td->der_encoder = asn_DEF_NativeInteger.der_encoder;
td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
if(!td->per_constraints)
td->per_constraints = asn_DEF_NativeInteger.per_constraints;
td->elements = asn_DEF_NativeInteger.elements;
td->elements_count = asn_DEF_NativeInteger.elements_count;
td->specifics = asn_DEF_NativeInteger.specifics;
}
void
CellID_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
CellID_1_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
void *struct_ptr, int contents_only) {
CellID_1_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
}
int
CellID_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
CellID_1_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
CellID_1_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
asn_dec_rval_t
CellID_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) {
CellID_1_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
void **structure, const void *bufptr, size_t size, int tag_mode) {
CellID_1_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
asn_enc_rval_t
CellID_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) {
CellID_1_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
CellID_1_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
asn_dec_rval_t
CellID_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) {
CellID_1_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
void **structure, const char *opt_mname, const void *bufptr, size_t size) {
CellID_1_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
asn_enc_rval_t
CellID_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) {
CellID_1_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
CellID_1_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
asn_dec_rval_t
CellID_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) {
CellID_1_inherit_TYPE_descriptor(td);
return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
CellID_1_inherit_TYPE_descriptor(td);
return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
}
asn_enc_rval_t
CellID_encode_uper(asn_TYPE_descriptor_t *td,
asn_per_constraints_t *constraints,
void *structure, asn_per_outp_t *per_out) {
CellID_1_inherit_TYPE_descriptor(td);
return td->uper_encoder(td, constraints, structure, per_out);
asn_per_constraints_t *constraints,
void *structure, asn_per_outp_t *per_out) {
CellID_1_inherit_TYPE_descriptor(td);
return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_CELL_ID_CONSTR_1 = {
{ APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_CellID_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_CellID = {
"CellID",
"CellID",
CellID_free,
CellID_print,
CellID_constraint,
CellID_decode_ber,
CellID_encode_der,
CellID_decode_xer,
CellID_encode_xer,
CellID_decode_uper,
CellID_encode_uper,
0, /* Use generic outmost tag fetcher */
asn_DEF_CellID_tags_1,
sizeof(asn_DEF_CellID_tags_1)
/sizeof(asn_DEF_CellID_tags_1[0]), /* 1 */
asn_DEF_CellID_tags_1, /* Same as above */
sizeof(asn_DEF_CellID_tags_1)
/sizeof(asn_DEF_CellID_tags_1[0]), /* 1 */
&ASN_PER_TYPE_CELL_ID_CONSTR_1,
0, 0, /* No members */
0 /* No specifics */
"CellID",
"CellID",
CellID_free,
CellID_print,
CellID_constraint,
CellID_decode_ber,
CellID_encode_der,
CellID_decode_xer,
CellID_encode_xer,
CellID_decode_uper,
CellID_encode_uper,
0, /* Use generic outmost tag fetcher */
asn_DEF_CellID_tags_1,
sizeof(asn_DEF_CellID_tags_1)
/sizeof(asn_DEF_CellID_tags_1[0]), /* 1 */
asn_DEF_CellID_tags_1, /* Same as above */
sizeof(asn_DEF_CellID_tags_1)
/sizeof(asn_DEF_CellID_tags_1[0]), /* 1 */
&ASN_PER_TYPE_CELL_ID_CONSTR_1,
0, 0, /* No members */
0 /* No specifics */
};

View File

@ -1,7 +1,7 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#ifndef _CellID_H_

View File

@ -1,69 +1,69 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#include "CellIDAndLAC.h"
static asn_TYPE_member_t asn_MBR_CellIDAndLAC_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct CellIDAndLAC, referenceLAC),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_LAC,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"referenceLAC"
},
{ ATF_NOFLAGS, 0, offsetof(struct CellIDAndLAC, referenceCI),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_CellID,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"referenceCI"
},
{ ATF_NOFLAGS, 0, offsetof(struct CellIDAndLAC, referenceLAC),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_LAC,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"referenceLAC"
},
{ ATF_NOFLAGS, 0, offsetof(struct CellIDAndLAC, referenceCI),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_CellID,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"referenceCI"
},
};
static ber_tlv_tag_t asn_DEF_CellIDAndLAC_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static asn_TYPE_tag2member_t asn_MAP_CellIDAndLAC_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* referenceLAC at 313 */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* referenceCI at 315 */
};
static asn_SEQUENCE_specifics_t asn_SPC_CellIDAndLAC_specs_1 = {
sizeof(struct CellIDAndLAC),
offsetof(struct CellIDAndLAC, _asn_ctx),
asn_MAP_CellIDAndLAC_tag2el_1,
2, /* Count of tags in the map */
0, 0, 0, /* Optional elements (not needed) */
-1, /* Start extensions */
-1 /* Stop extensions */
sizeof(struct CellIDAndLAC),
offsetof(struct CellIDAndLAC, _asn_ctx),
asn_MAP_CellIDAndLAC_tag2el_1,
2, /* Count of tags in the map */
0, 0, 0, /* Optional elements (not needed) */
-1, /* Start extensions */
-1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_CellIDAndLAC = {
"CellIDAndLAC",
"CellIDAndLAC",
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_CellIDAndLAC_tags_1,
sizeof(asn_DEF_CellIDAndLAC_tags_1)
/sizeof(asn_DEF_CellIDAndLAC_tags_1[0]), /* 1 */
asn_DEF_CellIDAndLAC_tags_1, /* Same as above */
sizeof(asn_DEF_CellIDAndLAC_tags_1)
/sizeof(asn_DEF_CellIDAndLAC_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
asn_MBR_CellIDAndLAC_1,
2, /* Elements count */
&asn_SPC_CellIDAndLAC_specs_1 /* Additional specs */
"CellIDAndLAC",
"CellIDAndLAC",
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_CellIDAndLAC_tags_1,
sizeof(asn_DEF_CellIDAndLAC_tags_1)
/sizeof(asn_DEF_CellIDAndLAC_tags_1[0]), /* 1 */
asn_DEF_CellIDAndLAC_tags_1, /* Same as above */
sizeof(asn_DEF_CellIDAndLAC_tags_1)
/sizeof(asn_DEF_CellIDAndLAC_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
asn_MBR_CellIDAndLAC_1,
2, /* Elements count */
&asn_SPC_CellIDAndLAC_specs_1 /* Additional specs */
};

View File

@ -1,7 +1,7 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#ifndef _CellIDAndLAC_H_

View File

@ -1,97 +1,97 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#include "ControlHeader.h"
static asn_TYPE_member_t asn_MBR_ControlHeader_1[] = {
{ ATF_POINTER, 9, offsetof(struct ControlHeader, referenceTime),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_ReferenceTime,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"referenceTime"
},
{ ATF_POINTER, 8, offsetof(struct ControlHeader, refLocation),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_RefLocation,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"refLocation"
},
{ ATF_POINTER, 7, offsetof(struct ControlHeader, dgpsCorrections),
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_DGPSCorrections,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"dgpsCorrections"
},
{ ATF_POINTER, 6, offsetof(struct ControlHeader, navigationModel),
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NavigationModel,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"navigationModel"
},
{ ATF_POINTER, 5, offsetof(struct ControlHeader, ionosphericModel),
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_IonosphericModel,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"ionosphericModel"
},
{ ATF_POINTER, 4, offsetof(struct ControlHeader, utcModel),
(ASN_TAG_CLASS_CONTEXT | (5 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_UTCModel,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"utcModel"
},
{ ATF_POINTER, 3, offsetof(struct ControlHeader, almanac),
(ASN_TAG_CLASS_CONTEXT | (6 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_Almanac,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"almanac"
},
{ ATF_POINTER, 2, offsetof(struct ControlHeader, acquisAssist),
(ASN_TAG_CLASS_CONTEXT | (7 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_AcquisAssist,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"acquisAssist"
},
{ ATF_POINTER, 1, offsetof(struct ControlHeader, realTimeIntegrity),
(ASN_TAG_CLASS_CONTEXT | (8 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_SeqOf_BadSatelliteSet,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"realTimeIntegrity"
},
{ ATF_POINTER, 9, offsetof(struct ControlHeader, referenceTime),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_ReferenceTime,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"referenceTime"
},
{ ATF_POINTER, 8, offsetof(struct ControlHeader, refLocation),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_RefLocation,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"refLocation"
},
{ ATF_POINTER, 7, offsetof(struct ControlHeader, dgpsCorrections),
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_DGPSCorrections,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"dgpsCorrections"
},
{ ATF_POINTER, 6, offsetof(struct ControlHeader, navigationModel),
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NavigationModel,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"navigationModel"
},
{ ATF_POINTER, 5, offsetof(struct ControlHeader, ionosphericModel),
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_IonosphericModel,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"ionosphericModel"
},
{ ATF_POINTER, 4, offsetof(struct ControlHeader, utcModel),
(ASN_TAG_CLASS_CONTEXT | (5 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_UTCModel,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"utcModel"
},
{ ATF_POINTER, 3, offsetof(struct ControlHeader, almanac),
(ASN_TAG_CLASS_CONTEXT | (6 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_Almanac,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"almanac"
},
{ ATF_POINTER, 2, offsetof(struct ControlHeader, acquisAssist),
(ASN_TAG_CLASS_CONTEXT | (7 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_AcquisAssist,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"acquisAssist"
},
{ ATF_POINTER, 1, offsetof(struct ControlHeader, realTimeIntegrity),
(ASN_TAG_CLASS_CONTEXT | (8 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_SeqOf_BadSatelliteSet,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"realTimeIntegrity"
},
};
static int asn_MAP_ControlHeader_oms_1[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8 };
static ber_tlv_tag_t asn_DEF_ControlHeader_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static asn_TYPE_tag2member_t asn_MAP_ControlHeader_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* referenceTime at 574 */
@ -105,37 +105,37 @@ static asn_TYPE_tag2member_t asn_MAP_ControlHeader_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 } /* realTimeIntegrity at 582 */
};
static asn_SEQUENCE_specifics_t asn_SPC_ControlHeader_specs_1 = {
sizeof(struct ControlHeader),
offsetof(struct ControlHeader, _asn_ctx),
asn_MAP_ControlHeader_tag2el_1,
9, /* Count of tags in the map */
asn_MAP_ControlHeader_oms_1, /* Optional members */
9, 0, /* Root/Additions */
-1, /* Start extensions */
-1 /* Stop extensions */
sizeof(struct ControlHeader),
offsetof(struct ControlHeader, _asn_ctx),
asn_MAP_ControlHeader_tag2el_1,
9, /* Count of tags in the map */
asn_MAP_ControlHeader_oms_1, /* Optional members */
9, 0, /* Root/Additions */
-1, /* Start extensions */
-1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_ControlHeader = {
"ControlHeader",
"ControlHeader",
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_ControlHeader_tags_1,
sizeof(asn_DEF_ControlHeader_tags_1)
/sizeof(asn_DEF_ControlHeader_tags_1[0]), /* 1 */
asn_DEF_ControlHeader_tags_1, /* Same as above */
sizeof(asn_DEF_ControlHeader_tags_1)
/sizeof(asn_DEF_ControlHeader_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
asn_MBR_ControlHeader_1,
9, /* Elements count */
&asn_SPC_ControlHeader_specs_1 /* Additional specs */
"ControlHeader",
"ControlHeader",
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_ControlHeader_tags_1,
sizeof(asn_DEF_ControlHeader_tags_1)
/sizeof(asn_DEF_ControlHeader_tags_1[0]), /* 1 */
asn_DEF_ControlHeader_tags_1, /* Same as above */
sizeof(asn_DEF_ControlHeader_tags_1)
/sizeof(asn_DEF_ControlHeader_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
asn_MBR_ControlHeader_1,
9, /* Elements count */
&asn_SPC_ControlHeader_specs_1 /* Additional specs */
};

View File

@ -1,7 +1,7 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#ifndef _ControlHeader_H_

View File

@ -1,180 +1,180 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#include "DGANSSSgnElement.h"
static int
memb_iod_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= 0 && value <= 1023)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= 0 && value <= 1023)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
static int
memb_udre_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= 0 && value <= 3)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= 0 && value <= 3)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
static int
memb_pseudoRangeCor_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= -2047 && value <= 2047)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= -2047 && value <= 2047)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
static int
memb_rangeRateCor_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= -127 && value <= 127)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= -127 && value <= 127)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
static asn_per_constraints_t ASN_PER_MEMB_IOD_CONSTR_3 = {
{ APC_CONSTRAINED, 10, 10, 0, 1023 } /* (0..1023) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 10, 10, 0, 1023 } /* (0..1023) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_UDRE_CONSTR_4 = {
{ APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_PSEUDO_RANGE_COR_CONSTR_5 = {
{ APC_CONSTRAINED, 12, 12, -2047, 2047 } /* (-2047..2047) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 12, 12, -2047, 2047 } /* (-2047..2047) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_RANGE_RATE_COR_CONSTR_6 = {
{ APC_CONSTRAINED, 8, 8, -127, 127 } /* (-127..127) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 8, 8, -127, 127 } /* (-127..127) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_DGANSSSgnElement_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct DGANSSSgnElement, svID),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_SVID,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"svID"
},
{ ATF_NOFLAGS, 0, offsetof(struct DGANSSSgnElement, iod),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_iod_constraint_1,
&ASN_PER_MEMB_IOD_CONSTR_3,
0,
"iod"
},
{ ATF_NOFLAGS, 0, offsetof(struct DGANSSSgnElement, udre),
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_udre_constraint_1,
&ASN_PER_MEMB_UDRE_CONSTR_4,
0,
"udre"
},
{ ATF_NOFLAGS, 0, offsetof(struct DGANSSSgnElement, pseudoRangeCor),
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_pseudoRangeCor_constraint_1,
&ASN_PER_MEMB_PSEUDO_RANGE_COR_CONSTR_5,
0,
"pseudoRangeCor"
},
{ ATF_NOFLAGS, 0, offsetof(struct DGANSSSgnElement, rangeRateCor),
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_rangeRateCor_constraint_1,
&ASN_PER_MEMB_RANGE_RATE_COR_CONSTR_6,
0,
"rangeRateCor"
},
{ ATF_NOFLAGS, 0, offsetof(struct DGANSSSgnElement, svID),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_SVID,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"svID"
},
{ ATF_NOFLAGS, 0, offsetof(struct DGANSSSgnElement, iod),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_iod_constraint_1,
&ASN_PER_MEMB_IOD_CONSTR_3,
0,
"iod"
},
{ ATF_NOFLAGS, 0, offsetof(struct DGANSSSgnElement, udre),
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_udre_constraint_1,
&ASN_PER_MEMB_UDRE_CONSTR_4,
0,
"udre"
},
{ ATF_NOFLAGS, 0, offsetof(struct DGANSSSgnElement, pseudoRangeCor),
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_pseudoRangeCor_constraint_1,
&ASN_PER_MEMB_PSEUDO_RANGE_COR_CONSTR_5,
0,
"pseudoRangeCor"
},
{ ATF_NOFLAGS, 0, offsetof(struct DGANSSSgnElement, rangeRateCor),
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_rangeRateCor_constraint_1,
&ASN_PER_MEMB_RANGE_RATE_COR_CONSTR_6,
0,
"rangeRateCor"
},
};
static ber_tlv_tag_t asn_DEF_DGANSSSgnElement_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static asn_TYPE_tag2member_t asn_MAP_DGANSSSgnElement_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID at 1207 */
@ -184,36 +184,36 @@ static asn_TYPE_tag2member_t asn_MAP_DGANSSSgnElement_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* rangeRateCor at 1221 */
};
static asn_SEQUENCE_specifics_t asn_SPC_DGANSSSgnElement_specs_1 = {
sizeof(struct DGANSSSgnElement),
offsetof(struct DGANSSSgnElement, _asn_ctx),
asn_MAP_DGANSSSgnElement_tag2el_1,
5, /* Count of tags in the map */
0, 0, 0, /* Optional elements (not needed) */
-1, /* Start extensions */
-1 /* Stop extensions */
sizeof(struct DGANSSSgnElement),
offsetof(struct DGANSSSgnElement, _asn_ctx),
asn_MAP_DGANSSSgnElement_tag2el_1,
5, /* Count of tags in the map */
0, 0, 0, /* Optional elements (not needed) */
-1, /* Start extensions */
-1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_DGANSSSgnElement = {
"DGANSSSgnElement",
"DGANSSSgnElement",
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_DGANSSSgnElement_tags_1,
sizeof(asn_DEF_DGANSSSgnElement_tags_1)
/sizeof(asn_DEF_DGANSSSgnElement_tags_1[0]), /* 1 */
asn_DEF_DGANSSSgnElement_tags_1, /* Same as above */
sizeof(asn_DEF_DGANSSSgnElement_tags_1)
/sizeof(asn_DEF_DGANSSSgnElement_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
asn_MBR_DGANSSSgnElement_1,
5, /* Elements count */
&asn_SPC_DGANSSSgnElement_specs_1 /* Additional specs */
"DGANSSSgnElement",
"DGANSSSgnElement",
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_DGANSSSgnElement_tags_1,
sizeof(asn_DEF_DGANSSSgnElement_tags_1)
/sizeof(asn_DEF_DGANSSSgnElement_tags_1[0]), /* 1 */
asn_DEF_DGANSSSgnElement_tags_1, /* Same as above */
sizeof(asn_DEF_DGANSSSgnElement_tags_1)
/sizeof(asn_DEF_DGANSSSgnElement_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
asn_MBR_DGANSSSgnElement_1,
5, /* Elements count */
&asn_SPC_DGANSSSgnElement_specs_1 /* Additional specs */
};

View File

@ -1,7 +1,7 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#ifndef _DGANSSSgnElement_H_

View File

@ -1,102 +1,102 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#include "DGPSCorrections.h"
static int
memb_gpsTOW_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= 0 && value <= 604799)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= 0 && value <= 604799)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
static int
memb_status_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= 0 && value <= 7)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= 0 && value <= 7)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
static asn_per_constraints_t ASN_PER_MEMB_GPS_TOW_CONSTR_2 = {
{ APC_CONSTRAINED, 20, -1, 0, 604799 } /* (0..604799) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 20, -1, 0, 604799 } /* (0..604799) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_STATUS_CONSTR_3 = {
{ APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_DGPSCorrections_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct DGPSCorrections, gpsTOW),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_gpsTOW_constraint_1,
&ASN_PER_MEMB_GPS_TOW_CONSTR_2,
0,
"gpsTOW"
},
{ ATF_NOFLAGS, 0, offsetof(struct DGPSCorrections, status),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_status_constraint_1,
&ASN_PER_MEMB_STATUS_CONSTR_3,
0,
"status"
},
{ ATF_NOFLAGS, 0, offsetof(struct DGPSCorrections, satList),
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_SeqOfSatElement,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"satList"
},
{ ATF_NOFLAGS, 0, offsetof(struct DGPSCorrections, gpsTOW),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_gpsTOW_constraint_1,
&ASN_PER_MEMB_GPS_TOW_CONSTR_2,
0,
"gpsTOW"
},
{ ATF_NOFLAGS, 0, offsetof(struct DGPSCorrections, status),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_status_constraint_1,
&ASN_PER_MEMB_STATUS_CONSTR_3,
0,
"status"
},
{ ATF_NOFLAGS, 0, offsetof(struct DGPSCorrections, satList),
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_SeqOfSatElement,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"satList"
},
};
static ber_tlv_tag_t asn_DEF_DGPSCorrections_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static asn_TYPE_tag2member_t asn_MAP_DGPSCorrections_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gpsTOW at 655 */
@ -104,36 +104,36 @@ static asn_TYPE_tag2member_t asn_MAP_DGPSCorrections_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* satList at 659 */
};
static asn_SEQUENCE_specifics_t asn_SPC_DGPSCorrections_specs_1 = {
sizeof(struct DGPSCorrections),
offsetof(struct DGPSCorrections, _asn_ctx),
asn_MAP_DGPSCorrections_tag2el_1,
3, /* Count of tags in the map */
0, 0, 0, /* Optional elements (not needed) */
-1, /* Start extensions */
-1 /* Stop extensions */
sizeof(struct DGPSCorrections),
offsetof(struct DGPSCorrections, _asn_ctx),
asn_MAP_DGPSCorrections_tag2el_1,
3, /* Count of tags in the map */
0, 0, 0, /* Optional elements (not needed) */
-1, /* Start extensions */
-1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_DGPSCorrections = {
"DGPSCorrections",
"DGPSCorrections",
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_DGPSCorrections_tags_1,
sizeof(asn_DEF_DGPSCorrections_tags_1)
/sizeof(asn_DEF_DGPSCorrections_tags_1[0]), /* 1 */
asn_DEF_DGPSCorrections_tags_1, /* Same as above */
sizeof(asn_DEF_DGPSCorrections_tags_1)
/sizeof(asn_DEF_DGPSCorrections_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
asn_MBR_DGPSCorrections_1,
3, /* Elements count */
&asn_SPC_DGPSCorrections_specs_1 /* Additional specs */
"DGPSCorrections",
"DGPSCorrections",
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_DGPSCorrections_tags_1,
sizeof(asn_DEF_DGPSCorrections_tags_1)
/sizeof(asn_DEF_DGPSCorrections_tags_1[0]), /* 1 */
asn_DEF_DGPSCorrections_tags_1, /* Same as above */
sizeof(asn_DEF_DGPSCorrections_tags_1)
/sizeof(asn_DEF_DGPSCorrections_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
asn_MBR_DGPSCorrections_1,
3, /* Elements count */
&asn_SPC_DGPSCorrections_specs_1 /* Additional specs */
};

View File

@ -1,7 +1,7 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#ifndef _DGPSCorrections_H_

View File

@ -6,66 +6,66 @@
#include <asn_internal.h>
#include <ENUMERATED.h>
#include <NativeEnumerated.h>
#include <asn_codecs_prim.h> /* Encoder and decoder of a primitive type */
#include <asn_codecs_prim.h> /* Encoder and decoder of a primitive type */
/*
* ENUMERATED basic type description.
*/
static ber_tlv_tag_t asn_DEF_ENUMERATED_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
};
asn_TYPE_descriptor_t asn_DEF_ENUMERATED = {
"ENUMERATED",
"ENUMERATED",
ASN__PRIMITIVE_TYPE_free,
INTEGER_print, /* Implemented in terms of INTEGER */
asn_generic_no_constraint,
ber_decode_primitive,
INTEGER_encode_der, /* Implemented in terms of INTEGER */
INTEGER_decode_xer, /* This is temporary! */
INTEGER_encode_xer,
ENUMERATED_decode_uper, /* Unaligned PER decoder */
ENUMERATED_encode_uper, /* Unaligned PER encoder */
0, /* Use generic outmost tag fetcher */
asn_DEF_ENUMERATED_tags,
sizeof(asn_DEF_ENUMERATED_tags) / sizeof(asn_DEF_ENUMERATED_tags[0]),
asn_DEF_ENUMERATED_tags, /* Same as above */
sizeof(asn_DEF_ENUMERATED_tags) / sizeof(asn_DEF_ENUMERATED_tags[0]),
0, /* No PER visible constraints */
0, 0, /* No members */
0 /* No specifics */
"ENUMERATED",
"ENUMERATED",
ASN__PRIMITIVE_TYPE_free,
INTEGER_print, /* Implemented in terms of INTEGER */
asn_generic_no_constraint,
ber_decode_primitive,
INTEGER_encode_der, /* Implemented in terms of INTEGER */
INTEGER_decode_xer, /* This is temporary! */
INTEGER_encode_xer,
ENUMERATED_decode_uper, /* Unaligned PER decoder */
ENUMERATED_encode_uper, /* Unaligned PER encoder */
0, /* Use generic outmost tag fetcher */
asn_DEF_ENUMERATED_tags,
sizeof(asn_DEF_ENUMERATED_tags) / sizeof(asn_DEF_ENUMERATED_tags[0]),
asn_DEF_ENUMERATED_tags, /* Same as above */
sizeof(asn_DEF_ENUMERATED_tags) / sizeof(asn_DEF_ENUMERATED_tags[0]),
0, /* No PER visible constraints */
0, 0, /* No members */
0 /* No specifics */
};
asn_dec_rval_t
ENUMERATED_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
asn_per_constraints_t *constraints, void **sptr, asn_per_data_t *pd) {
asn_dec_rval_t rval;
ENUMERATED_t *st = (ENUMERATED_t *)*sptr;
long value;
void *vptr = &value;
asn_per_constraints_t *constraints, void **sptr, asn_per_data_t *pd) {
asn_dec_rval_t rval;
ENUMERATED_t *st = (ENUMERATED_t *)*sptr;
long value;
void *vptr = &value;
if(!st) {
st = (ENUMERATED_t *)(*sptr = CALLOC(1, sizeof(*st)));
if(!st) _ASN_DECODE_FAILED;
}
if(!st) {
st = (ENUMERATED_t *)(*sptr = CALLOC(1, sizeof(*st)));
if(!st) _ASN_DECODE_FAILED;
}
rval = NativeEnumerated_decode_uper(opt_codec_ctx, td, constraints,
(void **)&vptr, pd);
if(rval.code == RC_OK)
if(asn_long2INTEGER(st, value))
rval.code = RC_FAIL;
return rval;
rval = NativeEnumerated_decode_uper(opt_codec_ctx, td, constraints,
&vptr, pd);
if(rval.code == RC_OK)
if(asn_long2INTEGER(st, value))
rval.code = RC_FAIL;
return rval;
}
asn_enc_rval_t
ENUMERATED_encode_uper(asn_TYPE_descriptor_t *td,
asn_per_constraints_t *constraints, void *sptr, asn_per_outp_t *po) {
ENUMERATED_t *st = (ENUMERATED_t *)sptr;
int64_t value;
asn_per_constraints_t *constraints, void *sptr, asn_per_outp_t *po) {
ENUMERATED_t *st = (ENUMERATED_t *)sptr;
int64_t value;
if(asn_INTEGER2long(st, &value))
_ASN_ENCODE_FAILED;
if(asn_INTEGER2long(st, &value))
_ASN_ENCODE_FAILED;
return NativeEnumerated_encode_uper(td, constraints, &value, po);
return NativeEnumerated_encode_uper(td, constraints, &value, po);
}

View File

@ -1,129 +1,129 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#include "EOTDQuality.h"
static int
memb_nbrOfMeasurements_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= 0 && value <= 7)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= 0 && value <= 7)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
static int
memb_stdOfEOTD_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= 0 && value <= 31)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= 0 && value <= 31)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
static asn_per_constraints_t ASN_PER_MEMB_NBR_OF_MEASUREMENTS_CONSTR_2 = {
{ APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ 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_MEMB_STD_OF_EOTD_CONSTR_3 = {
{ APC_CONSTRAINED, 5, 5, 0, 31 } /* (0..31) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 5, 5, 0, 31 } /* (0..31) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_EOTDQuality_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct EOTDQuality, nbrOfMeasurements),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_nbrOfMeasurements_constraint_1,
&ASN_PER_MEMB_NBR_OF_MEASUREMENTS_CONSTR_2,
0,
"nbrOfMeasurements"
},
{ ATF_NOFLAGS, 0, offsetof(struct EOTDQuality, stdOfEOTD),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_stdOfEOTD_constraint_1,
&ASN_PER_MEMB_STD_OF_EOTD_CONSTR_3,
0,
"stdOfEOTD"
},
{ ATF_NOFLAGS, 0, offsetof(struct EOTDQuality, nbrOfMeasurements),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_nbrOfMeasurements_constraint_1,
&ASN_PER_MEMB_NBR_OF_MEASUREMENTS_CONSTR_2,
0,
"nbrOfMeasurements"
},
{ ATF_NOFLAGS, 0, offsetof(struct EOTDQuality, stdOfEOTD),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_stdOfEOTD_constraint_1,
&ASN_PER_MEMB_STD_OF_EOTD_CONSTR_3,
0,
"stdOfEOTD"
},
};
static ber_tlv_tag_t asn_DEF_EOTDQuality_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static asn_TYPE_tag2member_t asn_MAP_EOTDQuality_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nbrOfMeasurements at 393 */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* stdOfEOTD at 394 */
};
static asn_SEQUENCE_specifics_t asn_SPC_EOTDQuality_specs_1 = {
sizeof(struct EOTDQuality),
offsetof(struct EOTDQuality, _asn_ctx),
asn_MAP_EOTDQuality_tag2el_1,
2, /* Count of tags in the map */
0, 0, 0, /* Optional elements (not needed) */
-1, /* Start extensions */
-1 /* Stop extensions */
sizeof(struct EOTDQuality),
offsetof(struct EOTDQuality, _asn_ctx),
asn_MAP_EOTDQuality_tag2el_1,
2, /* Count of tags in the map */
0, 0, 0, /* Optional elements (not needed) */
-1, /* Start extensions */
-1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_EOTDQuality = {
"EOTDQuality",
"EOTDQuality",
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_EOTDQuality_tags_1,
sizeof(asn_DEF_EOTDQuality_tags_1)
/sizeof(asn_DEF_EOTDQuality_tags_1[0]), /* 1 */
asn_DEF_EOTDQuality_tags_1, /* Same as above */
sizeof(asn_DEF_EOTDQuality_tags_1)
/sizeof(asn_DEF_EOTDQuality_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
asn_MBR_EOTDQuality_1,
2, /* Elements count */
&asn_SPC_EOTDQuality_specs_1 /* Additional specs */
"EOTDQuality",
"EOTDQuality",
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_EOTDQuality_tags_1,
sizeof(asn_DEF_EOTDQuality_tags_1)
/sizeof(asn_DEF_EOTDQuality_tags_1[0]), /* 1 */
asn_DEF_EOTDQuality_tags_1, /* Same as above */
sizeof(asn_DEF_EOTDQuality_tags_1)
/sizeof(asn_DEF_EOTDQuality_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
asn_MBR_EOTDQuality_1,
2, /* Elements count */
&asn_SPC_EOTDQuality_specs_1 /* Additional specs */
};

View File

@ -1,7 +1,7 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#ifndef _EOTDQuality_H_

View File

@ -1,17 +1,17 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#include "EnvironmentCharacter.h"
int
EnvironmentCharacter_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_ENUMERATED.check_constraints;
return td->check_constraints(td, sptr, ctfailcb, app_key);
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
/* Replace with underlying type checker */
td->check_constraints = asn_DEF_ENUMERATED.check_constraints;
return td->check_constraints(td, sptr, ctfailcb, app_key);
}
/*
@ -20,130 +20,130 @@ EnvironmentCharacter_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
*/
static void
EnvironmentCharacter_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_ENUMERATED.free_struct;
td->print_struct = asn_DEF_ENUMERATED.print_struct;
td->ber_decoder = asn_DEF_ENUMERATED.ber_decoder;
td->der_encoder = asn_DEF_ENUMERATED.der_encoder;
td->xer_decoder = asn_DEF_ENUMERATED.xer_decoder;
td->xer_encoder = asn_DEF_ENUMERATED.xer_encoder;
td->uper_decoder = asn_DEF_ENUMERATED.uper_decoder;
td->uper_encoder = asn_DEF_ENUMERATED.uper_encoder;
if(!td->per_constraints)
td->per_constraints = asn_DEF_ENUMERATED.per_constraints;
td->elements = asn_DEF_ENUMERATED.elements;
td->elements_count = asn_DEF_ENUMERATED.elements_count;
/* td->specifics = asn_DEF_ENUMERATED.specifics; // Defined explicitly */
td->free_struct = asn_DEF_ENUMERATED.free_struct;
td->print_struct = asn_DEF_ENUMERATED.print_struct;
td->ber_decoder = asn_DEF_ENUMERATED.ber_decoder;
td->der_encoder = asn_DEF_ENUMERATED.der_encoder;
td->xer_decoder = asn_DEF_ENUMERATED.xer_decoder;
td->xer_encoder = asn_DEF_ENUMERATED.xer_encoder;
td->uper_decoder = asn_DEF_ENUMERATED.uper_decoder;
td->uper_encoder = asn_DEF_ENUMERATED.uper_encoder;
if(!td->per_constraints)
td->per_constraints = asn_DEF_ENUMERATED.per_constraints;
td->elements = asn_DEF_ENUMERATED.elements;
td->elements_count = asn_DEF_ENUMERATED.elements_count;
/* td->specifics = asn_DEF_ENUMERATED.specifics; // Defined explicitly */
}
void
EnvironmentCharacter_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
EnvironmentCharacter_1_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
void *struct_ptr, int contents_only) {
EnvironmentCharacter_1_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
}
int
EnvironmentCharacter_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
EnvironmentCharacter_1_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
EnvironmentCharacter_1_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
asn_dec_rval_t
EnvironmentCharacter_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) {
EnvironmentCharacter_1_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
void **structure, const void *bufptr, size_t size, int tag_mode) {
EnvironmentCharacter_1_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
asn_enc_rval_t
EnvironmentCharacter_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) {
EnvironmentCharacter_1_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
EnvironmentCharacter_1_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
asn_dec_rval_t
EnvironmentCharacter_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) {
EnvironmentCharacter_1_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
void **structure, const char *opt_mname, const void *bufptr, size_t size) {
EnvironmentCharacter_1_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
asn_enc_rval_t
EnvironmentCharacter_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) {
EnvironmentCharacter_1_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
EnvironmentCharacter_1_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
asn_dec_rval_t
EnvironmentCharacter_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) {
EnvironmentCharacter_1_inherit_TYPE_descriptor(td);
return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
EnvironmentCharacter_1_inherit_TYPE_descriptor(td);
return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
}
asn_enc_rval_t
EnvironmentCharacter_encode_uper(asn_TYPE_descriptor_t *td,
asn_per_constraints_t *constraints,
void *structure, asn_per_outp_t *per_out) {
EnvironmentCharacter_1_inherit_TYPE_descriptor(td);
return td->uper_encoder(td, constraints, structure, per_out);
asn_per_constraints_t *constraints,
void *structure, asn_per_outp_t *per_out) {
EnvironmentCharacter_1_inherit_TYPE_descriptor(td);
return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_ENVIRONMENT_CHARACTER_CONSTR_1 = {
{ APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static asn_INTEGER_enum_map_t asn_MAP_EnvironmentCharacter_value2enum_1[] = {
{ 0, 7, "badArea" },
{ 1, 10, "notBadArea" },
{ 2, 9, "mixedArea" }
/* This list is extensible */
{ 0, 7, "badArea" },
{ 1, 10, "notBadArea" },
{ 2, 9, "mixedArea" }
/* This list is extensible */
};
static unsigned int asn_MAP_EnvironmentCharacter_enum2value_1[] = {
0, /* badArea(0) */
2, /* mixedArea(2) */
1 /* notBadArea(1) */
/* This list is extensible */
0, /* badArea(0) */
2, /* mixedArea(2) */
1 /* notBadArea(1) */
/* This list is extensible */
};
static asn_INTEGER_specifics_t asn_SPC_EnvironmentCharacter_specs_1 = {
asn_MAP_EnvironmentCharacter_value2enum_1, /* "tag" => N; sorted by tag */
asn_MAP_EnvironmentCharacter_enum2value_1, /* N => "tag"; sorted by N */
3, /* Number of elements in the maps */
4, /* Extensions before this member */
1, /* Strict enumeration */
0, /* Native long size */
0
asn_MAP_EnvironmentCharacter_value2enum_1, /* "tag" => N; sorted by tag */
asn_MAP_EnvironmentCharacter_enum2value_1, /* N => "tag"; sorted by N */
3, /* Number of elements in the maps */
4, /* Extensions before this member */
1, /* Strict enumeration */
0, /* Native long size */
0
};
static ber_tlv_tag_t asn_DEF_EnvironmentCharacter_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
};
asn_TYPE_descriptor_t asn_DEF_EnvironmentCharacter = {
"EnvironmentCharacter",
"EnvironmentCharacter",
EnvironmentCharacter_free,
EnvironmentCharacter_print,
EnvironmentCharacter_constraint,
EnvironmentCharacter_decode_ber,
EnvironmentCharacter_encode_der,
EnvironmentCharacter_decode_xer,
EnvironmentCharacter_encode_xer,
EnvironmentCharacter_decode_uper,
EnvironmentCharacter_encode_uper,
0, /* Use generic outmost tag fetcher */
asn_DEF_EnvironmentCharacter_tags_1,
sizeof(asn_DEF_EnvironmentCharacter_tags_1)
/sizeof(asn_DEF_EnvironmentCharacter_tags_1[0]), /* 1 */
asn_DEF_EnvironmentCharacter_tags_1, /* Same as above */
sizeof(asn_DEF_EnvironmentCharacter_tags_1)
/sizeof(asn_DEF_EnvironmentCharacter_tags_1[0]), /* 1 */
&ASN_PER_TYPE_ENVIRONMENT_CHARACTER_CONSTR_1,
0, 0, /* Defined elsewhere */
&asn_SPC_EnvironmentCharacter_specs_1 /* Additional specs */
"EnvironmentCharacter",
"EnvironmentCharacter",
EnvironmentCharacter_free,
EnvironmentCharacter_print,
EnvironmentCharacter_constraint,
EnvironmentCharacter_decode_ber,
EnvironmentCharacter_encode_der,
EnvironmentCharacter_decode_xer,
EnvironmentCharacter_encode_xer,
EnvironmentCharacter_decode_uper,
EnvironmentCharacter_encode_uper,
0, /* Use generic outmost tag fetcher */
asn_DEF_EnvironmentCharacter_tags_1,
sizeof(asn_DEF_EnvironmentCharacter_tags_1)
/sizeof(asn_DEF_EnvironmentCharacter_tags_1[0]), /* 1 */
asn_DEF_EnvironmentCharacter_tags_1, /* Same as above */
sizeof(asn_DEF_EnvironmentCharacter_tags_1)
/sizeof(asn_DEF_EnvironmentCharacter_tags_1[0]), /* 1 */
&ASN_PER_TYPE_ENVIRONMENT_CHARACTER_CONSTR_1,
0, 0, /* Defined elsewhere */
&asn_SPC_EnvironmentCharacter_specs_1 /* Additional specs */
};

View File

@ -1,7 +1,7 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#ifndef _EnvironmentCharacter_H_
@ -25,8 +25,8 @@ extern "C"
EnvironmentCharacter_notBadArea = 1,
EnvironmentCharacter_mixedArea = 2
/*
* Enumeration is extensible
*/
* Enumeration is extensible
*/
} e_EnvironmentCharacter;
/* EnvironmentCharacter */

View File

@ -1,171 +1,171 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#include "EphemerisSubframe1Reserved.h"
static int
memb_reserved1_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= 0 && value <= 8388607)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= 0 && value <= 8388607)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
static int
memb_reserved2_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= 0 && value <= 16777215)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= 0 && value <= 16777215)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
static int
memb_reserved3_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= 0 && value <= 16777215)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= 0 && value <= 16777215)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
static int
memb_reserved4_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= 0 && value <= 65535)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= 0 && value <= 65535)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
static asn_per_constraints_t ASN_PER_MEMB_RESERVED1_CONSTR_2 = {
{ APC_CONSTRAINED, 23, -1, 0, 8388607 } /* (0..8388607) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 23, -1, 0, 8388607 } /* (0..8388607) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_RESERVED2_CONSTR_3 = {
{ APC_CONSTRAINED, 24, -1, 0, 16777215 } /* (0..16777215) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 24, -1, 0, 16777215 } /* (0..16777215) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_RESERVED3_CONSTR_4 = {
{ APC_CONSTRAINED, 24, -1, 0, 16777215 } /* (0..16777215) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 24, -1, 0, 16777215 } /* (0..16777215) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_RESERVED4_CONSTR_5 = {
{ APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_EphemerisSubframe1Reserved_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct EphemerisSubframe1Reserved, reserved1),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_reserved1_constraint_1,
&ASN_PER_MEMB_RESERVED1_CONSTR_2,
0,
"reserved1"
},
{ ATF_NOFLAGS, 0, offsetof(struct EphemerisSubframe1Reserved, reserved2),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_reserved2_constraint_1,
&ASN_PER_MEMB_RESERVED2_CONSTR_3,
0,
"reserved2"
},
{ ATF_NOFLAGS, 0, offsetof(struct EphemerisSubframe1Reserved, reserved3),
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_reserved3_constraint_1,
&ASN_PER_MEMB_RESERVED3_CONSTR_4,
0,
"reserved3"
},
{ ATF_NOFLAGS, 0, offsetof(struct EphemerisSubframe1Reserved, reserved4),
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_reserved4_constraint_1,
&ASN_PER_MEMB_RESERVED4_CONSTR_5,
0,
"reserved4"
},
{ ATF_NOFLAGS, 0, offsetof(struct EphemerisSubframe1Reserved, reserved1),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_reserved1_constraint_1,
&ASN_PER_MEMB_RESERVED1_CONSTR_2,
0,
"reserved1"
},
{ ATF_NOFLAGS, 0, offsetof(struct EphemerisSubframe1Reserved, reserved2),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_reserved2_constraint_1,
&ASN_PER_MEMB_RESERVED2_CONSTR_3,
0,
"reserved2"
},
{ ATF_NOFLAGS, 0, offsetof(struct EphemerisSubframe1Reserved, reserved3),
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_reserved3_constraint_1,
&ASN_PER_MEMB_RESERVED3_CONSTR_4,
0,
"reserved3"
},
{ ATF_NOFLAGS, 0, offsetof(struct EphemerisSubframe1Reserved, reserved4),
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_reserved4_constraint_1,
&ASN_PER_MEMB_RESERVED4_CONSTR_5,
0,
"reserved4"
},
};
static ber_tlv_tag_t asn_DEF_EphemerisSubframe1Reserved_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static asn_TYPE_tag2member_t asn_MAP_EphemerisSubframe1Reserved_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* reserved1 at 755 */
@ -174,36 +174,36 @@ static asn_TYPE_tag2member_t asn_MAP_EphemerisSubframe1Reserved_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* reserved4 at 758 */
};
static asn_SEQUENCE_specifics_t asn_SPC_EphemerisSubframe1Reserved_specs_1 = {
sizeof(struct EphemerisSubframe1Reserved),
offsetof(struct EphemerisSubframe1Reserved, _asn_ctx),
asn_MAP_EphemerisSubframe1Reserved_tag2el_1,
4, /* Count of tags in the map */
0, 0, 0, /* Optional elements (not needed) */
-1, /* Start extensions */
-1 /* Stop extensions */
sizeof(struct EphemerisSubframe1Reserved),
offsetof(struct EphemerisSubframe1Reserved, _asn_ctx),
asn_MAP_EphemerisSubframe1Reserved_tag2el_1,
4, /* Count of tags in the map */
0, 0, 0, /* Optional elements (not needed) */
-1, /* Start extensions */
-1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_EphemerisSubframe1Reserved = {
"EphemerisSubframe1Reserved",
"EphemerisSubframe1Reserved",
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_EphemerisSubframe1Reserved_tags_1,
sizeof(asn_DEF_EphemerisSubframe1Reserved_tags_1)
/sizeof(asn_DEF_EphemerisSubframe1Reserved_tags_1[0]), /* 1 */
asn_DEF_EphemerisSubframe1Reserved_tags_1, /* Same as above */
sizeof(asn_DEF_EphemerisSubframe1Reserved_tags_1)
/sizeof(asn_DEF_EphemerisSubframe1Reserved_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
asn_MBR_EphemerisSubframe1Reserved_1,
4, /* Elements count */
&asn_SPC_EphemerisSubframe1Reserved_specs_1 /* Additional specs */
"EphemerisSubframe1Reserved",
"EphemerisSubframe1Reserved",
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_EphemerisSubframe1Reserved_tags_1,
sizeof(asn_DEF_EphemerisSubframe1Reserved_tags_1)
/sizeof(asn_DEF_EphemerisSubframe1Reserved_tags_1[0]), /* 1 */
asn_DEF_EphemerisSubframe1Reserved_tags_1, /* Same as above */
sizeof(asn_DEF_EphemerisSubframe1Reserved_tags_1)
/sizeof(asn_DEF_EphemerisSubframe1Reserved_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
asn_MBR_EphemerisSubframe1Reserved_1,
4, /* Elements count */
&asn_SPC_EphemerisSubframe1Reserved_specs_1 /* Additional specs */
};

View File

@ -1,7 +1,7 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#ifndef _EphemerisSubframe1Reserved_H_

View File

@ -1,17 +1,17 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#include "ErrorCodes.h"
int
ErrorCodes_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_ENUMERATED.check_constraints;
return td->check_constraints(td, sptr, ctfailcb, app_key);
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
/* Replace with underlying type checker */
td->check_constraints = asn_DEF_ENUMERATED.check_constraints;
return td->check_constraints(td, sptr, ctfailcb, app_key);
}
/*
@ -20,136 +20,136 @@ ErrorCodes_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
*/
static void
ErrorCodes_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_ENUMERATED.free_struct;
td->print_struct = asn_DEF_ENUMERATED.print_struct;
td->ber_decoder = asn_DEF_ENUMERATED.ber_decoder;
td->der_encoder = asn_DEF_ENUMERATED.der_encoder;
td->xer_decoder = asn_DEF_ENUMERATED.xer_decoder;
td->xer_encoder = asn_DEF_ENUMERATED.xer_encoder;
td->uper_decoder = asn_DEF_ENUMERATED.uper_decoder;
td->uper_encoder = asn_DEF_ENUMERATED.uper_encoder;
if(!td->per_constraints)
td->per_constraints = asn_DEF_ENUMERATED.per_constraints;
td->elements = asn_DEF_ENUMERATED.elements;
td->elements_count = asn_DEF_ENUMERATED.elements_count;
/* td->specifics = asn_DEF_ENUMERATED.specifics; // Defined explicitly */
td->free_struct = asn_DEF_ENUMERATED.free_struct;
td->print_struct = asn_DEF_ENUMERATED.print_struct;
td->ber_decoder = asn_DEF_ENUMERATED.ber_decoder;
td->der_encoder = asn_DEF_ENUMERATED.der_encoder;
td->xer_decoder = asn_DEF_ENUMERATED.xer_decoder;
td->xer_encoder = asn_DEF_ENUMERATED.xer_encoder;
td->uper_decoder = asn_DEF_ENUMERATED.uper_decoder;
td->uper_encoder = asn_DEF_ENUMERATED.uper_encoder;
if(!td->per_constraints)
td->per_constraints = asn_DEF_ENUMERATED.per_constraints;
td->elements = asn_DEF_ENUMERATED.elements;
td->elements_count = asn_DEF_ENUMERATED.elements_count;
/* td->specifics = asn_DEF_ENUMERATED.specifics; // Defined explicitly */
}
void
ErrorCodes_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
ErrorCodes_1_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
void *struct_ptr, int contents_only) {
ErrorCodes_1_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
}
int
ErrorCodes_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
ErrorCodes_1_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
ErrorCodes_1_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
asn_dec_rval_t
ErrorCodes_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) {
ErrorCodes_1_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
void **structure, const void *bufptr, size_t size, int tag_mode) {
ErrorCodes_1_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
asn_enc_rval_t
ErrorCodes_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) {
ErrorCodes_1_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
ErrorCodes_1_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
asn_dec_rval_t
ErrorCodes_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) {
ErrorCodes_1_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
void **structure, const char *opt_mname, const void *bufptr, size_t size) {
ErrorCodes_1_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
asn_enc_rval_t
ErrorCodes_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) {
ErrorCodes_1_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
ErrorCodes_1_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
asn_dec_rval_t
ErrorCodes_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) {
ErrorCodes_1_inherit_TYPE_descriptor(td);
return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
ErrorCodes_1_inherit_TYPE_descriptor(td);
return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
}
asn_enc_rval_t
ErrorCodes_encode_uper(asn_TYPE_descriptor_t *td,
asn_per_constraints_t *constraints,
void *structure, asn_per_outp_t *per_out) {
ErrorCodes_1_inherit_TYPE_descriptor(td);
return td->uper_encoder(td, constraints, structure, per_out);
asn_per_constraints_t *constraints,
void *structure, asn_per_outp_t *per_out) {
ErrorCodes_1_inherit_TYPE_descriptor(td);
return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_ERROR_CODES_CONSTR_1 = {
{ APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 5 } /* (0..5,...) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 5 } /* (0..5,...) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static asn_INTEGER_enum_map_t asn_MAP_ErrorCodes_value2enum_1[] = {
{ 0, 9, "unDefined" },
{ 1, 15, "missingComponet" },
{ 2, 13, "incorrectData" },
{ 3, 27, "missingIEorComponentElement" },
{ 4, 15, "messageTooShort" },
{ 5, 21, "unknowReferenceNumber" }
/* This list is extensible */
{ 0, 9, "unDefined" },
{ 1, 15, "missingComponet" },
{ 2, 13, "incorrectData" },
{ 3, 27, "missingIEorComponentElement" },
{ 4, 15, "messageTooShort" },
{ 5, 21, "unknowReferenceNumber" }
/* This list is extensible */
};
static unsigned int asn_MAP_ErrorCodes_enum2value_1[] = {
2, /* incorrectData(2) */
4, /* messageTooShort(4) */
1, /* missingComponet(1) */
3, /* missingIEorComponentElement(3) */
0, /* unDefined(0) */
5 /* unknowReferenceNumber(5) */
/* This list is extensible */
2, /* incorrectData(2) */
4, /* messageTooShort(4) */
1, /* missingComponet(1) */
3, /* missingIEorComponentElement(3) */
0, /* unDefined(0) */
5 /* unknowReferenceNumber(5) */
/* This list is extensible */
};
static asn_INTEGER_specifics_t asn_SPC_ErrorCodes_specs_1 = {
asn_MAP_ErrorCodes_value2enum_1, /* "tag" => N; sorted by tag */
asn_MAP_ErrorCodes_enum2value_1, /* N => "tag"; sorted by N */
6, /* Number of elements in the maps */
7, /* Extensions before this member */
1, /* Strict enumeration */
0, /* Native long size */
0
asn_MAP_ErrorCodes_value2enum_1, /* "tag" => N; sorted by tag */
asn_MAP_ErrorCodes_enum2value_1, /* N => "tag"; sorted by N */
6, /* Number of elements in the maps */
7, /* Extensions before this member */
1, /* Strict enumeration */
0, /* Native long size */
0
};
static ber_tlv_tag_t asn_DEF_ErrorCodes_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
};
asn_TYPE_descriptor_t asn_DEF_ErrorCodes = {
"ErrorCodes",
"ErrorCodes",
ErrorCodes_free,
ErrorCodes_print,
ErrorCodes_constraint,
ErrorCodes_decode_ber,
ErrorCodes_encode_der,
ErrorCodes_decode_xer,
ErrorCodes_encode_xer,
ErrorCodes_decode_uper,
ErrorCodes_encode_uper,
0, /* Use generic outmost tag fetcher */
asn_DEF_ErrorCodes_tags_1,
sizeof(asn_DEF_ErrorCodes_tags_1)
/sizeof(asn_DEF_ErrorCodes_tags_1[0]), /* 1 */
asn_DEF_ErrorCodes_tags_1, /* Same as above */
sizeof(asn_DEF_ErrorCodes_tags_1)
/sizeof(asn_DEF_ErrorCodes_tags_1[0]), /* 1 */
&ASN_PER_TYPE_ERROR_CODES_CONSTR_1,
0, 0, /* Defined elsewhere */
&asn_SPC_ErrorCodes_specs_1 /* Additional specs */
"ErrorCodes",
"ErrorCodes",
ErrorCodes_free,
ErrorCodes_print,
ErrorCodes_constraint,
ErrorCodes_decode_ber,
ErrorCodes_encode_der,
ErrorCodes_decode_xer,
ErrorCodes_encode_xer,
ErrorCodes_decode_uper,
ErrorCodes_encode_uper,
0, /* Use generic outmost tag fetcher */
asn_DEF_ErrorCodes_tags_1,
sizeof(asn_DEF_ErrorCodes_tags_1)
/sizeof(asn_DEF_ErrorCodes_tags_1[0]), /* 1 */
asn_DEF_ErrorCodes_tags_1, /* Same as above */
sizeof(asn_DEF_ErrorCodes_tags_1)
/sizeof(asn_DEF_ErrorCodes_tags_1[0]), /* 1 */
&ASN_PER_TYPE_ERROR_CODES_CONSTR_1,
0, 0, /* Defined elsewhere */
&asn_SPC_ErrorCodes_specs_1 /* Additional specs */
};

View File

@ -1,7 +1,7 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#ifndef _ErrorCodes_H_
@ -28,8 +28,8 @@ extern "C"
ErrorCodes_messageTooShort = 4,
ErrorCodes_unknowReferenceNumber = 5
/*
* Enumeration is extensible
*/
* Enumeration is extensible
*/
} e_ErrorCodes;
/* ErrorCodes */

View File

@ -1,34 +1,34 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#include "ExpOTDUncertainty.h"
int
ExpOTDUncertainty_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= 0 && value <= 7)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= 0 && value <= 7)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
/*
@ -37,109 +37,109 @@ ExpOTDUncertainty_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
*/
static void
ExpOTDUncertainty_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_NativeInteger.free_struct;
td->print_struct = asn_DEF_NativeInteger.print_struct;
td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
td->der_encoder = asn_DEF_NativeInteger.der_encoder;
td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
if(!td->per_constraints)
td->per_constraints = asn_DEF_NativeInteger.per_constraints;
td->elements = asn_DEF_NativeInteger.elements;
td->elements_count = asn_DEF_NativeInteger.elements_count;
td->specifics = asn_DEF_NativeInteger.specifics;
td->free_struct = asn_DEF_NativeInteger.free_struct;
td->print_struct = asn_DEF_NativeInteger.print_struct;
td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
td->der_encoder = asn_DEF_NativeInteger.der_encoder;
td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
if(!td->per_constraints)
td->per_constraints = asn_DEF_NativeInteger.per_constraints;
td->elements = asn_DEF_NativeInteger.elements;
td->elements_count = asn_DEF_NativeInteger.elements_count;
td->specifics = asn_DEF_NativeInteger.specifics;
}
void
ExpOTDUncertainty_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
ExpOTDUncertainty_1_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
void *struct_ptr, int contents_only) {
ExpOTDUncertainty_1_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
}
int
ExpOTDUncertainty_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
ExpOTDUncertainty_1_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
ExpOTDUncertainty_1_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
asn_dec_rval_t
ExpOTDUncertainty_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) {
ExpOTDUncertainty_1_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
void **structure, const void *bufptr, size_t size, int tag_mode) {
ExpOTDUncertainty_1_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
asn_enc_rval_t
ExpOTDUncertainty_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) {
ExpOTDUncertainty_1_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
ExpOTDUncertainty_1_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
asn_dec_rval_t
ExpOTDUncertainty_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) {
ExpOTDUncertainty_1_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
void **structure, const char *opt_mname, const void *bufptr, size_t size) {
ExpOTDUncertainty_1_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
asn_enc_rval_t
ExpOTDUncertainty_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) {
ExpOTDUncertainty_1_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
ExpOTDUncertainty_1_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
asn_dec_rval_t
ExpOTDUncertainty_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) {
ExpOTDUncertainty_1_inherit_TYPE_descriptor(td);
return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
ExpOTDUncertainty_1_inherit_TYPE_descriptor(td);
return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
}
asn_enc_rval_t
ExpOTDUncertainty_encode_uper(asn_TYPE_descriptor_t *td,
asn_per_constraints_t *constraints,
void *structure, asn_per_outp_t *per_out) {
ExpOTDUncertainty_1_inherit_TYPE_descriptor(td);
return td->uper_encoder(td, constraints, structure, per_out);
asn_per_constraints_t *constraints,
void *structure, asn_per_outp_t *per_out) {
ExpOTDUncertainty_1_inherit_TYPE_descriptor(td);
return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_EXP_OTD_UNCERTAINTY_CONSTR_1 = {
{ APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_ExpOTDUncertainty_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_ExpOTDUncertainty = {
"ExpOTDUncertainty",
"ExpOTDUncertainty",
ExpOTDUncertainty_free,
ExpOTDUncertainty_print,
ExpOTDUncertainty_constraint,
ExpOTDUncertainty_decode_ber,
ExpOTDUncertainty_encode_der,
ExpOTDUncertainty_decode_xer,
ExpOTDUncertainty_encode_xer,
ExpOTDUncertainty_decode_uper,
ExpOTDUncertainty_encode_uper,
0, /* Use generic outmost tag fetcher */
asn_DEF_ExpOTDUncertainty_tags_1,
sizeof(asn_DEF_ExpOTDUncertainty_tags_1)
/sizeof(asn_DEF_ExpOTDUncertainty_tags_1[0]), /* 1 */
asn_DEF_ExpOTDUncertainty_tags_1, /* Same as above */
sizeof(asn_DEF_ExpOTDUncertainty_tags_1)
/sizeof(asn_DEF_ExpOTDUncertainty_tags_1[0]), /* 1 */
&ASN_PER_TYPE_EXP_OTD_UNCERTAINTY_CONSTR_1,
0, 0, /* No members */
0 /* No specifics */
"ExpOTDUncertainty",
"ExpOTDUncertainty",
ExpOTDUncertainty_free,
ExpOTDUncertainty_print,
ExpOTDUncertainty_constraint,
ExpOTDUncertainty_decode_ber,
ExpOTDUncertainty_encode_der,
ExpOTDUncertainty_decode_xer,
ExpOTDUncertainty_encode_xer,
ExpOTDUncertainty_decode_uper,
ExpOTDUncertainty_encode_uper,
0, /* Use generic outmost tag fetcher */
asn_DEF_ExpOTDUncertainty_tags_1,
sizeof(asn_DEF_ExpOTDUncertainty_tags_1)
/sizeof(asn_DEF_ExpOTDUncertainty_tags_1[0]), /* 1 */
asn_DEF_ExpOTDUncertainty_tags_1, /* Same as above */
sizeof(asn_DEF_ExpOTDUncertainty_tags_1)
/sizeof(asn_DEF_ExpOTDUncertainty_tags_1[0]), /* 1 */
&ASN_PER_TYPE_EXP_OTD_UNCERTAINTY_CONSTR_1,
0, 0, /* No members */
0 /* No specifics */
};

View File

@ -1,7 +1,7 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#ifndef _ExpOTDUncertainty_H_

View File

@ -1,34 +1,34 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#include "ExpectedOTD.h"
int
ExpectedOTD_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= 0 && value <= 1250)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= 0 && value <= 1250)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
/*
@ -37,109 +37,109 @@ ExpectedOTD_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
*/
static void
ExpectedOTD_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_NativeInteger.free_struct;
td->print_struct = asn_DEF_NativeInteger.print_struct;
td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
td->der_encoder = asn_DEF_NativeInteger.der_encoder;
td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
if(!td->per_constraints)
td->per_constraints = asn_DEF_NativeInteger.per_constraints;
td->elements = asn_DEF_NativeInteger.elements;
td->elements_count = asn_DEF_NativeInteger.elements_count;
td->specifics = asn_DEF_NativeInteger.specifics;
td->free_struct = asn_DEF_NativeInteger.free_struct;
td->print_struct = asn_DEF_NativeInteger.print_struct;
td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
td->der_encoder = asn_DEF_NativeInteger.der_encoder;
td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
if(!td->per_constraints)
td->per_constraints = asn_DEF_NativeInteger.per_constraints;
td->elements = asn_DEF_NativeInteger.elements;
td->elements_count = asn_DEF_NativeInteger.elements_count;
td->specifics = asn_DEF_NativeInteger.specifics;
}
void
ExpectedOTD_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
ExpectedOTD_1_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
void *struct_ptr, int contents_only) {
ExpectedOTD_1_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
}
int
ExpectedOTD_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
ExpectedOTD_1_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
ExpectedOTD_1_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
asn_dec_rval_t
ExpectedOTD_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) {
ExpectedOTD_1_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
void **structure, const void *bufptr, size_t size, int tag_mode) {
ExpectedOTD_1_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
asn_enc_rval_t
ExpectedOTD_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) {
ExpectedOTD_1_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
ExpectedOTD_1_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
asn_dec_rval_t
ExpectedOTD_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) {
ExpectedOTD_1_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
void **structure, const char *opt_mname, const void *bufptr, size_t size) {
ExpectedOTD_1_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
asn_enc_rval_t
ExpectedOTD_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) {
ExpectedOTD_1_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
ExpectedOTD_1_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
asn_dec_rval_t
ExpectedOTD_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) {
ExpectedOTD_1_inherit_TYPE_descriptor(td);
return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
ExpectedOTD_1_inherit_TYPE_descriptor(td);
return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
}
asn_enc_rval_t
ExpectedOTD_encode_uper(asn_TYPE_descriptor_t *td,
asn_per_constraints_t *constraints,
void *structure, asn_per_outp_t *per_out) {
ExpectedOTD_1_inherit_TYPE_descriptor(td);
return td->uper_encoder(td, constraints, structure, per_out);
asn_per_constraints_t *constraints,
void *structure, asn_per_outp_t *per_out) {
ExpectedOTD_1_inherit_TYPE_descriptor(td);
return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_EXPECTED_OTD_CONSTR_1 = {
{ APC_CONSTRAINED, 11, 11, 0, 1250 } /* (0..1250) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 11, 11, 0, 1250 } /* (0..1250) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_ExpectedOTD_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_ExpectedOTD = {
"ExpectedOTD",
"ExpectedOTD",
ExpectedOTD_free,
ExpectedOTD_print,
ExpectedOTD_constraint,
ExpectedOTD_decode_ber,
ExpectedOTD_encode_der,
ExpectedOTD_decode_xer,
ExpectedOTD_encode_xer,
ExpectedOTD_decode_uper,
ExpectedOTD_encode_uper,
0, /* Use generic outmost tag fetcher */
asn_DEF_ExpectedOTD_tags_1,
sizeof(asn_DEF_ExpectedOTD_tags_1)
/sizeof(asn_DEF_ExpectedOTD_tags_1[0]), /* 1 */
asn_DEF_ExpectedOTD_tags_1, /* Same as above */
sizeof(asn_DEF_ExpectedOTD_tags_1)
/sizeof(asn_DEF_ExpectedOTD_tags_1[0]), /* 1 */
&ASN_PER_TYPE_EXPECTED_OTD_CONSTR_1,
0, 0, /* No members */
0 /* No specifics */
"ExpectedOTD",
"ExpectedOTD",
ExpectedOTD_free,
ExpectedOTD_print,
ExpectedOTD_constraint,
ExpectedOTD_decode_ber,
ExpectedOTD_encode_der,
ExpectedOTD_decode_xer,
ExpectedOTD_encode_xer,
ExpectedOTD_decode_uper,
ExpectedOTD_encode_uper,
0, /* Use generic outmost tag fetcher */
asn_DEF_ExpectedOTD_tags_1,
sizeof(asn_DEF_ExpectedOTD_tags_1)
/sizeof(asn_DEF_ExpectedOTD_tags_1[0]), /* 1 */
asn_DEF_ExpectedOTD_tags_1, /* Same as above */
sizeof(asn_DEF_ExpectedOTD_tags_1)
/sizeof(asn_DEF_ExpectedOTD_tags_1[0]), /* 1 */
&ASN_PER_TYPE_EXPECTED_OTD_CONSTR_1,
0, 0, /* No members */
0 /* No specifics */
};

View File

@ -1,7 +1,7 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#ifndef _ExpectedOTD_H_

View File

@ -1,35 +1,35 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#include "Ext-GeographicalInformation.h"
int
Ext_GeographicalInformation_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr;
size_t size;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr;
size_t size;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
size = st->size;
size = st->size;
if((size >= 1 && size <= 20)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((size >= 1 && size <= 20)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
/*
@ -38,109 +38,109 @@ Ext_GeographicalInformation_constraint(asn_TYPE_descriptor_t *td, const void *sp
*/
static void
Ext_GeographicalInformation_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_OCTET_STRING.free_struct;
td->print_struct = asn_DEF_OCTET_STRING.print_struct;
td->ber_decoder = asn_DEF_OCTET_STRING.ber_decoder;
td->der_encoder = asn_DEF_OCTET_STRING.der_encoder;
td->xer_decoder = asn_DEF_OCTET_STRING.xer_decoder;
td->xer_encoder = asn_DEF_OCTET_STRING.xer_encoder;
td->uper_decoder = asn_DEF_OCTET_STRING.uper_decoder;
td->uper_encoder = asn_DEF_OCTET_STRING.uper_encoder;
if(!td->per_constraints)
td->per_constraints = asn_DEF_OCTET_STRING.per_constraints;
td->elements = asn_DEF_OCTET_STRING.elements;
td->elements_count = asn_DEF_OCTET_STRING.elements_count;
td->specifics = asn_DEF_OCTET_STRING.specifics;
td->free_struct = asn_DEF_OCTET_STRING.free_struct;
td->print_struct = asn_DEF_OCTET_STRING.print_struct;
td->ber_decoder = asn_DEF_OCTET_STRING.ber_decoder;
td->der_encoder = asn_DEF_OCTET_STRING.der_encoder;
td->xer_decoder = asn_DEF_OCTET_STRING.xer_decoder;
td->xer_encoder = asn_DEF_OCTET_STRING.xer_encoder;
td->uper_decoder = asn_DEF_OCTET_STRING.uper_decoder;
td->uper_encoder = asn_DEF_OCTET_STRING.uper_encoder;
if(!td->per_constraints)
td->per_constraints = asn_DEF_OCTET_STRING.per_constraints;
td->elements = asn_DEF_OCTET_STRING.elements;
td->elements_count = asn_DEF_OCTET_STRING.elements_count;
td->specifics = asn_DEF_OCTET_STRING.specifics;
}
void
Ext_GeographicalInformation_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
Ext_GeographicalInformation_1_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
void *struct_ptr, int contents_only) {
Ext_GeographicalInformation_1_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
}
int
Ext_GeographicalInformation_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
Ext_GeographicalInformation_1_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
Ext_GeographicalInformation_1_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
asn_dec_rval_t
Ext_GeographicalInformation_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) {
Ext_GeographicalInformation_1_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
void **structure, const void *bufptr, size_t size, int tag_mode) {
Ext_GeographicalInformation_1_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
asn_enc_rval_t
Ext_GeographicalInformation_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) {
Ext_GeographicalInformation_1_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
Ext_GeographicalInformation_1_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
asn_dec_rval_t
Ext_GeographicalInformation_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) {
Ext_GeographicalInformation_1_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
void **structure, const char *opt_mname, const void *bufptr, size_t size) {
Ext_GeographicalInformation_1_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
asn_enc_rval_t
Ext_GeographicalInformation_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) {
Ext_GeographicalInformation_1_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
Ext_GeographicalInformation_1_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
asn_dec_rval_t
Ext_GeographicalInformation_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) {
Ext_GeographicalInformation_1_inherit_TYPE_descriptor(td);
return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
Ext_GeographicalInformation_1_inherit_TYPE_descriptor(td);
return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
}
asn_enc_rval_t
Ext_GeographicalInformation_encode_uper(asn_TYPE_descriptor_t *td,
asn_per_constraints_t *constraints,
void *structure, asn_per_outp_t *per_out) {
Ext_GeographicalInformation_1_inherit_TYPE_descriptor(td);
return td->uper_encoder(td, constraints, structure, per_out);
asn_per_constraints_t *constraints,
void *structure, asn_per_outp_t *per_out) {
Ext_GeographicalInformation_1_inherit_TYPE_descriptor(td);
return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_EXT_GEOGRAPHICAL_INFORMATION_CONSTR_1 = {
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
{ APC_CONSTRAINED, 5, 5, 1, 20 } /* (SIZE(1..20)) */,
0, 0 /* No PER value map */
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
{ APC_CONSTRAINED, 5, 5, 1, 20 } /* (SIZE(1..20)) */,
0, 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_Ext_GeographicalInformation_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (4 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (4 << 2))
};
asn_TYPE_descriptor_t asn_DEF_Ext_GeographicalInformation = {
"Ext-GeographicalInformation",
"Ext-GeographicalInformation",
Ext_GeographicalInformation_free,
Ext_GeographicalInformation_print,
Ext_GeographicalInformation_constraint,
Ext_GeographicalInformation_decode_ber,
Ext_GeographicalInformation_encode_der,
Ext_GeographicalInformation_decode_xer,
Ext_GeographicalInformation_encode_xer,
Ext_GeographicalInformation_decode_uper,
Ext_GeographicalInformation_encode_uper,
0, /* Use generic outmost tag fetcher */
asn_DEF_Ext_GeographicalInformation_tags_1,
sizeof(asn_DEF_Ext_GeographicalInformation_tags_1)
/sizeof(asn_DEF_Ext_GeographicalInformation_tags_1[0]), /* 1 */
asn_DEF_Ext_GeographicalInformation_tags_1, /* Same as above */
sizeof(asn_DEF_Ext_GeographicalInformation_tags_1)
/sizeof(asn_DEF_Ext_GeographicalInformation_tags_1[0]), /* 1 */
&ASN_PER_TYPE_EXT_GEOGRAPHICAL_INFORMATION_CONSTR_1,
0, 0, /* No members */
0 /* No specifics */
"Ext-GeographicalInformation",
"Ext-GeographicalInformation",
Ext_GeographicalInformation_free,
Ext_GeographicalInformation_print,
Ext_GeographicalInformation_constraint,
Ext_GeographicalInformation_decode_ber,
Ext_GeographicalInformation_encode_der,
Ext_GeographicalInformation_decode_xer,
Ext_GeographicalInformation_encode_xer,
Ext_GeographicalInformation_decode_uper,
Ext_GeographicalInformation_encode_uper,
0, /* Use generic outmost tag fetcher */
asn_DEF_Ext_GeographicalInformation_tags_1,
sizeof(asn_DEF_Ext_GeographicalInformation_tags_1)
/sizeof(asn_DEF_Ext_GeographicalInformation_tags_1[0]), /* 1 */
asn_DEF_Ext_GeographicalInformation_tags_1, /* Same as above */
sizeof(asn_DEF_Ext_GeographicalInformation_tags_1)
/sizeof(asn_DEF_Ext_GeographicalInformation_tags_1[0]), /* 1 */
&ASN_PER_TYPE_EXT_GEOGRAPHICAL_INFORMATION_CONSTR_1,
0, 0, /* No members */
0 /* No specifics */
};

View File

@ -1,7 +1,7 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#ifndef _Ext_GeographicalInformation_H_

View File

@ -1,129 +1,129 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#include "Extended-reference.h"
static int
memb_smlc_code_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= 0 && value <= 63)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= 0 && value <= 63)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
static int
memb_transaction_ID_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= 0 && value <= 262143)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= 0 && value <= 262143)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
static asn_per_constraints_t ASN_PER_MEMB_SMLC_CODE_CONSTR_2 = {
{ APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_TRANSACTION_ID_CONSTR_3 = {
{ APC_CONSTRAINED, 18, -1, 0, 262143 } /* (0..262143) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 18, -1, 0, 262143 } /* (0..262143) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_Extended_reference_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct Extended_reference, smlc_code),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_smlc_code_constraint_1,
&ASN_PER_MEMB_SMLC_CODE_CONSTR_2,
0,
"smlc-code"
},
{ ATF_NOFLAGS, 0, offsetof(struct Extended_reference, transaction_ID),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_transaction_ID_constraint_1,
&ASN_PER_MEMB_TRANSACTION_ID_CONSTR_3,
0,
"transaction-ID"
},
{ ATF_NOFLAGS, 0, offsetof(struct Extended_reference, smlc_code),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_smlc_code_constraint_1,
&ASN_PER_MEMB_SMLC_CODE_CONSTR_2,
0,
"smlc-code"
},
{ ATF_NOFLAGS, 0, offsetof(struct Extended_reference, transaction_ID),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_transaction_ID_constraint_1,
&ASN_PER_MEMB_TRANSACTION_ID_CONSTR_3,
0,
"transaction-ID"
},
};
static ber_tlv_tag_t asn_DEF_Extended_reference_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static asn_TYPE_tag2member_t asn_MAP_Extended_reference_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* smlc-code at 999 */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* transaction-ID at 1000 */
};
static asn_SEQUENCE_specifics_t asn_SPC_Extended_reference_specs_1 = {
sizeof(struct Extended_reference),
offsetof(struct Extended_reference, _asn_ctx),
asn_MAP_Extended_reference_tag2el_1,
2, /* Count of tags in the map */
0, 0, 0, /* Optional elements (not needed) */
-1, /* Start extensions */
-1 /* Stop extensions */
sizeof(struct Extended_reference),
offsetof(struct Extended_reference, _asn_ctx),
asn_MAP_Extended_reference_tag2el_1,
2, /* Count of tags in the map */
0, 0, 0, /* Optional elements (not needed) */
-1, /* Start extensions */
-1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_Extended_reference = {
"Extended-reference",
"Extended-reference",
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_Extended_reference_tags_1,
sizeof(asn_DEF_Extended_reference_tags_1)
/sizeof(asn_DEF_Extended_reference_tags_1[0]), /* 1 */
asn_DEF_Extended_reference_tags_1, /* Same as above */
sizeof(asn_DEF_Extended_reference_tags_1)
/sizeof(asn_DEF_Extended_reference_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
asn_MBR_Extended_reference_1,
2, /* Elements count */
&asn_SPC_Extended_reference_specs_1 /* Additional specs */
"Extended-reference",
"Extended-reference",
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_Extended_reference_tags_1,
sizeof(asn_DEF_Extended_reference_tags_1)
/sizeof(asn_DEF_Extended_reference_tags_1[0]), /* 1 */
asn_DEF_Extended_reference_tags_1, /* Same as above */
sizeof(asn_DEF_Extended_reference_tags_1)
/sizeof(asn_DEF_Extended_reference_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
asn_MBR_Extended_reference_1,
2, /* Elements count */
&asn_SPC_Extended_reference_specs_1 /* Additional specs */
};

View File

@ -1,7 +1,7 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#ifndef _Extended_reference_H_

View File

@ -1,17 +1,17 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#include "ExtensionContainer.h"
int
ExtensionContainer_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_INTEGER.check_constraints;
return td->check_constraints(td, sptr, ctfailcb, app_key);
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
/* Replace with underlying type checker */
td->check_constraints = asn_DEF_INTEGER.check_constraints;
return td->check_constraints(td, sptr, ctfailcb, app_key);
}
/*
@ -20,104 +20,104 @@ ExtensionContainer_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
*/
static void
ExtensionContainer_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_INTEGER.free_struct;
td->print_struct = asn_DEF_INTEGER.print_struct;
td->ber_decoder = asn_DEF_INTEGER.ber_decoder;
td->der_encoder = asn_DEF_INTEGER.der_encoder;
td->xer_decoder = asn_DEF_INTEGER.xer_decoder;
td->xer_encoder = asn_DEF_INTEGER.xer_encoder;
td->uper_decoder = asn_DEF_INTEGER.uper_decoder;
td->uper_encoder = asn_DEF_INTEGER.uper_encoder;
if(!td->per_constraints)
td->per_constraints = asn_DEF_INTEGER.per_constraints;
td->elements = asn_DEF_INTEGER.elements;
td->elements_count = asn_DEF_INTEGER.elements_count;
td->specifics = asn_DEF_INTEGER.specifics;
td->free_struct = asn_DEF_INTEGER.free_struct;
td->print_struct = asn_DEF_INTEGER.print_struct;
td->ber_decoder = asn_DEF_INTEGER.ber_decoder;
td->der_encoder = asn_DEF_INTEGER.der_encoder;
td->xer_decoder = asn_DEF_INTEGER.xer_decoder;
td->xer_encoder = asn_DEF_INTEGER.xer_encoder;
td->uper_decoder = asn_DEF_INTEGER.uper_decoder;
td->uper_encoder = asn_DEF_INTEGER.uper_encoder;
if(!td->per_constraints)
td->per_constraints = asn_DEF_INTEGER.per_constraints;
td->elements = asn_DEF_INTEGER.elements;
td->elements_count = asn_DEF_INTEGER.elements_count;
td->specifics = asn_DEF_INTEGER.specifics;
}
void
ExtensionContainer_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
ExtensionContainer_1_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
void *struct_ptr, int contents_only) {
ExtensionContainer_1_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
}
int
ExtensionContainer_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
ExtensionContainer_1_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
ExtensionContainer_1_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
asn_dec_rval_t
ExtensionContainer_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) {
ExtensionContainer_1_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
void **structure, const void *bufptr, size_t size, int tag_mode) {
ExtensionContainer_1_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
asn_enc_rval_t
ExtensionContainer_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) {
ExtensionContainer_1_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
ExtensionContainer_1_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
asn_dec_rval_t
ExtensionContainer_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) {
ExtensionContainer_1_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
void **structure, const char *opt_mname, const void *bufptr, size_t size) {
ExtensionContainer_1_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
asn_enc_rval_t
ExtensionContainer_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) {
ExtensionContainer_1_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
ExtensionContainer_1_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
asn_dec_rval_t
ExtensionContainer_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) {
ExtensionContainer_1_inherit_TYPE_descriptor(td);
return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
ExtensionContainer_1_inherit_TYPE_descriptor(td);
return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
}
asn_enc_rval_t
ExtensionContainer_encode_uper(asn_TYPE_descriptor_t *td,
asn_per_constraints_t *constraints,
void *structure, asn_per_outp_t *per_out) {
ExtensionContainer_1_inherit_TYPE_descriptor(td);
return td->uper_encoder(td, constraints, structure, per_out);
asn_per_constraints_t *constraints,
void *structure, asn_per_outp_t *per_out) {
ExtensionContainer_1_inherit_TYPE_descriptor(td);
return td->uper_encoder(td, constraints, structure, per_out);
}
static ber_tlv_tag_t asn_DEF_ExtensionContainer_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_ExtensionContainer = {
"ExtensionContainer",
"ExtensionContainer",
ExtensionContainer_free,
ExtensionContainer_print,
ExtensionContainer_constraint,
ExtensionContainer_decode_ber,
ExtensionContainer_encode_der,
ExtensionContainer_decode_xer,
ExtensionContainer_encode_xer,
ExtensionContainer_decode_uper,
ExtensionContainer_encode_uper,
0, /* Use generic outmost tag fetcher */
asn_DEF_ExtensionContainer_tags_1,
sizeof(asn_DEF_ExtensionContainer_tags_1)
/sizeof(asn_DEF_ExtensionContainer_tags_1[0]), /* 1 */
asn_DEF_ExtensionContainer_tags_1, /* Same as above */
sizeof(asn_DEF_ExtensionContainer_tags_1)
/sizeof(asn_DEF_ExtensionContainer_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
0, 0, /* No members */
0 /* No specifics */
"ExtensionContainer",
"ExtensionContainer",
ExtensionContainer_free,
ExtensionContainer_print,
ExtensionContainer_constraint,
ExtensionContainer_decode_ber,
ExtensionContainer_encode_der,
ExtensionContainer_decode_xer,
ExtensionContainer_encode_xer,
ExtensionContainer_decode_uper,
ExtensionContainer_encode_uper,
0, /* Use generic outmost tag fetcher */
asn_DEF_ExtensionContainer_tags_1,
sizeof(asn_DEF_ExtensionContainer_tags_1)
/sizeof(asn_DEF_ExtensionContainer_tags_1[0]), /* 1 */
asn_DEF_ExtensionContainer_tags_1, /* Same as above */
sizeof(asn_DEF_ExtensionContainer_tags_1)
/sizeof(asn_DEF_ExtensionContainer_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
0, 0, /* No members */
0 /* No specifics */
};

View File

@ -1,7 +1,7 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#ifndef _ExtensionContainer_H_

View File

@ -1,34 +1,34 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#include "FineRTD.h"
int
FineRTD_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= 0 && value <= 255)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= 0 && value <= 255)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
/*
@ -37,109 +37,109 @@ FineRTD_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
*/
static void
FineRTD_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_NativeInteger.free_struct;
td->print_struct = asn_DEF_NativeInteger.print_struct;
td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
td->der_encoder = asn_DEF_NativeInteger.der_encoder;
td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
if(!td->per_constraints)
td->per_constraints = asn_DEF_NativeInteger.per_constraints;
td->elements = asn_DEF_NativeInteger.elements;
td->elements_count = asn_DEF_NativeInteger.elements_count;
td->specifics = asn_DEF_NativeInteger.specifics;
td->free_struct = asn_DEF_NativeInteger.free_struct;
td->print_struct = asn_DEF_NativeInteger.print_struct;
td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
td->der_encoder = asn_DEF_NativeInteger.der_encoder;
td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
if(!td->per_constraints)
td->per_constraints = asn_DEF_NativeInteger.per_constraints;
td->elements = asn_DEF_NativeInteger.elements;
td->elements_count = asn_DEF_NativeInteger.elements_count;
td->specifics = asn_DEF_NativeInteger.specifics;
}
void
FineRTD_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
FineRTD_1_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
void *struct_ptr, int contents_only) {
FineRTD_1_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
}
int
FineRTD_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
FineRTD_1_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
FineRTD_1_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
asn_dec_rval_t
FineRTD_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) {
FineRTD_1_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
void **structure, const void *bufptr, size_t size, int tag_mode) {
FineRTD_1_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
asn_enc_rval_t
FineRTD_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) {
FineRTD_1_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
FineRTD_1_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
asn_dec_rval_t
FineRTD_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) {
FineRTD_1_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
void **structure, const char *opt_mname, const void *bufptr, size_t size) {
FineRTD_1_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
asn_enc_rval_t
FineRTD_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) {
FineRTD_1_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
FineRTD_1_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
asn_dec_rval_t
FineRTD_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) {
FineRTD_1_inherit_TYPE_descriptor(td);
return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
FineRTD_1_inherit_TYPE_descriptor(td);
return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
}
asn_enc_rval_t
FineRTD_encode_uper(asn_TYPE_descriptor_t *td,
asn_per_constraints_t *constraints,
void *structure, asn_per_outp_t *per_out) {
FineRTD_1_inherit_TYPE_descriptor(td);
return td->uper_encoder(td, constraints, structure, per_out);
asn_per_constraints_t *constraints,
void *structure, asn_per_outp_t *per_out) {
FineRTD_1_inherit_TYPE_descriptor(td);
return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_FINE_RTD_CONSTR_1 = {
{ APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_FineRTD_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_FineRTD = {
"FineRTD",
"FineRTD",
FineRTD_free,
FineRTD_print,
FineRTD_constraint,
FineRTD_decode_ber,
FineRTD_encode_der,
FineRTD_decode_xer,
FineRTD_encode_xer,
FineRTD_decode_uper,
FineRTD_encode_uper,
0, /* Use generic outmost tag fetcher */
asn_DEF_FineRTD_tags_1,
sizeof(asn_DEF_FineRTD_tags_1)
/sizeof(asn_DEF_FineRTD_tags_1[0]), /* 1 */
asn_DEF_FineRTD_tags_1, /* Same as above */
sizeof(asn_DEF_FineRTD_tags_1)
/sizeof(asn_DEF_FineRTD_tags_1[0]), /* 1 */
&ASN_PER_TYPE_FINE_RTD_CONSTR_1,
0, 0, /* No members */
0 /* No specifics */
"FineRTD",
"FineRTD",
FineRTD_free,
FineRTD_print,
FineRTD_constraint,
FineRTD_decode_ber,
FineRTD_encode_der,
FineRTD_decode_xer,
FineRTD_encode_xer,
FineRTD_decode_uper,
FineRTD_encode_uper,
0, /* Use generic outmost tag fetcher */
asn_DEF_FineRTD_tags_1,
sizeof(asn_DEF_FineRTD_tags_1)
/sizeof(asn_DEF_FineRTD_tags_1[0]), /* 1 */
asn_DEF_FineRTD_tags_1, /* Same as above */
sizeof(asn_DEF_FineRTD_tags_1)
/sizeof(asn_DEF_FineRTD_tags_1[0]), /* 1 */
&ASN_PER_TYPE_FINE_RTD_CONSTR_1,
0, 0, /* No members */
0 /* No specifics */
};

View File

@ -1,7 +1,7 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#ifndef _FineRTD_H_

View File

@ -1,34 +1,34 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#include "FixType.h"
int
FixType_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= 0 && value <= 1)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= 0 && value <= 1)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
/*
@ -37,109 +37,109 @@ FixType_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
*/
static void
FixType_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_NativeInteger.free_struct;
td->print_struct = asn_DEF_NativeInteger.print_struct;
td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
td->der_encoder = asn_DEF_NativeInteger.der_encoder;
td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
if(!td->per_constraints)
td->per_constraints = asn_DEF_NativeInteger.per_constraints;
td->elements = asn_DEF_NativeInteger.elements;
td->elements_count = asn_DEF_NativeInteger.elements_count;
td->specifics = asn_DEF_NativeInteger.specifics;
td->free_struct = asn_DEF_NativeInteger.free_struct;
td->print_struct = asn_DEF_NativeInteger.print_struct;
td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
td->der_encoder = asn_DEF_NativeInteger.der_encoder;
td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
if(!td->per_constraints)
td->per_constraints = asn_DEF_NativeInteger.per_constraints;
td->elements = asn_DEF_NativeInteger.elements;
td->elements_count = asn_DEF_NativeInteger.elements_count;
td->specifics = asn_DEF_NativeInteger.specifics;
}
void
FixType_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
FixType_1_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
void *struct_ptr, int contents_only) {
FixType_1_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
}
int
FixType_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
FixType_1_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
FixType_1_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
asn_dec_rval_t
FixType_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) {
FixType_1_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
void **structure, const void *bufptr, size_t size, int tag_mode) {
FixType_1_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
asn_enc_rval_t
FixType_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) {
FixType_1_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
FixType_1_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
asn_dec_rval_t
FixType_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) {
FixType_1_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
void **structure, const char *opt_mname, const void *bufptr, size_t size) {
FixType_1_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
asn_enc_rval_t
FixType_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) {
FixType_1_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
FixType_1_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
asn_dec_rval_t
FixType_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) {
FixType_1_inherit_TYPE_descriptor(td);
return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
FixType_1_inherit_TYPE_descriptor(td);
return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
}
asn_enc_rval_t
FixType_encode_uper(asn_TYPE_descriptor_t *td,
asn_per_constraints_t *constraints,
void *structure, asn_per_outp_t *per_out) {
FixType_1_inherit_TYPE_descriptor(td);
return td->uper_encoder(td, constraints, structure, per_out);
asn_per_constraints_t *constraints,
void *structure, asn_per_outp_t *per_out) {
FixType_1_inherit_TYPE_descriptor(td);
return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_FIX_TYPE_CONSTR_1 = {
{ APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_FixType_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_FixType = {
"FixType",
"FixType",
FixType_free,
FixType_print,
FixType_constraint,
FixType_decode_ber,
FixType_encode_der,
FixType_decode_xer,
FixType_encode_xer,
FixType_decode_uper,
FixType_encode_uper,
0, /* Use generic outmost tag fetcher */
asn_DEF_FixType_tags_1,
sizeof(asn_DEF_FixType_tags_1)
/sizeof(asn_DEF_FixType_tags_1[0]), /* 1 */
asn_DEF_FixType_tags_1, /* Same as above */
sizeof(asn_DEF_FixType_tags_1)
/sizeof(asn_DEF_FixType_tags_1[0]), /* 1 */
&ASN_PER_TYPE_FIX_TYPE_CONSTR_1,
0, 0, /* Defined elsewhere */
0 /* No specifics */
"FixType",
"FixType",
FixType_free,
FixType_print,
FixType_constraint,
FixType_decode_ber,
FixType_encode_der,
FixType_decode_xer,
FixType_encode_xer,
FixType_decode_uper,
FixType_encode_uper,
0, /* Use generic outmost tag fetcher */
asn_DEF_FixType_tags_1,
sizeof(asn_DEF_FixType_tags_1)
/sizeof(asn_DEF_FixType_tags_1[0]), /* 1 */
asn_DEF_FixType_tags_1, /* Same as above */
sizeof(asn_DEF_FixType_tags_1)
/sizeof(asn_DEF_FixType_tags_1[0]), /* 1 */
&ASN_PER_TYPE_FIX_TYPE_CONSTR_1,
0, 0, /* Defined elsewhere */
0 /* No specifics */
};

View File

@ -1,7 +1,7 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#ifndef _FixType_H_

View File

@ -1,34 +1,34 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#include "FrameDrift.h"
int
FrameDrift_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= -64 && value <= 63)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= -64 && value <= 63)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
/*
@ -37,109 +37,109 @@ FrameDrift_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
*/
static void
FrameDrift_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_NativeInteger.free_struct;
td->print_struct = asn_DEF_NativeInteger.print_struct;
td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
td->der_encoder = asn_DEF_NativeInteger.der_encoder;
td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
if(!td->per_constraints)
td->per_constraints = asn_DEF_NativeInteger.per_constraints;
td->elements = asn_DEF_NativeInteger.elements;
td->elements_count = asn_DEF_NativeInteger.elements_count;
td->specifics = asn_DEF_NativeInteger.specifics;
td->free_struct = asn_DEF_NativeInteger.free_struct;
td->print_struct = asn_DEF_NativeInteger.print_struct;
td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
td->der_encoder = asn_DEF_NativeInteger.der_encoder;
td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
if(!td->per_constraints)
td->per_constraints = asn_DEF_NativeInteger.per_constraints;
td->elements = asn_DEF_NativeInteger.elements;
td->elements_count = asn_DEF_NativeInteger.elements_count;
td->specifics = asn_DEF_NativeInteger.specifics;
}
void
FrameDrift_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
FrameDrift_1_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
void *struct_ptr, int contents_only) {
FrameDrift_1_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
}
int
FrameDrift_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
FrameDrift_1_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
FrameDrift_1_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
asn_dec_rval_t
FrameDrift_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) {
FrameDrift_1_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
void **structure, const void *bufptr, size_t size, int tag_mode) {
FrameDrift_1_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
asn_enc_rval_t
FrameDrift_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) {
FrameDrift_1_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
FrameDrift_1_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
asn_dec_rval_t
FrameDrift_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) {
FrameDrift_1_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
void **structure, const char *opt_mname, const void *bufptr, size_t size) {
FrameDrift_1_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
asn_enc_rval_t
FrameDrift_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) {
FrameDrift_1_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
FrameDrift_1_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
asn_dec_rval_t
FrameDrift_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) {
FrameDrift_1_inherit_TYPE_descriptor(td);
return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
FrameDrift_1_inherit_TYPE_descriptor(td);
return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
}
asn_enc_rval_t
FrameDrift_encode_uper(asn_TYPE_descriptor_t *td,
asn_per_constraints_t *constraints,
void *structure, asn_per_outp_t *per_out) {
FrameDrift_1_inherit_TYPE_descriptor(td);
return td->uper_encoder(td, constraints, structure, per_out);
asn_per_constraints_t *constraints,
void *structure, asn_per_outp_t *per_out) {
FrameDrift_1_inherit_TYPE_descriptor(td);
return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_FRAME_DRIFT_CONSTR_1 = {
{ APC_CONSTRAINED, 7, 7, -64, 63 } /* (-64..63) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 7, 7, -64, 63 } /* (-64..63) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_FrameDrift_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_FrameDrift = {
"FrameDrift",
"FrameDrift",
FrameDrift_free,
FrameDrift_print,
FrameDrift_constraint,
FrameDrift_decode_ber,
FrameDrift_encode_der,
FrameDrift_decode_xer,
FrameDrift_encode_xer,
FrameDrift_decode_uper,
FrameDrift_encode_uper,
0, /* Use generic outmost tag fetcher */
asn_DEF_FrameDrift_tags_1,
sizeof(asn_DEF_FrameDrift_tags_1)
/sizeof(asn_DEF_FrameDrift_tags_1[0]), /* 1 */
asn_DEF_FrameDrift_tags_1, /* Same as above */
sizeof(asn_DEF_FrameDrift_tags_1)
/sizeof(asn_DEF_FrameDrift_tags_1[0]), /* 1 */
&ASN_PER_TYPE_FRAME_DRIFT_CONSTR_1,
0, 0, /* No members */
0 /* No specifics */
"FrameDrift",
"FrameDrift",
FrameDrift_free,
FrameDrift_print,
FrameDrift_constraint,
FrameDrift_decode_ber,
FrameDrift_encode_der,
FrameDrift_decode_xer,
FrameDrift_encode_xer,
FrameDrift_decode_uper,
FrameDrift_encode_uper,
0, /* Use generic outmost tag fetcher */
asn_DEF_FrameDrift_tags_1,
sizeof(asn_DEF_FrameDrift_tags_1)
/sizeof(asn_DEF_FrameDrift_tags_1[0]), /* 1 */
asn_DEF_FrameDrift_tags_1, /* Same as above */
sizeof(asn_DEF_FrameDrift_tags_1)
/sizeof(asn_DEF_FrameDrift_tags_1[0]), /* 1 */
&ASN_PER_TYPE_FRAME_DRIFT_CONSTR_1,
0, 0, /* No members */
0 /* No specifics */
};

View File

@ -1,7 +1,7 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#ifndef _FrameDrift_H_

View File

@ -1,34 +1,34 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#include "FrameNumber.h"
int
FrameNumber_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= 0 && value <= 2097151)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= 0 && value <= 2097151)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
/*
@ -37,109 +37,109 @@ FrameNumber_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
*/
static void
FrameNumber_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_NativeInteger.free_struct;
td->print_struct = asn_DEF_NativeInteger.print_struct;
td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
td->der_encoder = asn_DEF_NativeInteger.der_encoder;
td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
if(!td->per_constraints)
td->per_constraints = asn_DEF_NativeInteger.per_constraints;
td->elements = asn_DEF_NativeInteger.elements;
td->elements_count = asn_DEF_NativeInteger.elements_count;
td->specifics = asn_DEF_NativeInteger.specifics;
td->free_struct = asn_DEF_NativeInteger.free_struct;
td->print_struct = asn_DEF_NativeInteger.print_struct;
td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
td->der_encoder = asn_DEF_NativeInteger.der_encoder;
td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
if(!td->per_constraints)
td->per_constraints = asn_DEF_NativeInteger.per_constraints;
td->elements = asn_DEF_NativeInteger.elements;
td->elements_count = asn_DEF_NativeInteger.elements_count;
td->specifics = asn_DEF_NativeInteger.specifics;
}
void
FrameNumber_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
FrameNumber_1_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
void *struct_ptr, int contents_only) {
FrameNumber_1_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
}
int
FrameNumber_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
FrameNumber_1_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
FrameNumber_1_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
asn_dec_rval_t
FrameNumber_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) {
FrameNumber_1_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
void **structure, const void *bufptr, size_t size, int tag_mode) {
FrameNumber_1_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
asn_enc_rval_t
FrameNumber_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) {
FrameNumber_1_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
FrameNumber_1_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
asn_dec_rval_t
FrameNumber_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) {
FrameNumber_1_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
void **structure, const char *opt_mname, const void *bufptr, size_t size) {
FrameNumber_1_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
asn_enc_rval_t
FrameNumber_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) {
FrameNumber_1_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
FrameNumber_1_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
asn_dec_rval_t
FrameNumber_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) {
FrameNumber_1_inherit_TYPE_descriptor(td);
return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
FrameNumber_1_inherit_TYPE_descriptor(td);
return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
}
asn_enc_rval_t
FrameNumber_encode_uper(asn_TYPE_descriptor_t *td,
asn_per_constraints_t *constraints,
void *structure, asn_per_outp_t *per_out) {
FrameNumber_1_inherit_TYPE_descriptor(td);
return td->uper_encoder(td, constraints, structure, per_out);
asn_per_constraints_t *constraints,
void *structure, asn_per_outp_t *per_out) {
FrameNumber_1_inherit_TYPE_descriptor(td);
return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_FRAME_NUMBER_CONSTR_1 = {
{ APC_CONSTRAINED, 21, -1, 0, 2097151 } /* (0..2097151) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 21, -1, 0, 2097151 } /* (0..2097151) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_FrameNumber_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_FrameNumber = {
"FrameNumber",
"FrameNumber",
FrameNumber_free,
FrameNumber_print,
FrameNumber_constraint,
FrameNumber_decode_ber,
FrameNumber_encode_der,
FrameNumber_decode_xer,
FrameNumber_encode_xer,
FrameNumber_decode_uper,
FrameNumber_encode_uper,
0, /* Use generic outmost tag fetcher */
asn_DEF_FrameNumber_tags_1,
sizeof(asn_DEF_FrameNumber_tags_1)
/sizeof(asn_DEF_FrameNumber_tags_1[0]), /* 1 */
asn_DEF_FrameNumber_tags_1, /* Same as above */
sizeof(asn_DEF_FrameNumber_tags_1)
/sizeof(asn_DEF_FrameNumber_tags_1[0]), /* 1 */
&ASN_PER_TYPE_FRAME_NUMBER_CONSTR_1,
0, 0, /* No members */
0 /* No specifics */
"FrameNumber",
"FrameNumber",
FrameNumber_free,
FrameNumber_print,
FrameNumber_constraint,
FrameNumber_decode_ber,
FrameNumber_encode_der,
FrameNumber_decode_xer,
FrameNumber_encode_xer,
FrameNumber_decode_uper,
FrameNumber_encode_uper,
0, /* Use generic outmost tag fetcher */
asn_DEF_FrameNumber_tags_1,
sizeof(asn_DEF_FrameNumber_tags_1)
/sizeof(asn_DEF_FrameNumber_tags_1[0]), /* 1 */
asn_DEF_FrameNumber_tags_1, /* Same as above */
sizeof(asn_DEF_FrameNumber_tags_1)
/sizeof(asn_DEF_FrameNumber_tags_1[0]), /* 1 */
&ASN_PER_TYPE_FRAME_NUMBER_CONSTR_1,
0, 0, /* No members */
0 /* No specifics */
};

View File

@ -1,7 +1,7 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#ifndef _FrameNumber_H_

View File

@ -1,59 +1,59 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#include "GANSS-AssistData.h"
static asn_TYPE_member_t asn_MBR_GANSS_AssistData_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct GANSS_AssistData, ganss_controlHeader),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_GANSS_ControlHeader,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"ganss-controlHeader"
},
{ ATF_NOFLAGS, 0, offsetof(struct GANSS_AssistData, ganss_controlHeader),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_GANSS_ControlHeader,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"ganss-controlHeader"
},
};
static ber_tlv_tag_t asn_DEF_GANSS_AssistData_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static asn_TYPE_tag2member_t asn_MAP_GANSS_AssistData_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* ganss-controlHeader at 1062 */
};
static asn_SEQUENCE_specifics_t asn_SPC_GANSS_AssistData_specs_1 = {
sizeof(struct GANSS_AssistData),
offsetof(struct GANSS_AssistData, _asn_ctx),
asn_MAP_GANSS_AssistData_tag2el_1,
1, /* Count of tags in the map */
0, 0, 0, /* Optional elements (not needed) */
-1, /* Start extensions */
-1 /* Stop extensions */
sizeof(struct GANSS_AssistData),
offsetof(struct GANSS_AssistData, _asn_ctx),
asn_MAP_GANSS_AssistData_tag2el_1,
1, /* Count of tags in the map */
0, 0, 0, /* Optional elements (not needed) */
-1, /* Start extensions */
-1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_GANSS_AssistData = {
"GANSS-AssistData",
"GANSS-AssistData",
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_GANSS_AssistData_tags_1,
sizeof(asn_DEF_GANSS_AssistData_tags_1)
/sizeof(asn_DEF_GANSS_AssistData_tags_1[0]), /* 1 */
asn_DEF_GANSS_AssistData_tags_1, /* Same as above */
sizeof(asn_DEF_GANSS_AssistData_tags_1)
/sizeof(asn_DEF_GANSS_AssistData_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
asn_MBR_GANSS_AssistData_1,
1, /* Elements count */
&asn_SPC_GANSS_AssistData_specs_1 /* Additional specs */
"GANSS-AssistData",
"GANSS-AssistData",
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_GANSS_AssistData_tags_1,
sizeof(asn_DEF_GANSS_AssistData_tags_1)
/sizeof(asn_DEF_GANSS_AssistData_tags_1[0]), /* 1 */
asn_DEF_GANSS_AssistData_tags_1, /* Same as above */
sizeof(asn_DEF_GANSS_AssistData_tags_1)
/sizeof(asn_DEF_GANSS_AssistData_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
asn_MBR_GANSS_AssistData_1,
1, /* Elements count */
&asn_SPC_GANSS_AssistData_specs_1 /* Additional specs */
};

View File

@ -1,7 +1,7 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#ifndef _GANSS_AssistData_H_

View File

@ -1,71 +1,71 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#include "GANSS-ControlHeader.h"
static asn_TYPE_member_t asn_MBR_GANSS_ControlHeader_1[] = {
{ ATF_POINTER, 2, offsetof(struct GANSS_ControlHeader, ganssCommonAssistData),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_GANSSCommonAssistData,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"ganssCommonAssistData"
},
{ ATF_POINTER, 1, offsetof(struct GANSS_ControlHeader, ganssGenericAssistDataList),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_SeqOfGANSSGenericAssistDataElement,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"ganssGenericAssistDataList"
},
{ ATF_POINTER, 2, offsetof(struct GANSS_ControlHeader, ganssCommonAssistData),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_GANSSCommonAssistData,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"ganssCommonAssistData"
},
{ ATF_POINTER, 1, offsetof(struct GANSS_ControlHeader, ganssGenericAssistDataList),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_SeqOfGANSSGenericAssistDataElement,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"ganssGenericAssistDataList"
},
};
static int asn_MAP_GANSS_ControlHeader_oms_1[] = { 0, 1 };
static ber_tlv_tag_t asn_DEF_GANSS_ControlHeader_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static asn_TYPE_tag2member_t asn_MAP_GANSS_ControlHeader_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ganssCommonAssistData at 1065 */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ganssGenericAssistDataList at 1066 */
};
static asn_SEQUENCE_specifics_t asn_SPC_GANSS_ControlHeader_specs_1 = {
sizeof(struct GANSS_ControlHeader),
offsetof(struct GANSS_ControlHeader, _asn_ctx),
asn_MAP_GANSS_ControlHeader_tag2el_1,
2, /* Count of tags in the map */
asn_MAP_GANSS_ControlHeader_oms_1, /* Optional members */
2, 0, /* Root/Additions */
-1, /* Start extensions */
-1 /* Stop extensions */
sizeof(struct GANSS_ControlHeader),
offsetof(struct GANSS_ControlHeader, _asn_ctx),
asn_MAP_GANSS_ControlHeader_tag2el_1,
2, /* Count of tags in the map */
asn_MAP_GANSS_ControlHeader_oms_1, /* Optional members */
2, 0, /* Root/Additions */
-1, /* Start extensions */
-1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_GANSS_ControlHeader = {
"GANSS-ControlHeader",
"GANSS-ControlHeader",
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_GANSS_ControlHeader_tags_1,
sizeof(asn_DEF_GANSS_ControlHeader_tags_1)
/sizeof(asn_DEF_GANSS_ControlHeader_tags_1[0]), /* 1 */
asn_DEF_GANSS_ControlHeader_tags_1, /* Same as above */
sizeof(asn_DEF_GANSS_ControlHeader_tags_1)
/sizeof(asn_DEF_GANSS_ControlHeader_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
asn_MBR_GANSS_ControlHeader_1,
2, /* Elements count */
&asn_SPC_GANSS_ControlHeader_specs_1 /* Additional specs */
"GANSS-ControlHeader",
"GANSS-ControlHeader",
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_GANSS_ControlHeader_tags_1,
sizeof(asn_DEF_GANSS_ControlHeader_tags_1)
/sizeof(asn_DEF_GANSS_ControlHeader_tags_1[0]), /* 1 */
asn_DEF_GANSS_ControlHeader_tags_1, /* Same as above */
sizeof(asn_DEF_GANSS_ControlHeader_tags_1)
/sizeof(asn_DEF_GANSS_ControlHeader_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
asn_MBR_GANSS_ControlHeader_1,
2, /* Elements count */
&asn_SPC_GANSS_ControlHeader_specs_1 /* Additional specs */
};

View File

@ -1,7 +1,7 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#ifndef _GANSS_ControlHeader_H_

View File

@ -1,91 +1,91 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#include "GANSS-MsrSetElement.h"
static int
memb_deltaGNASSTOD_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!sptr) {
_ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
value = *(const long *)sptr;
if((value >= 0 && value <= 127)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= 0 && value <= 127)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
static asn_per_constraints_t ASN_PER_MEMB_DELTA_GNASSTOD_CONSTR_4 = {
{ APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
{ APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_GANSS_MsrSetElement_1[] = {
{ ATF_POINTER, 4, offsetof(struct GANSS_MsrSetElement, referenceFrame),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_ReferenceFrame,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"referenceFrame"
},
{ ATF_POINTER, 3, offsetof(struct GANSS_MsrSetElement, ganssTODm),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_GANSSTODm,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"ganssTODm"
},
{ ATF_POINTER, 2, offsetof(struct GANSS_MsrSetElement, deltaGNASSTOD),
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_deltaGNASSTOD_constraint_1,
&ASN_PER_MEMB_DELTA_GNASSTOD_CONSTR_4,
0,
"deltaGNASSTOD"
},
{ ATF_POINTER, 1, offsetof(struct GANSS_MsrSetElement, ganssTODUncertainty),
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_GANSSTODUncertainty,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"ganssTODUncertainty"
},
{ ATF_NOFLAGS, 0, offsetof(struct GANSS_MsrSetElement, ganss_SgnTypeList),
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_SeqOfGANSS_SgnTypeElement,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"ganss-SgnTypeList"
},
{ ATF_POINTER, 4, offsetof(struct GANSS_MsrSetElement, referenceFrame),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_ReferenceFrame,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"referenceFrame"
},
{ ATF_POINTER, 3, offsetof(struct GANSS_MsrSetElement, ganssTODm),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_GANSSTODm,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"ganssTODm"
},
{ ATF_POINTER, 2, offsetof(struct GANSS_MsrSetElement, deltaGNASSTOD),
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
memb_deltaGNASSTOD_constraint_1,
&ASN_PER_MEMB_DELTA_GNASSTOD_CONSTR_4,
0,
"deltaGNASSTOD"
},
{ ATF_POINTER, 1, offsetof(struct GANSS_MsrSetElement, ganssTODUncertainty),
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_GANSSTODUncertainty,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"ganssTODUncertainty"
},
{ ATF_NOFLAGS, 0, offsetof(struct GANSS_MsrSetElement, ganss_SgnTypeList),
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_SeqOfGANSS_SgnTypeElement,
0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0,
"ganss-SgnTypeList"
},
};
static int asn_MAP_GANSS_MsrSetElement_oms_1[] = { 0, 1, 2, 3 };
static ber_tlv_tag_t asn_DEF_GANSS_MsrSetElement_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static asn_TYPE_tag2member_t asn_MAP_GANSS_MsrSetElement_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* referenceFrame at 1456 */
@ -95,37 +95,37 @@ static asn_TYPE_tag2member_t asn_MAP_GANSS_MsrSetElement_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* ganss-SgnTypeList at 1463 */
};
static asn_SEQUENCE_specifics_t asn_SPC_GANSS_MsrSetElement_specs_1 = {
sizeof(struct GANSS_MsrSetElement),
offsetof(struct GANSS_MsrSetElement, _asn_ctx),
asn_MAP_GANSS_MsrSetElement_tag2el_1,
5, /* Count of tags in the map */
asn_MAP_GANSS_MsrSetElement_oms_1, /* Optional members */
4, 0, /* Root/Additions */
-1, /* Start extensions */
-1 /* Stop extensions */
sizeof(struct GANSS_MsrSetElement),
offsetof(struct GANSS_MsrSetElement, _asn_ctx),
asn_MAP_GANSS_MsrSetElement_tag2el_1,
5, /* Count of tags in the map */
asn_MAP_GANSS_MsrSetElement_oms_1, /* Optional members */
4, 0, /* Root/Additions */
-1, /* Start extensions */
-1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_GANSS_MsrSetElement = {
"GANSS-MsrSetElement",
"GANSS-MsrSetElement",
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_GANSS_MsrSetElement_tags_1,
sizeof(asn_DEF_GANSS_MsrSetElement_tags_1)
/sizeof(asn_DEF_GANSS_MsrSetElement_tags_1[0]), /* 1 */
asn_DEF_GANSS_MsrSetElement_tags_1, /* Same as above */
sizeof(asn_DEF_GANSS_MsrSetElement_tags_1)
/sizeof(asn_DEF_GANSS_MsrSetElement_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
asn_MBR_GANSS_MsrSetElement_1,
5, /* Elements count */
&asn_SPC_GANSS_MsrSetElement_specs_1 /* Additional specs */
"GANSS-MsrSetElement",
"GANSS-MsrSetElement",
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_GANSS_MsrSetElement_tags_1,
sizeof(asn_DEF_GANSS_MsrSetElement_tags_1)
/sizeof(asn_DEF_GANSS_MsrSetElement_tags_1[0]), /* 1 */
asn_DEF_GANSS_MsrSetElement_tags_1, /* Same as above */
sizeof(asn_DEF_GANSS_MsrSetElement_tags_1)
/sizeof(asn_DEF_GANSS_MsrSetElement_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
asn_MBR_GANSS_MsrSetElement_1,
5, /* Elements count */
&asn_SPC_GANSS_MsrSetElement_specs_1 /* Additional specs */
};

View File

@ -1,7 +1,7 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
* found in "../rrlp-components.asn"
* found in "../rrlp-components.asn"
*/
#ifndef _GANSS_MsrSetElement_H_

Some files were not shown because too many files have changed in this diff Show More