SamCommand.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 "SamCommand.h"
  8. static asn_oer_constraints_t asn_OER_type_SamCommand_constr_1 CC_NOTUSED = {
  9. { 0, 0 },
  10. -1};
  11. asn_per_constraints_t asn_PER_type_SamCommand_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. asn_TYPE_member_t asn_MBR_SamCommand_1[] = {
  17. { ATF_NOFLAGS, 0, offsetof(struct SamCommand, choice.requestPacs),
  18. (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
  19. -1, /* IMPLICIT tag at current level */
  20. &asn_DEF_RequestPacs,
  21. 0,
  22. { 0, 0, 0 },
  23. 0, 0, /* No default value */
  24. "requestPacs"
  25. },
  26. { ATF_NOFLAGS, 0, offsetof(struct SamCommand, choice.version),
  27. (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
  28. -1, /* IMPLICIT tag at current level */
  29. &asn_DEF_NULL,
  30. 0,
  31. { 0, 0, 0 },
  32. 0, 0, /* No default value */
  33. "version"
  34. },
  35. { ATF_NOFLAGS, 0, offsetof(struct SamCommand, choice.cardDetected),
  36. (ASN_TAG_CLASS_CONTEXT | (13 << 2)),
  37. -1, /* IMPLICIT tag at current level */
  38. &asn_DEF_CardDetected,
  39. 0,
  40. { 0, 0, 0 },
  41. 0, 0, /* No default value */
  42. "cardDetected"
  43. },
  44. { ATF_NOFLAGS, 0, offsetof(struct SamCommand, choice.serialNumber),
  45. (ASN_TAG_CLASS_CONTEXT | (22 << 2)),
  46. -1, /* IMPLICIT tag at current level */
  47. &asn_DEF_NoArguments,
  48. 0,
  49. { 0, 0, 0 },
  50. 0, 0, /* No default value */
  51. "serialNumber"
  52. },
  53. };
  54. static const asn_TYPE_tag2member_t asn_MAP_SamCommand_tag2el_1[] = {
  55. { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 0, 0, 0 }, /* requestPacs */
  56. { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 1, 0, 0 }, /* version */
  57. { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 2, 0, 0 }, /* cardDetected */
  58. { (ASN_TAG_CLASS_CONTEXT | (22 << 2)), 3, 0, 0 } /* serialNumber */
  59. };
  60. asn_CHOICE_specifics_t asn_SPC_SamCommand_specs_1 = {
  61. sizeof(struct SamCommand),
  62. offsetof(struct SamCommand, _asn_ctx),
  63. offsetof(struct SamCommand, present),
  64. sizeof(((struct SamCommand *)0)->present),
  65. asn_MAP_SamCommand_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_SamCommand = {
  71. "SamCommand",
  72. "SamCommand",
  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_SamCommand_constr_1, &asn_PER_type_SamCommand_constr_1, CHOICE_constraint },
  79. asn_MBR_SamCommand_1,
  80. 4, /* Elements count */
  81. &asn_SPC_SamCommand_specs_1 /* Additional specs */
  82. };