Vanetza
 
Loading...
Searching...
No Matches
Uint32.c
1/*
2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3 * From ASN.1 module "IEEE1609dot2BaseTypes"
4 * found in "asn1/IEEE1609dot2BaseTypes.asn"
5 * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R`
6 */
7
8#include "Uint32.h"
9
10int
11Uint32_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
12 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
13
14 if(!sptr) {
15 ASN__CTFAIL(app_key, td, sptr,
16 "%s: value not given (%s:%d)",
17 td->name, __FILE__, __LINE__);
18 return -1;
19 }
20
21
22 /* Constraint check succeeded */
23 return 0;
24}
25
26/*
27 * This type is implemented using NativeInteger,
28 * so here we adjust the DEF accordingly.
29 */
30#if !defined(ASN_DISABLE_OER_SUPPORT)
31static asn_oer_constraints_t asn_OER_type_Uint32_constr_1 CC_NOTUSED = {
32 { 4, 1 } /* (0..4294967295) */,
33 -1};
34#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
35#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
36asn_per_constraints_t asn_PER_type_Uint32_constr_1 CC_NOTUSED = {
37 { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */,
38 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
39 0, 0 /* No PER value map */
40};
41#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
42const asn_INTEGER_specifics_t asn_SPC_Uint32_specs_1 = {
43 0, 0, 0, 0, 0,
44 0, /* Native long size */
45 1 /* Unsigned representation */
46};
47static const ber_tlv_tag_t asn_DEF_Uint32_tags_1[] = {
48 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
49};
50asn_TYPE_descriptor_t asn_DEF_Uint32 = {
51 "Uint32",
52 "Uint32",
53 &asn_OP_NativeInteger,
54 asn_DEF_Uint32_tags_1,
55 sizeof(asn_DEF_Uint32_tags_1)
56 /sizeof(asn_DEF_Uint32_tags_1[0]), /* 1 */
57 asn_DEF_Uint32_tags_1, /* Same as above */
58 sizeof(asn_DEF_Uint32_tags_1)
59 /sizeof(asn_DEF_Uint32_tags_1[0]), /* 1 */
60 {
61#if !defined(ASN_DISABLE_OER_SUPPORT)
62 &asn_OER_type_Uint32_constr_1,
63#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
64#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
65 &asn_PER_type_Uint32_constr_1,
66#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
67 Uint32_constraint
68 },
69 0, 0, /* No members */
70 &asn_SPC_Uint32_specs_1 /* Additional specs */
71};
72