FrameProtocol.c 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 "FrameProtocol.h"
  8. /*
  9. * This type is implemented using NativeEnumerated,
  10. * so here we adjust the DEF accordingly.
  11. */
  12. static const asn_INTEGER_enum_map_t asn_MAP_FrameProtocol_value2enum_1[] = {
  13. { 2, 3, "nfc" },
  14. { 4, 6, "iclass" }
  15. };
  16. static const unsigned int asn_MAP_FrameProtocol_enum2value_1[] = {
  17. 1, /* iclass(4) */
  18. 0 /* nfc(2) */
  19. };
  20. static const asn_INTEGER_specifics_t asn_SPC_FrameProtocol_specs_1 = {
  21. asn_MAP_FrameProtocol_value2enum_1, /* "tag" => N; sorted by tag */
  22. asn_MAP_FrameProtocol_enum2value_1, /* N => "tag"; sorted by N */
  23. 2, /* Number of elements in the maps */
  24. 0, /* Enumeration is not extensible */
  25. 1, /* Strict enumeration */
  26. 0, /* Native long size */
  27. 0
  28. };
  29. static const ber_tlv_tag_t asn_DEF_FrameProtocol_tags_1[] = {
  30. (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
  31. };
  32. asn_TYPE_descriptor_t asn_DEF_FrameProtocol = {
  33. "FrameProtocol",
  34. "FrameProtocol",
  35. &asn_OP_NativeEnumerated,
  36. asn_DEF_FrameProtocol_tags_1,
  37. sizeof(asn_DEF_FrameProtocol_tags_1)
  38. /sizeof(asn_DEF_FrameProtocol_tags_1[0]), /* 1 */
  39. asn_DEF_FrameProtocol_tags_1, /* Same as above */
  40. sizeof(asn_DEF_FrameProtocol_tags_1)
  41. /sizeof(asn_DEF_FrameProtocol_tags_1[0]), /* 1 */
  42. { 0, 0, NativeEnumerated_constraint },
  43. 0, 0, /* Defined elsewhere */
  44. &asn_SPC_FrameProtocol_specs_1 /* Additional specs */
  45. };