SamCommand.c 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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, 2 } /* (0..2) */,
  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. };
  45. static const asn_TYPE_tag2member_t asn_MAP_SamCommand_tag2el_1[] = {
  46. { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 0, 0, 0 }, /* requestPacs */
  47. { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 1, 0, 0 }, /* version */
  48. { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 2, 0, 0 } /* cardDetected */
  49. };
  50. asn_CHOICE_specifics_t asn_SPC_SamCommand_specs_1 = {
  51. sizeof(struct SamCommand),
  52. offsetof(struct SamCommand, _asn_ctx),
  53. offsetof(struct SamCommand, present),
  54. sizeof(((struct SamCommand *)0)->present),
  55. asn_MAP_SamCommand_tag2el_1,
  56. 3, /* Count of tags in the map */
  57. 0, 0,
  58. -1 /* Extensions start */
  59. };
  60. asn_TYPE_descriptor_t asn_DEF_SamCommand = {
  61. "SamCommand",
  62. "SamCommand",
  63. &asn_OP_CHOICE,
  64. 0, /* No effective tags (pointer) */
  65. 0, /* No effective tags (count) */
  66. 0, /* No tags (pointer) */
  67. 0, /* No tags (count) */
  68. { &asn_OER_type_SamCommand_constr_1, &asn_PER_type_SamCommand_constr_1, CHOICE_constraint },
  69. asn_MBR_SamCommand_1,
  70. 3, /* Elements count */
  71. &asn_SPC_SamCommand_specs_1 /* Additional specs */
  72. };