Payload.c 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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 -no-gen-OER -no-gen-PER -pdu=all`
  6. */
  7. #include "Payload.h"
  8. static asn_TYPE_member_t asn_MBR_Payload_1[] = {
  9. { ATF_NOFLAGS, 0, offsetof(struct Payload, choice.samCommand),
  10. (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
  11. +1, /* EXPLICIT tag at current level */
  12. &asn_DEF_SamCommand,
  13. 0,
  14. { 0, 0, 0 },
  15. 0, 0, /* No default value */
  16. "samCommand"
  17. },
  18. { ATF_NOFLAGS, 0, offsetof(struct Payload, choice.nfcCommand),
  19. (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
  20. +1, /* EXPLICIT tag at current level */
  21. &asn_DEF_NFCCommand,
  22. 0,
  23. { 0, 0, 0 },
  24. 0, 0, /* No default value */
  25. "nfcCommand"
  26. },
  27. { ATF_NOFLAGS, 0, offsetof(struct Payload, choice.response),
  28. (ASN_TAG_CLASS_CONTEXT | (29 << 2)),
  29. +1, /* EXPLICIT tag at current level */
  30. &asn_DEF_Response,
  31. 0,
  32. { 0, 0, 0 },
  33. 0, 0, /* No default value */
  34. "response"
  35. },
  36. { ATF_NOFLAGS, 0, offsetof(struct Payload, choice.errorResponse),
  37. (ASN_TAG_CLASS_CONTEXT | (30 << 2)),
  38. -1, /* IMPLICIT tag at current level */
  39. &asn_DEF_ErrorResponse,
  40. 0,
  41. { 0, 0, 0 },
  42. 0, 0, /* No default value */
  43. "errorResponse"
  44. },
  45. };
  46. static const asn_TYPE_tag2member_t asn_MAP_Payload_tag2el_1[] = {
  47. { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* samCommand */
  48. { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nfcCommand */
  49. { (ASN_TAG_CLASS_CONTEXT | (29 << 2)), 2, 0, 0 }, /* response */
  50. { (ASN_TAG_CLASS_CONTEXT | (30 << 2)), 3, 0, 0 } /* errorResponse */
  51. };
  52. static asn_CHOICE_specifics_t asn_SPC_Payload_specs_1 = {
  53. sizeof(struct Payload),
  54. offsetof(struct Payload, _asn_ctx),
  55. offsetof(struct Payload, present),
  56. sizeof(((struct Payload *)0)->present),
  57. asn_MAP_Payload_tag2el_1,
  58. 4, /* Count of tags in the map */
  59. 0, 0,
  60. -1 /* Extensions start */
  61. };
  62. asn_TYPE_descriptor_t asn_DEF_Payload = {
  63. "Payload",
  64. "Payload",
  65. &asn_OP_CHOICE,
  66. 0, /* No effective tags (pointer) */
  67. 0, /* No effective tags (count) */
  68. 0, /* No tags (pointer) */
  69. 0, /* No tags (count) */
  70. { 0, 0, CHOICE_constraint },
  71. asn_MBR_Payload_1,
  72. 4, /* Elements count */
  73. &asn_SPC_Payload_specs_1 /* Additional specs */
  74. };