mirror of
https://github.com/bettse/seader.git
synced 2026-04-27 21:35:19 +00:00
86 lines
2.5 KiB
C
86 lines
2.5 KiB
C
/*
|
|
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
|
|
* From ASN.1 module "Seader"
|
|
* found in "seader.asn1"
|
|
* `asn1c -D ./lib/asn1 -no-gen-example -pdu=all`
|
|
*/
|
|
|
|
#include "Payload.h"
|
|
|
|
static asn_oer_constraints_t asn_OER_type_Payload_constr_1 CC_NOTUSED = {
|
|
{ 0, 0 },
|
|
-1};
|
|
static asn_per_constraints_t asn_PER_type_Payload_constr_1 CC_NOTUSED = {
|
|
{ APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */,
|
|
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
|
|
0, 0 /* No PER value map */
|
|
};
|
|
static asn_TYPE_member_t asn_MBR_Payload_1[] = {
|
|
{ ATF_NOFLAGS, 0, offsetof(struct Payload, choice.samCommand),
|
|
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
|
|
+1, /* EXPLICIT tag at current level */
|
|
&asn_DEF_SamCommand,
|
|
0,
|
|
{ 0, 0, 0 },
|
|
0, 0, /* No default value */
|
|
"samCommand"
|
|
},
|
|
{ ATF_NOFLAGS, 0, offsetof(struct Payload, choice.nfcCommand),
|
|
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
|
|
+1, /* EXPLICIT tag at current level */
|
|
&asn_DEF_NFCCommand,
|
|
0,
|
|
{ 0, 0, 0 },
|
|
0, 0, /* No default value */
|
|
"nfcCommand"
|
|
},
|
|
{ ATF_NOFLAGS, 0, offsetof(struct Payload, choice.response),
|
|
(ASN_TAG_CLASS_CONTEXT | (29 << 2)),
|
|
+1, /* EXPLICIT tag at current level */
|
|
&asn_DEF_Response,
|
|
0,
|
|
{ 0, 0, 0 },
|
|
0, 0, /* No default value */
|
|
"response"
|
|
},
|
|
{ ATF_NOFLAGS, 0, offsetof(struct Payload, choice.errorResponse),
|
|
(ASN_TAG_CLASS_CONTEXT | (30 << 2)),
|
|
-1, /* IMPLICIT tag at current level */
|
|
&asn_DEF_ErrorResponse,
|
|
0,
|
|
{ 0, 0, 0 },
|
|
0, 0, /* No default value */
|
|
"errorResponse"
|
|
},
|
|
};
|
|
static const asn_TYPE_tag2member_t asn_MAP_Payload_tag2el_1[] = {
|
|
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* samCommand */
|
|
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nfcCommand */
|
|
{ (ASN_TAG_CLASS_CONTEXT | (29 << 2)), 2, 0, 0 }, /* response */
|
|
{ (ASN_TAG_CLASS_CONTEXT | (30 << 2)), 3, 0, 0 } /* errorResponse */
|
|
};
|
|
static asn_CHOICE_specifics_t asn_SPC_Payload_specs_1 = {
|
|
sizeof(struct Payload),
|
|
offsetof(struct Payload, _asn_ctx),
|
|
offsetof(struct Payload, present),
|
|
sizeof(((struct Payload *)0)->present),
|
|
asn_MAP_Payload_tag2el_1,
|
|
4, /* Count of tags in the map */
|
|
0, 0,
|
|
-1 /* Extensions start */
|
|
};
|
|
asn_TYPE_descriptor_t asn_DEF_Payload = {
|
|
"Payload",
|
|
"Payload",
|
|
&asn_OP_CHOICE,
|
|
0, /* No effective tags (pointer) */
|
|
0, /* No effective tags (count) */
|
|
0, /* No tags (pointer) */
|
|
0, /* No tags (count) */
|
|
{ &asn_OER_type_Payload_constr_1, &asn_PER_type_Payload_constr_1, CHOICE_constraint },
|
|
asn_MBR_Payload_1,
|
|
4, /* Elements count */
|
|
&asn_SPC_Payload_specs_1 /* Additional specs */
|
|
};
|
|
|