absyntax_utils/function_type_decl.h
changeset 181 38d6eb056260
child 265 4d222f46f8cc
equal deleted inserted replaced
180:64334c5a00b1 181:38d6eb056260
       
     1 /*
       
     2  * (c) 2008 Edouard TISSERANT
       
     3  *
       
     4  * Offered to the public under the terms of the GNU General Public License
       
     5  * as published by the Free Software Foundation; either version 2 of the
       
     6  * License, or (at your option) any later version.
       
     7  *
       
     8  * This program is distributed in the hope that it will be useful, but
       
     9  * WITHOUT ANY WARRANTY; without even the implied warranty of
       
    10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
       
    11  * Public License for more details.
       
    12  *
       
    13  * This code is made available on the understanding that it will not be
       
    14  * used in safety-critical situations without a full and competent review.
       
    15  */
       
    16 
       
    17 /*
       
    18  * An IEC 61131-3 IL and ST compiler.
       
    19  *
       
    20  * Based on the
       
    21  * FINAL DRAFT - IEC 61131-3, 2nd Ed. (2001-12-10)
       
    22  *
       
    23  */
       
    24 
       
    25 /****
       
    26  * IEC 61131-3 standard function library
       
    27  * generated code, do not edit by hand
       
    28  */
       
    29  
       
    30  
       
    31 typedef enum {
       
    32     function_real_to_sint,
       
    33     function_real_to_lint,
       
    34     function_real_to_dint,
       
    35     function_real_to_date,
       
    36     function_real_to_dword,
       
    37     function_real_to_dt,
       
    38     function_real_to_tod,
       
    39     function_real_to_udint,
       
    40     function_real_to_word,
       
    41     function_real_to_string,
       
    42     function_real_to_lword,
       
    43     function_real_to_uint,
       
    44     function_real_to_lreal,
       
    45     function_real_to_byte,
       
    46     function_real_to_usint,
       
    47     function_real_to_ulint,
       
    48     function_real_to_bool,
       
    49     function_real_to_time,
       
    50     function_real_to_int,
       
    51     function_sint_to_real,
       
    52     function_sint_to_lint,
       
    53     function_sint_to_dint,
       
    54     function_sint_to_date,
       
    55     function_sint_to_dword,
       
    56     function_sint_to_dt,
       
    57     function_sint_to_tod,
       
    58     function_sint_to_udint,
       
    59     function_sint_to_word,
       
    60     function_sint_to_string,
       
    61     function_sint_to_lword,
       
    62     function_sint_to_uint,
       
    63     function_sint_to_lreal,
       
    64     function_sint_to_byte,
       
    65     function_sint_to_usint,
       
    66     function_sint_to_ulint,
       
    67     function_sint_to_bool,
       
    68     function_sint_to_time,
       
    69     function_sint_to_int,
       
    70     function_lint_to_real,
       
    71     function_lint_to_sint,
       
    72     function_lint_to_dint,
       
    73     function_lint_to_date,
       
    74     function_lint_to_dword,
       
    75     function_lint_to_dt,
       
    76     function_lint_to_tod,
       
    77     function_lint_to_udint,
       
    78     function_lint_to_word,
       
    79     function_lint_to_string,
       
    80     function_lint_to_lword,
       
    81     function_lint_to_uint,
       
    82     function_lint_to_lreal,
       
    83     function_lint_to_byte,
       
    84     function_lint_to_usint,
       
    85     function_lint_to_ulint,
       
    86     function_lint_to_bool,
       
    87     function_lint_to_time,
       
    88     function_lint_to_int,
       
    89     function_dint_to_real,
       
    90     function_dint_to_sint,
       
    91     function_dint_to_lint,
       
    92     function_dint_to_date,
       
    93     function_dint_to_dword,
       
    94     function_dint_to_dt,
       
    95     function_dint_to_tod,
       
    96     function_dint_to_udint,
       
    97     function_dint_to_word,
       
    98     function_dint_to_string,
       
    99     function_dint_to_lword,
       
   100     function_dint_to_uint,
       
   101     function_dint_to_lreal,
       
   102     function_dint_to_byte,
       
   103     function_dint_to_usint,
       
   104     function_dint_to_ulint,
       
   105     function_dint_to_bool,
       
   106     function_dint_to_time,
       
   107     function_dint_to_int,
       
   108     function_date_to_real,
       
   109     function_date_to_sint,
       
   110     function_date_to_lint,
       
   111     function_date_to_dint,
       
   112     function_date_to_dword,
       
   113     function_date_to_udint,
       
   114     function_date_to_word,
       
   115     function_date_to_string,
       
   116     function_date_to_lword,
       
   117     function_date_to_uint,
       
   118     function_date_to_lreal,
       
   119     function_date_to_byte,
       
   120     function_date_to_usint,
       
   121     function_date_to_ulint,
       
   122     function_date_to_int,
       
   123     function_dword_to_real,
       
   124     function_dword_to_sint,
       
   125     function_dword_to_lint,
       
   126     function_dword_to_dint,
       
   127     function_dword_to_date,
       
   128     function_dword_to_dt,
       
   129     function_dword_to_tod,
       
   130     function_dword_to_udint,
       
   131     function_dword_to_word,
       
   132     function_dword_to_string,
       
   133     function_dword_to_lword,
       
   134     function_dword_to_uint,
       
   135     function_dword_to_lreal,
       
   136     function_dword_to_byte,
       
   137     function_dword_to_usint,
       
   138     function_dword_to_ulint,
       
   139     function_dword_to_bool,
       
   140     function_dword_to_time,
       
   141     function_dword_to_int,
       
   142     function_dt_to_real,
       
   143     function_dt_to_sint,
       
   144     function_dt_to_lint,
       
   145     function_dt_to_dint,
       
   146     function_dt_to_dword,
       
   147     function_dt_to_udint,
       
   148     function_dt_to_word,
       
   149     function_dt_to_string,
       
   150     function_dt_to_lword,
       
   151     function_dt_to_uint,
       
   152     function_dt_to_lreal,
       
   153     function_dt_to_byte,
       
   154     function_dt_to_usint,
       
   155     function_dt_to_ulint,
       
   156     function_dt_to_int,
       
   157     function_tod_to_real,
       
   158     function_tod_to_sint,
       
   159     function_tod_to_lint,
       
   160     function_tod_to_dint,
       
   161     function_tod_to_dword,
       
   162     function_tod_to_udint,
       
   163     function_tod_to_word,
       
   164     function_tod_to_string,
       
   165     function_tod_to_lword,
       
   166     function_tod_to_uint,
       
   167     function_tod_to_lreal,
       
   168     function_tod_to_byte,
       
   169     function_tod_to_usint,
       
   170     function_tod_to_ulint,
       
   171     function_tod_to_int,
       
   172     function_udint_to_real,
       
   173     function_udint_to_sint,
       
   174     function_udint_to_lint,
       
   175     function_udint_to_dint,
       
   176     function_udint_to_date,
       
   177     function_udint_to_dword,
       
   178     function_udint_to_dt,
       
   179     function_udint_to_tod,
       
   180     function_udint_to_word,
       
   181     function_udint_to_string,
       
   182     function_udint_to_lword,
       
   183     function_udint_to_uint,
       
   184     function_udint_to_lreal,
       
   185     function_udint_to_byte,
       
   186     function_udint_to_usint,
       
   187     function_udint_to_ulint,
       
   188     function_udint_to_bool,
       
   189     function_udint_to_time,
       
   190     function_udint_to_int,
       
   191     function_word_to_real,
       
   192     function_word_to_sint,
       
   193     function_word_to_lint,
       
   194     function_word_to_dint,
       
   195     function_word_to_date,
       
   196     function_word_to_dword,
       
   197     function_word_to_dt,
       
   198     function_word_to_tod,
       
   199     function_word_to_udint,
       
   200     function_word_to_string,
       
   201     function_word_to_lword,
       
   202     function_word_to_uint,
       
   203     function_word_to_lreal,
       
   204     function_word_to_byte,
       
   205     function_word_to_usint,
       
   206     function_word_to_ulint,
       
   207     function_word_to_bool,
       
   208     function_word_to_time,
       
   209     function_word_to_int,
       
   210     function_string_to_real,
       
   211     function_string_to_sint,
       
   212     function_string_to_lint,
       
   213     function_string_to_dint,
       
   214     function_string_to_date,
       
   215     function_string_to_dword,
       
   216     function_string_to_dt,
       
   217     function_string_to_tod,
       
   218     function_string_to_udint,
       
   219     function_string_to_word,
       
   220     function_string_to_lword,
       
   221     function_string_to_uint,
       
   222     function_string_to_lreal,
       
   223     function_string_to_byte,
       
   224     function_string_to_usint,
       
   225     function_string_to_ulint,
       
   226     function_string_to_bool,
       
   227     function_string_to_time,
       
   228     function_string_to_int,
       
   229     function_lword_to_real,
       
   230     function_lword_to_sint,
       
   231     function_lword_to_lint,
       
   232     function_lword_to_dint,
       
   233     function_lword_to_date,
       
   234     function_lword_to_dword,
       
   235     function_lword_to_dt,
       
   236     function_lword_to_tod,
       
   237     function_lword_to_udint,
       
   238     function_lword_to_word,
       
   239     function_lword_to_string,
       
   240     function_lword_to_uint,
       
   241     function_lword_to_lreal,
       
   242     function_lword_to_byte,
       
   243     function_lword_to_usint,
       
   244     function_lword_to_ulint,
       
   245     function_lword_to_bool,
       
   246     function_lword_to_time,
       
   247     function_lword_to_int,
       
   248     function_uint_to_real,
       
   249     function_uint_to_sint,
       
   250     function_uint_to_lint,
       
   251     function_uint_to_dint,
       
   252     function_uint_to_date,
       
   253     function_uint_to_dword,
       
   254     function_uint_to_dt,
       
   255     function_uint_to_tod,
       
   256     function_uint_to_udint,
       
   257     function_uint_to_word,
       
   258     function_uint_to_string,
       
   259     function_uint_to_lword,
       
   260     function_uint_to_lreal,
       
   261     function_uint_to_byte,
       
   262     function_uint_to_usint,
       
   263     function_uint_to_ulint,
       
   264     function_uint_to_bool,
       
   265     function_uint_to_time,
       
   266     function_uint_to_int,
       
   267     function_lreal_to_real,
       
   268     function_lreal_to_sint,
       
   269     function_lreal_to_lint,
       
   270     function_lreal_to_dint,
       
   271     function_lreal_to_date,
       
   272     function_lreal_to_dword,
       
   273     function_lreal_to_dt,
       
   274     function_lreal_to_tod,
       
   275     function_lreal_to_udint,
       
   276     function_lreal_to_word,
       
   277     function_lreal_to_string,
       
   278     function_lreal_to_lword,
       
   279     function_lreal_to_uint,
       
   280     function_lreal_to_byte,
       
   281     function_lreal_to_usint,
       
   282     function_lreal_to_ulint,
       
   283     function_lreal_to_bool,
       
   284     function_lreal_to_time,
       
   285     function_lreal_to_int,
       
   286     function_byte_to_real,
       
   287     function_byte_to_sint,
       
   288     function_byte_to_lint,
       
   289     function_byte_to_dint,
       
   290     function_byte_to_date,
       
   291     function_byte_to_dword,
       
   292     function_byte_to_dt,
       
   293     function_byte_to_tod,
       
   294     function_byte_to_udint,
       
   295     function_byte_to_word,
       
   296     function_byte_to_string,
       
   297     function_byte_to_lword,
       
   298     function_byte_to_uint,
       
   299     function_byte_to_lreal,
       
   300     function_byte_to_usint,
       
   301     function_byte_to_ulint,
       
   302     function_byte_to_bool,
       
   303     function_byte_to_time,
       
   304     function_byte_to_int,
       
   305     function_usint_to_real,
       
   306     function_usint_to_sint,
       
   307     function_usint_to_lint,
       
   308     function_usint_to_dint,
       
   309     function_usint_to_date,
       
   310     function_usint_to_dword,
       
   311     function_usint_to_dt,
       
   312     function_usint_to_tod,
       
   313     function_usint_to_udint,
       
   314     function_usint_to_word,
       
   315     function_usint_to_string,
       
   316     function_usint_to_lword,
       
   317     function_usint_to_uint,
       
   318     function_usint_to_lreal,
       
   319     function_usint_to_byte,
       
   320     function_usint_to_ulint,
       
   321     function_usint_to_bool,
       
   322     function_usint_to_time,
       
   323     function_usint_to_int,
       
   324     function_ulint_to_real,
       
   325     function_ulint_to_sint,
       
   326     function_ulint_to_lint,
       
   327     function_ulint_to_dint,
       
   328     function_ulint_to_date,
       
   329     function_ulint_to_dword,
       
   330     function_ulint_to_dt,
       
   331     function_ulint_to_tod,
       
   332     function_ulint_to_udint,
       
   333     function_ulint_to_word,
       
   334     function_ulint_to_string,
       
   335     function_ulint_to_lword,
       
   336     function_ulint_to_uint,
       
   337     function_ulint_to_lreal,
       
   338     function_ulint_to_byte,
       
   339     function_ulint_to_usint,
       
   340     function_ulint_to_bool,
       
   341     function_ulint_to_time,
       
   342     function_ulint_to_int,
       
   343     function_bool_to_real,
       
   344     function_bool_to_sint,
       
   345     function_bool_to_lint,
       
   346     function_bool_to_dint,
       
   347     function_bool_to_date,
       
   348     function_bool_to_dword,
       
   349     function_bool_to_dt,
       
   350     function_bool_to_tod,
       
   351     function_bool_to_udint,
       
   352     function_bool_to_word,
       
   353     function_bool_to_string,
       
   354     function_bool_to_lword,
       
   355     function_bool_to_uint,
       
   356     function_bool_to_lreal,
       
   357     function_bool_to_byte,
       
   358     function_bool_to_usint,
       
   359     function_bool_to_ulint,
       
   360     function_bool_to_time,
       
   361     function_bool_to_int,
       
   362     function_time_to_real,
       
   363     function_time_to_sint,
       
   364     function_time_to_lint,
       
   365     function_time_to_dint,
       
   366     function_time_to_dword,
       
   367     function_time_to_udint,
       
   368     function_time_to_word,
       
   369     function_time_to_string,
       
   370     function_time_to_lword,
       
   371     function_time_to_uint,
       
   372     function_time_to_lreal,
       
   373     function_time_to_byte,
       
   374     function_time_to_usint,
       
   375     function_time_to_ulint,
       
   376     function_time_to_int,
       
   377     function_int_to_real,
       
   378     function_int_to_sint,
       
   379     function_int_to_lint,
       
   380     function_int_to_dint,
       
   381     function_int_to_date,
       
   382     function_int_to_dword,
       
   383     function_int_to_dt,
       
   384     function_int_to_tod,
       
   385     function_int_to_udint,
       
   386     function_int_to_word,
       
   387     function_int_to_string,
       
   388     function_int_to_lword,
       
   389     function_int_to_uint,
       
   390     function_int_to_lreal,
       
   391     function_int_to_byte,
       
   392     function_int_to_usint,
       
   393     function_int_to_ulint,
       
   394     function_int_to_bool,
       
   395     function_int_to_time,
       
   396     function_trunc,
       
   397     function_bcd_to_udint,
       
   398     function_bcd_to_uint,
       
   399     function_bcd_to_ulint,
       
   400     function_bcd_to_usint,
       
   401     function_udint_to_bcd,
       
   402     function_uint_to_bcd,
       
   403     function_usint_to_bcd,
       
   404     function_ulint_to_bcd,
       
   405     function_date_and_time_to_time_of_day,
       
   406     function_date_and_time_to_date,
       
   407     function_abs,
       
   408     function_sqrt,
       
   409     function_ln,
       
   410     function_log,
       
   411     function_exp,
       
   412     function_sin,
       
   413     function_cos,
       
   414     function_tan,
       
   415     function_asin,
       
   416     function_acos,
       
   417     function_atan,
       
   418     function_add,
       
   419     function_mul,
       
   420     function_sub,
       
   421     function_div,
       
   422     function_mod,
       
   423     function_expt,
       
   424     function_move,
       
   425     function_shl,
       
   426     function_shr,
       
   427     function_ror,
       
   428     function_rol,
       
   429     function_and,
       
   430     function_or,
       
   431     function_xor,
       
   432     function_not,
       
   433     function_sel,
       
   434     function_max,
       
   435     function_min,
       
   436     function_limit,
       
   437     function_mux,
       
   438     function_gt,
       
   439     function_ge,
       
   440     function_eq,
       
   441     function_lt,
       
   442     function_le,
       
   443     function_ne,
       
   444     function_len,
       
   445     function_left,
       
   446     function_right,
       
   447     function_mid,
       
   448     function_concat,
       
   449     function_insert,
       
   450     function_delete,
       
   451     function_replace,
       
   452     function_find,
       
   453     function_none
       
   454 } function_type_t;