2 * Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
3 * From ASN.1 module "RRLP-Components"
4 * found in "../asn1src/RRLP-Components.asn"
5 * `asn1c -gen-PER -fskeletons-copy -fnative-types`
8 #include "GANSS-ID3-element.h"
11 memb_channelNumber_constraint_1(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 long *)sptr
;
24 if((value
>= -7 && value
<= 13)) {
25 /* Constraint check succeeded */
28 _ASN_CTFAIL(app_key
, td
, sptr
,
29 "%s: constraint failed (%s:%d)",
30 td
->name
, __FILE__
, __LINE__
);
35 static asn_per_constraints_t asn_PER_memb_channelNumber_constr_4
= {
36 { APC_CONSTRAINED
, 5, 5, -7, 13 } /* (-7..13) */,
37 { APC_UNCONSTRAINED
, -1, -1, 0, 0 },
38 0, 0 /* No PER value map */
40 static asn_TYPE_member_t asn_MBR_GANSS_ID3_element_1
[] = {
41 { ATF_NOFLAGS
, 0, offsetof(struct GANSS_ID3_element
, svID
),
42 (ASN_TAG_CLASS_CONTEXT
| (0 << 2)),
43 -1, /* IMPLICIT tag at current level */
45 0, /* Defer constraints checking to the member type */
46 0, /* No PER visible constraints */
50 { ATF_NOFLAGS
, 0, offsetof(struct GANSS_ID3_element
, signalsAvailable
),
51 (ASN_TAG_CLASS_CONTEXT
| (1 << 2)),
52 -1, /* IMPLICIT tag at current level */
53 &asn_DEF_GANSSSignals
,
54 0, /* Defer constraints checking to the member type */
55 0, /* No PER visible constraints */
59 { ATF_NOFLAGS
, 0, offsetof(struct GANSS_ID3_element
, channelNumber
),
60 (ASN_TAG_CLASS_CONTEXT
| (2 << 2)),
61 -1, /* IMPLICIT tag at current level */
62 &asn_DEF_NativeInteger
,
63 memb_channelNumber_constraint_1
,
64 &asn_PER_memb_channelNumber_constr_4
,
69 static ber_tlv_tag_t asn_DEF_GANSS_ID3_element_tags_1
[] = {
70 (ASN_TAG_CLASS_UNIVERSAL
| (16 << 2))
72 static asn_TYPE_tag2member_t asn_MAP_GANSS_ID3_element_tag2el_1
[] = {
73 { (ASN_TAG_CLASS_CONTEXT
| (0 << 2)), 0, 0, 0 }, /* svID at 1896 */
74 { (ASN_TAG_CLASS_CONTEXT
| (1 << 2)), 1, 0, 0 }, /* signalsAvailable at 1897 */
75 { (ASN_TAG_CLASS_CONTEXT
| (2 << 2)), 2, 0, 0 } /* channelNumber at 1898 */
77 static asn_SEQUENCE_specifics_t asn_SPC_GANSS_ID3_element_specs_1
= {
78 sizeof(struct GANSS_ID3_element
),
79 offsetof(struct GANSS_ID3_element
, _asn_ctx
),
80 asn_MAP_GANSS_ID3_element_tag2el_1
,
81 3, /* Count of tags in the map */
82 0, 0, 0, /* Optional elements (not needed) */
83 2, /* Start extensions */
84 4 /* Stop extensions */
86 asn_TYPE_descriptor_t asn_DEF_GANSS_ID3_element
= {
98 0, /* Use generic outmost tag fetcher */
99 asn_DEF_GANSS_ID3_element_tags_1
,
100 sizeof(asn_DEF_GANSS_ID3_element_tags_1
)
101 /sizeof(asn_DEF_GANSS_ID3_element_tags_1
[0]), /* 1 */
102 asn_DEF_GANSS_ID3_element_tags_1
, /* Same as above */
103 sizeof(asn_DEF_GANSS_ID3_element_tags_1
)
104 /sizeof(asn_DEF_GANSS_ID3_element_tags_1
[0]), /* 1 */
105 0, /* No PER visible constraints */
106 asn_MBR_GANSS_ID3_element_1
,
107 3, /* Elements count */
108 &asn_SPC_GANSS_ID3_element_specs_1
/* Additional specs */