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