2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3 * From ASN.1 module "E2SM-KPM-IEs"
4 * found in "../../ASN1_Input/E2SM_KPM_V_3_0.asn1"
5 * `asn1c -D ./../../E2_output/E2SM_KPM_v3.0_output -fcompound-names -fno-include-deps -findirect-choice -gen-PER -no-gen-example`
8 #include "E2SM-KPM-EventTriggerDefinition-Format1.h"
11 reportingPeriod_2_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
12 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
16 ASN__CTFAIL(app_key, td, sptr,
17 "%s: value not given (%s:%d)",
18 td->name, __FILE__, __LINE__);
22 value = *(const unsigned long *)sptr;
24 if((value >= 1 && value <= 4294967295)) {
25 /* Constraint check succeeded */
28 ASN__CTFAIL(app_key, td, sptr,
29 "%s: constraint failed (%s:%d)",
30 td->name, __FILE__, __LINE__);
36 * This type is implemented using NativeInteger,
37 * so here we adjust the DEF accordingly.
40 memb_reportingPeriod_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
41 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
45 ASN__CTFAIL(app_key, td, sptr,
46 "%s: value not given (%s:%d)",
47 td->name, __FILE__, __LINE__);
51 value = *(const unsigned long *)sptr;
53 if((value >= 1 && value <= 4294967295)) {
54 /* Constraint check succeeded */
57 ASN__CTFAIL(app_key, td, sptr,
58 "%s: constraint failed (%s:%d)",
59 td->name, __FILE__, __LINE__);
64 static asn_oer_constraints_t asn_OER_type_reportingPeriod_constr_2 CC_NOTUSED = {
65 { 4, 1 } /* (1..4294967295) */,
67 static asn_per_constraints_t asn_PER_type_reportingPeriod_constr_2 CC_NOTUSED = {
68 { APC_CONSTRAINED, 32, -1, 1, 4294967295 } /* (1..4294967295) */,
69 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
70 0, 0 /* No PER value map */
72 static asn_oer_constraints_t asn_OER_memb_reportingPeriod_constr_2 CC_NOTUSED = {
73 { 4, 1 } /* (1..4294967295) */,
75 static asn_per_constraints_t asn_PER_memb_reportingPeriod_constr_2 CC_NOTUSED = {
76 { APC_CONSTRAINED, 32, -1, 1, 4294967295 } /* (1..4294967295) */,
77 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
78 0, 0 /* No PER value map */
80 static const asn_INTEGER_specifics_t asn_SPC_reportingPeriod_specs_2 = {
82 0, /* Native long size */
83 1 /* Unsigned representation */
85 static const ber_tlv_tag_t asn_DEF_reportingPeriod_tags_2[] = {
86 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
87 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
89 static /* Use -fall-defs-global to expose */
90 asn_TYPE_descriptor_t asn_DEF_reportingPeriod_2 = {
93 &asn_OP_NativeInteger,
94 asn_DEF_reportingPeriod_tags_2,
95 sizeof(asn_DEF_reportingPeriod_tags_2)
96 /sizeof(asn_DEF_reportingPeriod_tags_2[0]) - 1, /* 1 */
97 asn_DEF_reportingPeriod_tags_2, /* Same as above */
98 sizeof(asn_DEF_reportingPeriod_tags_2)
99 /sizeof(asn_DEF_reportingPeriod_tags_2[0]), /* 2 */
100 { &asn_OER_type_reportingPeriod_constr_2, &asn_PER_type_reportingPeriod_constr_2, reportingPeriod_2_constraint },
101 0, 0, /* No members */
102 &asn_SPC_reportingPeriod_specs_2 /* Additional specs */
105 asn_TYPE_member_t asn_MBR_E2SM_KPM_EventTriggerDefinition_Format1_1[] = {
106 { ATF_NOFLAGS, 0, offsetof(struct E2SM_KPM_EventTriggerDefinition_Format1, reportingPeriod),
107 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
108 -1, /* IMPLICIT tag at current level */
109 &asn_DEF_reportingPeriod_2,
111 { &asn_OER_memb_reportingPeriod_constr_2, &asn_PER_memb_reportingPeriod_constr_2, memb_reportingPeriod_constraint_1 },
112 0, 0, /* No default value */
116 static const ber_tlv_tag_t asn_DEF_E2SM_KPM_EventTriggerDefinition_Format1_tags_1[] = {
117 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
119 static const asn_TYPE_tag2member_t asn_MAP_E2SM_KPM_EventTriggerDefinition_Format1_tag2el_1[] = {
120 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* reportingPeriod */
122 asn_SEQUENCE_specifics_t asn_SPC_E2SM_KPM_EventTriggerDefinition_Format1_specs_1 = {
123 sizeof(struct E2SM_KPM_EventTriggerDefinition_Format1),
124 offsetof(struct E2SM_KPM_EventTriggerDefinition_Format1, _asn_ctx),
125 asn_MAP_E2SM_KPM_EventTriggerDefinition_Format1_tag2el_1,
126 1, /* Count of tags in the map */
127 0, 0, 0, /* Optional elements (not needed) */
128 1, /* First extension addition */
130 asn_TYPE_descriptor_t asn_DEF_E2SM_KPM_EventTriggerDefinition_Format1 = {
131 "E2SM-KPM-EventTriggerDefinition-Format1",
132 "E2SM-KPM-EventTriggerDefinition-Format1",
134 asn_DEF_E2SM_KPM_EventTriggerDefinition_Format1_tags_1,
135 sizeof(asn_DEF_E2SM_KPM_EventTriggerDefinition_Format1_tags_1)
136 /sizeof(asn_DEF_E2SM_KPM_EventTriggerDefinition_Format1_tags_1[0]), /* 1 */
137 asn_DEF_E2SM_KPM_EventTriggerDefinition_Format1_tags_1, /* Same as above */
138 sizeof(asn_DEF_E2SM_KPM_EventTriggerDefinition_Format1_tags_1)
139 /sizeof(asn_DEF_E2SM_KPM_EventTriggerDefinition_Format1_tags_1[0]), /* 1 */
140 { 0, 0, SEQUENCE_constraint },
141 asn_MBR_E2SM_KPM_EventTriggerDefinition_Format1_1,
142 1, /* Elements count */
143 &asn_SPC_E2SM_KPM_EventTriggerDefinition_Format1_specs_1 /* Additional specs */