cpm_ts_CollectivePerceptionMessage.c
Go to the documentation of this file.
1 /*
2  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3  * From ASN.1 module "CPM-PDU-Descriptions"
4  * found in "/input/CPM-PDU-Descriptions.asn"
5  * `asn1c -fcompound-names -fprefix=cpm_ts_ -no-gen-BER -no-gen-XER -no-gen-OER -no-gen-example -gen-UPER -gen-JER`
6  */
7 
9 
10 static int
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  if(1 /* No applicable constraints whatsoever */) {
23  /* Nothing is here. See below */
24  }
25 
26  return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
27 }
28 
29 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
30 static asn_per_constraints_t asn_PER_memb_cpm_ts_header_constr_2 CC_NOTUSED = {
31  { APC_UNCONSTRAINED, -1, -1, 0, 0 },
32  { APC_UNCONSTRAINED, -1, -1, 0, 0 },
33  0, 0 /* No PER value map */
34 };
35 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
38  (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
39  -1, /* IMPLICIT tag at current level */
41  0,
42  {
43 #if !defined(ASN_DISABLE_OER_SUPPORT)
44  0,
45 #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
46 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
47  &asn_PER_memb_cpm_ts_header_constr_2,
48 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
49 #if !defined(ASN_DISABLE_JER_SUPPORT)
50  0,
51 #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
53  },
54  0, 0, /* No default value */
55  "header"
56  },
58  (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
59  -1, /* IMPLICIT tag at current level */
61  0,
62  {
63 #if !defined(ASN_DISABLE_OER_SUPPORT)
64  0,
65 #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
66 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
67  0,
68 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
69 #if !defined(ASN_DISABLE_JER_SUPPORT)
70  0,
71 #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
72  0
73  },
74  0, 0, /* No default value */
75  "payload"
76  },
77 };
79  (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
80 };
82  { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* header */
83  { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* payload */
84 };
89  2, /* Count of tags in the map */
90  0, 0, 0, /* Optional elements (not needed) */
91  -1, /* First extension addition */
92 };
94  "CollectivePerceptionMessage",
95  "CollectivePerceptionMessage",
103  {
104 #if !defined(ASN_DISABLE_OER_SUPPORT)
105  0,
106 #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
107 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
108  0,
109 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
110 #if !defined(ASN_DISABLE_JER_SUPPORT)
111  0,
112 #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
114  },
116  2, /* Elements count */
118 };
119 
asn_OP_SEQUENCE
asn_TYPE_operation_t asn_OP_SEQUENCE
Definition: constr_SEQUENCE.c:9
asn_SPC_cpm_ts_CollectivePerceptionMessage_specs_1
static asn_SEQUENCE_specifics_t asn_SPC_cpm_ts_CollectivePerceptionMessage_specs_1
Definition: cpm_ts_CollectivePerceptionMessage.c:85
cpm_ts_CollectivePerceptionMessage.h
cpm_ts_CollectivePerceptionMessage::_asn_ctx
asn_struct_ctx_t _asn_ctx
Definition: cpm_ts_CollectivePerceptionMessage.h:29
asn_app_constraint_failed_f
void() asn_app_constraint_failed_f(void *application_specific_key, const struct asn_TYPE_descriptor_s *type_descriptor_which_failed, const void *structure_which_failed_ptr, const char *error_message_format,...) CC_PRINTFLIKE(4
Definition: asn_application.h:167
ASN_TAG_CLASS_CONTEXT
@ ASN_TAG_CLASS_CONTEXT
Definition: ber_tlv_tag.h:15
ber_tlv_tag_t
unsigned ber_tlv_tag_t
Definition: ber_tlv_tag.h:18
ASN_TAG_CLASS_UNIVERSAL
@ ASN_TAG_CLASS_UNIVERSAL
Definition: ber_tlv_tag.h:13
asn_TYPE_descriptor_s::name
const char * name
Definition: constr_TYPE.h:225
CC_NOTUSED
static asn_per_constraints_t asn_PER_memb_cpm_ts_header_constr_2 CC_NOTUSED
Definition: cpm_ts_CollectivePerceptionMessage.c:30
asn_TYPE_tag2member_s
Definition: constr_TYPE.h:289
asn_DEF_cpm_ts_ItsPduHeader
asn_TYPE_descriptor_t asn_DEF_cpm_ts_ItsPduHeader
Definition: cpm_ts_ItsPduHeader.c:88
SEQUENCE_constraint
asn_constr_check_f SEQUENCE_constraint
Definition: constr_SEQUENCE.h:56
asn_DEF_cpm_ts_CollectivePerceptionMessage
asn_TYPE_descriptor_t asn_DEF_cpm_ts_CollectivePerceptionMessage
Definition: cpm_ts_CollectivePerceptionMessage.c:93
asn_TYPE_descriptor_s
Definition: constr_TYPE.h:224
offsetof
#define offsetof(s, m)
Definition: asn_system.h:132
cpm_ts_CollectivePerceptionMessage
Definition: cpm_ts_CollectivePerceptionMessage.h:24
asn_DEF_cpm_ts_CpmPayload
asn_TYPE_descriptor_t asn_DEF_cpm_ts_CpmPayload
Definition: cpm_ts_CpmPayload.c:67
ATF_NOFLAGS
@ ATF_NOFLAGS
Definition: constr_TYPE.h:267
asn_SEQUENCE_specifics_s
Definition: constr_SEQUENCE.h:14
ASN__CTFAIL
#define ASN__CTFAIL
Definition: constraints.h:57
asn_encoding_constraints_s::general_constraints
asn_constr_check_f * general_constraints
Definition: constr_TYPE.h:218
asn_DEF_cpm_ts_CollectivePerceptionMessage_tags_1
static const ber_tlv_tag_t asn_DEF_cpm_ts_CollectivePerceptionMessage_tags_1[]
Definition: cpm_ts_CollectivePerceptionMessage.c:78
asn_MAP_cpm_ts_CollectivePerceptionMessage_tag2el_1
static const asn_TYPE_tag2member_t asn_MAP_cpm_ts_CollectivePerceptionMessage_tag2el_1[]
Definition: cpm_ts_CollectivePerceptionMessage.c:81
asn_per_constraints_s
Definition: per_support.h:30
memb_cpm_ts_header_constraint_1
static int memb_cpm_ts_header_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key)
Definition: cpm_ts_CollectivePerceptionMessage.c:11
asn_TYPE_member_s
Definition: constr_TYPE.h:272
asn_TYPE_descriptor_s::encoding_constraints
asn_encoding_constraints_t encoding_constraints
Definition: constr_TYPE.h:247
asn_MBR_cpm_ts_CollectivePerceptionMessage_1
static asn_TYPE_member_t asn_MBR_cpm_ts_CollectivePerceptionMessage_1[]
Definition: cpm_ts_CollectivePerceptionMessage.c:36


etsi_its_cpm_ts_coding
Author(s): Jean-Pierre Busch , Guido Küppers , Lennart Reiher
autogenerated on Sun May 18 2025 02:22:37