2 /*** <<< INCLUDES [MinMax] >>> ***/
6 /*** <<< TYPE-DECLS [MinMax] >>> ***/
8 typedef INTEGER_t MinMax_16P0_t;
10 /*** <<< FUNC-DECLS [MinMax] >>> ***/
12 extern asn_TYPE_descriptor_t asn_DEF_MinMax_16P0;
13 asn_struct_free_f MinMax_16P0_free;
14 asn_struct_print_f MinMax_16P0_print;
15 asn_constr_check_f MinMax_16P0_constraint;
16 ber_type_decoder_f MinMax_16P0_decode_ber;
17 der_type_encoder_f MinMax_16P0_encode_der;
18 xer_type_decoder_f MinMax_16P0_decode_xer;
19 xer_type_encoder_f MinMax_16P0_encode_xer;
21 /*** <<< CODE [MinMax] >>> ***/
24 MinMax_16P0_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
25 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
26 const INTEGER_t *st = (const INTEGER_t *)sptr;
30 ASN__CTFAIL(app_key, td, sptr,
31 "%s: value not given (%s:%d)",
32 td->name, __FILE__, __LINE__);
36 if(asn_INTEGER2long(st, &value)) {
37 ASN__CTFAIL(app_key, td, sptr,
38 "%s: value too large (%s:%d)",
39 td->name, __FILE__, __LINE__);
44 /* Constraint check succeeded */
47 ASN__CTFAIL(app_key, td, sptr,
48 "%s: constraint failed (%s:%d)",
49 td->name, __FILE__, __LINE__);
55 * This type is implemented using INTEGER,
56 * so here we adjust the DEF accordingly.
59 /*** <<< STAT-DEFS [MinMax] >>> ***/
61 static const ber_tlv_tag_t asn_DEF_MinMax_16P0_tags_1[] = {
62 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
64 asn_TYPE_descriptor_t asn_DEF_MinMax_16P0 = {
68 asn_DEF_MinMax_16P0_tags_1,
69 sizeof(asn_DEF_MinMax_16P0_tags_1)
70 /sizeof(asn_DEF_MinMax_16P0_tags_1[0]), /* 1 */
71 asn_DEF_MinMax_16P0_tags_1, /* Same as above */
72 sizeof(asn_DEF_MinMax_16P0_tags_1)
73 /sizeof(asn_DEF_MinMax_16P0_tags_1[0]), /* 1 */
74 { 0, 0, MinMax_16P0_constraint },
75 0, 0, /* No members */
80 /*** <<< INCLUDES [ThreePlus] >>> ***/
84 /*** <<< TYPE-DECLS [ThreePlus] >>> ***/
86 typedef MinMax_16P0_t ThreePlus_t;
88 /*** <<< FUNC-DECLS [ThreePlus] >>> ***/
90 extern asn_TYPE_descriptor_t asn_DEF_ThreePlus;
91 asn_struct_free_f ThreePlus_free;
92 asn_struct_print_f ThreePlus_print;
93 asn_constr_check_f ThreePlus_constraint;
94 ber_type_decoder_f ThreePlus_decode_ber;
95 der_type_encoder_f ThreePlus_encode_der;
96 xer_type_decoder_f ThreePlus_decode_xer;
97 xer_type_encoder_f ThreePlus_encode_xer;
99 /*** <<< CODE [ThreePlus] >>> ***/
102 ThreePlus_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
103 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
104 const MinMax_16P0_t *st = (const MinMax_16P0_t *)sptr;
108 ASN__CTFAIL(app_key, td, sptr,
109 "%s: value not given (%s:%d)",
110 td->name, __FILE__, __LINE__);
114 if(asn_INTEGER2long(st, &value)) {
115 ASN__CTFAIL(app_key, td, sptr,
116 "%s: value too large (%s:%d)",
117 td->name, __FILE__, __LINE__);
122 /* Constraint check succeeded */
125 ASN__CTFAIL(app_key, td, sptr,
126 "%s: constraint failed (%s:%d)",
127 td->name, __FILE__, __LINE__);
133 * This type is implemented using MinMax_16P0,
134 * so here we adjust the DEF accordingly.
137 /*** <<< STAT-DEFS [ThreePlus] >>> ***/
139 static const ber_tlv_tag_t asn_DEF_ThreePlus_tags_1[] = {
140 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
142 asn_TYPE_descriptor_t asn_DEF_ThreePlus = {
146 asn_DEF_ThreePlus_tags_1,
147 sizeof(asn_DEF_ThreePlus_tags_1)
148 /sizeof(asn_DEF_ThreePlus_tags_1[0]), /* 1 */
149 asn_DEF_ThreePlus_tags_1, /* Same as above */
150 sizeof(asn_DEF_ThreePlus_tags_1)
151 /sizeof(asn_DEF_ThreePlus_tags_1[0]), /* 1 */
152 { 0, 0, ThreePlus_constraint },
153 0, 0, /* No members */