Payload.c 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. /*
  2. * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
  3. * From ASN.1 module "Seader"
  4. * found in "seader.asn1"
  5. * `asn1c -D ./lib/asn1 -no-gen-example -pdu=all`
  6. */
  7. #include "Payload.h"
  8. static asn_oer_constraints_t asn_OER_type_Payload_constr_1 CC_NOTUSED = {
  9. { 0, 0 },
  10. -1};
  11. static asn_per_constraints_t asn_PER_type_Payload_constr_1 CC_NOTUSED = {
  12. { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */,
  13. { APC_UNCONSTRAINED, -1, -1, 0, 0 },
  14. 0, 0 /* No PER value map */
  15. };
  16. static asn_TYPE_member_t asn_MBR_Payload_1[] = {
  17. { ATF_NOFLAGS, 0, offsetof(struct Payload, choice.samCommand),
  18. (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
  19. +1, /* EXPLICIT tag at current level */
  20. &asn_DEF_SamCommand,
  21. 0,
  22. { 0, 0, 0 },
  23. 0, 0, /* No default value */
  24. "samCommand"
  25. },
  26. { ATF_NOFLAGS, 0, offsetof(struct Payload, choice.nfcCommand),
  27. (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
  28. +1, /* EXPLICIT tag at current level */
  29. &asn_DEF_NFCCommand,
  30. 0,
  31. { 0, 0, 0 },
  32. 0, 0, /* No default value */
  33. "nfcCommand"
  34. },
  35. { ATF_NOFLAGS, 0, offsetof(struct Payload, choice.response),
  36. (ASN_TAG_CLASS_CONTEXT | (29 << 2)),
  37. +1, /* EXPLICIT tag at current level */
  38. &asn_DEF_Response,
  39. 0,
  40. { 0, 0, 0 },
  41. 0, 0, /* No default value */
  42. "response"
  43. },
  44. { ATF_NOFLAGS, 0, offsetof(struct Payload, choice.errorResponse),
  45. (ASN_TAG_CLASS_CONTEXT | (30 << 2)),
  46. -1, /* IMPLICIT tag at current level */
  47. &asn_DEF_ErrorResponse,
  48. 0,
  49. { 0, 0, 0 },
  50. 0, 0, /* No default value */
  51. "errorResponse"
  52. },
  53. };
  54. static const asn_TYPE_tag2member_t asn_MAP_Payload_tag2el_1[] = {
  55. { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* samCommand */
  56. { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nfcCommand */
  57. { (ASN_TAG_CLASS_CONTEXT | (29 << 2)), 2, 0, 0 }, /* response */
  58. { (ASN_TAG_CLASS_CONTEXT | (30 << 2)), 3, 0, 0 } /* errorResponse */
  59. };
  60. static asn_CHOICE_specifics_t asn_SPC_Payload_specs_1 = {
  61. sizeof(struct Payload),
  62. offsetof(struct Payload, _asn_ctx),
  63. offsetof(struct Payload, present),
  64. sizeof(((struct Payload *)0)->present),
  65. asn_MAP_Payload_tag2el_1,
  66. 4, /* Count of tags in the map */
  67. 0, 0,
  68. -1 /* Extensions start */
  69. };
  70. asn_TYPE_descriptor_t asn_DEF_Payload = {
  71. "Payload",
  72. "Payload",
  73. &asn_OP_CHOICE,
  74. 0, /* No effective tags (pointer) */
  75. 0, /* No effective tags (count) */
  76. 0, /* No tags (pointer) */
  77. 0, /* No tags (count) */
  78. { &asn_OER_type_Payload_constr_1, &asn_PER_type_Payload_constr_1, CHOICE_constraint },
  79. asn_MBR_Payload_1,
  80. 4, /* Elements count */
  81. &asn_SPC_Payload_specs_1 /* Additional specs */
  82. };