2  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
 
   3  * From ASN.1 module "RFC1155-SMI"
 
   4  *      found in "RFC1155-SMI.asn1"
 
   5  *      `asn1c -S /home/faust/software/asn1c/skeletons/ -fcompound-names -fwide-types`
 
   8 #include "SimpleSyntax.h"
 
  10 static asn_oer_constraints_t asn_OER_type_SimpleSyntax_constr_1 CC_NOTUSED = {
 
  13 asn_per_constraints_t asn_PER_type_SimpleSyntax_constr_1 CC_NOTUSED = {
 
  14         { APC_CONSTRAINED,       2,  2,  0,  3 }        /* (0..3) */,
 
  15         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
 
  16         0, 0    /* No PER value map */
 
  18 asn_TYPE_member_t asn_MBR_SimpleSyntax_1[] = {
 
  19         { ATF_NOFLAGS, 0, offsetof(struct SimpleSyntax, choice.number),
 
  20                 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
 
  25                 0, 0, /* No default value */
 
  28         { ATF_NOFLAGS, 0, offsetof(struct SimpleSyntax, choice.string),
 
  29                 (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
 
  31                 &asn_DEF_OCTET_STRING,
 
  34                 0, 0, /* No default value */
 
  37         { ATF_NOFLAGS, 0, offsetof(struct SimpleSyntax, choice.object),
 
  38                 (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)),
 
  40                 &asn_DEF_OBJECT_IDENTIFIER,
 
  43                 0, 0, /* No default value */
 
  46         { ATF_NOFLAGS, 0, offsetof(struct SimpleSyntax, choice.empty),
 
  47                 (ASN_TAG_CLASS_UNIVERSAL | (5 << 2)),
 
  52                 0, 0, /* No default value */
 
  56 static const unsigned asn_MAP_SimpleSyntax_to_canonical_1[] = { 0, 1, 3, 2 };
 
  57 static const unsigned asn_MAP_SimpleSyntax_from_canonical_1[] = { 0, 1, 3, 2 };
 
  58 static const asn_TYPE_tag2member_t asn_MAP_SimpleSyntax_tag2el_1[] = {
 
  59     { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* number */
 
  60     { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 1, 0, 0 }, /* string */
 
  61     { (ASN_TAG_CLASS_UNIVERSAL | (5 << 2)), 3, 0, 0 }, /* empty */
 
  62     { (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)), 2, 0, 0 } /* object */
 
  64 asn_CHOICE_specifics_t asn_SPC_SimpleSyntax_specs_1 = {
 
  65         sizeof(struct SimpleSyntax),
 
  66         offsetof(struct SimpleSyntax, _asn_ctx),
 
  67         offsetof(struct SimpleSyntax, present),
 
  68         sizeof(((struct SimpleSyntax *)0)->present),
 
  69         asn_MAP_SimpleSyntax_tag2el_1,
 
  70         4,      /* Count of tags in the map */
 
  71         asn_MAP_SimpleSyntax_to_canonical_1,
 
  72         asn_MAP_SimpleSyntax_from_canonical_1,
 
  73         -1      /* Extensions start */
 
  75 asn_TYPE_descriptor_t asn_DEF_SimpleSyntax = {
 
  79         0,      /* No effective tags (pointer) */
 
  80         0,      /* No effective tags (count) */
 
  81         0,      /* No tags (pointer) */
 
  82         0,      /* No tags (count) */
 
  83         { &asn_OER_type_SimpleSyntax_constr_1, &asn_PER_type_SimpleSyntax_constr_1, CHOICE_constraint },
 
  84         asn_MBR_SimpleSyntax_1,
 
  85         4,      /* Elements count */
 
  86         &asn_SPC_SimpleSyntax_specs_1   /* Additional specs */