NFCSend.c 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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 "NFCSend.h"
  8. asn_TYPE_member_t asn_MBR_NFCSend_1[] = {
  9. { ATF_NOFLAGS, 0, offsetof(struct NFCSend, data),
  10. (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
  11. -1, /* IMPLICIT tag at current level */
  12. &asn_DEF_OCTET_STRING,
  13. 0,
  14. { 0, 0, 0 },
  15. 0, 0, /* No default value */
  16. "data"
  17. },
  18. { ATF_NOFLAGS, 0, offsetof(struct NFCSend, protocol),
  19. (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
  20. -1, /* IMPLICIT tag at current level */
  21. &asn_DEF_Protocol,
  22. 0,
  23. { 0, 0, 0 },
  24. 0, 0, /* No default value */
  25. "protocol"
  26. },
  27. { ATF_NOFLAGS, 0, offsetof(struct NFCSend, timeOut),
  28. (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
  29. -1, /* IMPLICIT tag at current level */
  30. &asn_DEF_NativeInteger,
  31. 0,
  32. { 0, 0, 0 },
  33. 0, 0, /* No default value */
  34. "timeOut"
  35. },
  36. { ATF_POINTER, 1, offsetof(struct NFCSend, format),
  37. (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
  38. -1, /* IMPLICIT tag at current level */
  39. &asn_DEF_OCTET_STRING,
  40. 0,
  41. { 0, 0, 0 },
  42. 0, 0, /* No default value */
  43. "format"
  44. },
  45. };
  46. static const int asn_MAP_NFCSend_oms_1[] = { 3 };
  47. static const ber_tlv_tag_t asn_DEF_NFCSend_tags_1[] = {
  48. (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
  49. };
  50. static const asn_TYPE_tag2member_t asn_MAP_NFCSend_tag2el_1[] = {
  51. { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* data */
  52. { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* protocol */
  53. { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* timeOut */
  54. { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 3, 0, 0 } /* format */
  55. };
  56. asn_SEQUENCE_specifics_t asn_SPC_NFCSend_specs_1 = {
  57. sizeof(struct NFCSend),
  58. offsetof(struct NFCSend, _asn_ctx),
  59. asn_MAP_NFCSend_tag2el_1,
  60. 4, /* Count of tags in the map */
  61. asn_MAP_NFCSend_oms_1, /* Optional members */
  62. 1, 0, /* Root/Additions */
  63. -1, /* First extension addition */
  64. };
  65. asn_TYPE_descriptor_t asn_DEF_NFCSend = {
  66. "NFCSend",
  67. "NFCSend",
  68. &asn_OP_SEQUENCE,
  69. asn_DEF_NFCSend_tags_1,
  70. sizeof(asn_DEF_NFCSend_tags_1)
  71. /sizeof(asn_DEF_NFCSend_tags_1[0]), /* 1 */
  72. asn_DEF_NFCSend_tags_1, /* Same as above */
  73. sizeof(asn_DEF_NFCSend_tags_1)
  74. /sizeof(asn_DEF_NFCSend_tags_1[0]), /* 1 */
  75. { 0, 0, SEQUENCE_constraint },
  76. asn_MBR_NFCSend_1,
  77. 4, /* Elements count */
  78. &asn_SPC_NFCSend_specs_1 /* Additional specs */
  79. };