/*
 *
 * Copyright 2019 AT&T Intellectual Property
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */


/*
 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
 * From ASN.1 module "X2AP-IEs"
 * 	found in "../../asnFiles/X2AP-IEs.asn"
 * 	`asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
 */

#ifndef	_DL_non_GBR_PRB_usage_H_
#define	_DL_non_GBR_PRB_usage_H_


#include "asn_application.h"

/* Including external dependencies */
#include "NativeInteger.h"

#ifdef __cplusplus
extern "C" {
#endif

/* DL-non-GBR-PRB-usage */
typedef long	 DL_non_GBR_PRB_usage_t;

/* Implementation */
extern asn_per_constraints_t asn_PER_type_DL_non_GBR_PRB_usage_constr_1;
extern asn_TYPE_descriptor_t asn_DEF_DL_non_GBR_PRB_usage;
asn_struct_free_f DL_non_GBR_PRB_usage_free;
asn_struct_print_f DL_non_GBR_PRB_usage_print;
asn_constr_check_f DL_non_GBR_PRB_usage_constraint;
ber_type_decoder_f DL_non_GBR_PRB_usage_decode_ber;
der_type_encoder_f DL_non_GBR_PRB_usage_encode_der;
xer_type_decoder_f DL_non_GBR_PRB_usage_decode_xer;
xer_type_encoder_f DL_non_GBR_PRB_usage_encode_xer;
per_type_decoder_f DL_non_GBR_PRB_usage_decode_uper;
per_type_encoder_f DL_non_GBR_PRB_usage_encode_uper;
per_type_decoder_f DL_non_GBR_PRB_usage_decode_aper;
per_type_encoder_f DL_non_GBR_PRB_usage_encode_aper;

#ifdef __cplusplus
}
#endif

#endif	/* _DL_non_GBR_PRB_usage_H_ */
#include "asn_internal.h"
