2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
\r
3 * From ASN.1 module "X2AP-IEs"
\r
4 * found in "../../asn_defs/asn1/x2ap-modified-15-05.asn"
\r
5 * `asn1c -fcompound-names -fno-include-deps -findirect-choice -gen-PER -no-gen-OER`
\r
11 BitRate_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
\r
12 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
\r
13 const INTEGER_t *st = (const INTEGER_t *)sptr;
\r
17 ASN__CTFAIL(app_key, td, sptr,
\r
18 "%s: value not given (%s:%d)",
\r
19 td->name, __FILE__, __LINE__);
\r
23 if(asn_INTEGER2long(st, &value)) {
\r
24 ASN__CTFAIL(app_key, td, sptr,
\r
25 "%s: value too large (%s:%d)",
\r
26 td->name, __FILE__, __LINE__);
\r
30 if((value >= 0 && value <= 10000000000)) {
\r
31 /* Constraint check succeeded */
\r
34 ASN__CTFAIL(app_key, td, sptr,
\r
35 "%s: constraint failed (%s:%d)",
\r
36 td->name, __FILE__, __LINE__);
\r
42 * This type is implemented using INTEGER,
\r
43 * so here we adjust the DEF accordingly.
\r
45 asn_per_constraints_t asn_PER_type_BitRate_constr_1 CC_NOTUSED = {
\r
46 { APC_CONSTRAINED, 34, -1, 0, 10000000000 } /* (0..10000000000) */,
\r
47 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
\r
48 0, 0 /* No PER value map */
\r
50 static const ber_tlv_tag_t asn_DEF_BitRate_tags_1[] = {
\r
51 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
\r
53 asn_TYPE_descriptor_t asn_DEF_BitRate = {
\r
57 asn_DEF_BitRate_tags_1,
\r
58 sizeof(asn_DEF_BitRate_tags_1)
\r
59 /sizeof(asn_DEF_BitRate_tags_1[0]), /* 1 */
\r
60 asn_DEF_BitRate_tags_1, /* Same as above */
\r
61 sizeof(asn_DEF_BitRate_tags_1)
\r
62 /sizeof(asn_DEF_BitRate_tags_1[0]), /* 1 */
\r
63 { 0, &asn_PER_type_BitRate_constr_1, BitRate_constraint },
\r
64 0, 0, /* No members */
\r
65 0 /* No specifics */
\r