Vanetza
 
Loading...
Searching...
No Matches
Psid.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 "Psid.h"
9
10int
11Psid_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
12 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
13 unsigned long value;
14
15 if(!sptr) {
16 ASN__CTFAIL(app_key, td, sptr,
17 "%s: value not given (%s:%d)",
18 td->name, __FILE__, __LINE__);
19 return -1;
20 }
21
22 value = *(const unsigned long *)sptr;
23
24 if(1 /* No applicable constraints whatsoever */) {
25 (void)value; /* Unused variable */
26 /* Nothing is here. See below */
27 }
28
29 return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
30}
31
32/*
33 * This type is implemented using NativeInteger,
34 * so here we adjust the DEF accordingly.
35 */
36#if !defined(ASN_DISABLE_OER_SUPPORT)
37static asn_oer_constraints_t asn_OER_type_Psid_constr_1 CC_NOTUSED = {
38 { 0, 1 } /* (0..MAX) */,
39 -1};
40#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
41#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
42asn_per_constraints_t asn_PER_type_Psid_constr_1 CC_NOTUSED = {
43 { APC_SEMI_CONSTRAINED, -1, -1, 0, 0 } /* (0..MAX) */,
44 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
45 0, 0 /* No PER value map */
46};
47#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
48const asn_INTEGER_specifics_t asn_SPC_Psid_specs_1 = {
49 0, 0, 0, 0, 0,
50 0, /* Native long size */
51 1 /* Unsigned representation */
52};
53static const ber_tlv_tag_t asn_DEF_Psid_tags_1[] = {
54 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
55};
56asn_TYPE_descriptor_t asn_DEF_Psid = {
57 "Psid",
58 "Psid",
59 &asn_OP_NativeInteger,
60 asn_DEF_Psid_tags_1,
61 sizeof(asn_DEF_Psid_tags_1)
62 /sizeof(asn_DEF_Psid_tags_1[0]), /* 1 */
63 asn_DEF_Psid_tags_1, /* Same as above */
64 sizeof(asn_DEF_Psid_tags_1)
65 /sizeof(asn_DEF_Psid_tags_1[0]), /* 1 */
66 {
67#if !defined(ASN_DISABLE_OER_SUPPORT)
68 &asn_OER_type_Psid_constr_1,
69#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
70#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
71 &asn_PER_type_Psid_constr_1,
72#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
73 Psid_constraint
74 },
75 0, 0, /* No members */
76 &asn_SPC_Psid_specs_1 /* Additional specs */
77};
78