FrameProtocol.c 1.8 KB

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