FreeCalypso > hg > freecalypso-reveng
annotate frbl/reconst/inc/convert.h @ 320:20feaf83c661
frbl/reconst/convert.c: better match to original object
still not perfect though
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 05 Mar 2020 05:01:14 +0000 |
parents | 6cba849e3332 |
children |
rev | line source |
---|---|
312
6cba849e3332
frbl/reconst/inc: import from TCS211 surviving source
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 /******************************************************************************* |
6cba849e3332
frbl/reconst/inc: import from TCS211 surviving source
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 * |
6cba849e3332
frbl/reconst/inc: import from TCS211 surviving source
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 * CONVERT.H |
6cba849e3332
frbl/reconst/inc: import from TCS211 surviving source
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 * |
6cba849e3332
frbl/reconst/inc: import from TCS211 surviving source
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 * This module contains functions to convert a command into a string to send on |
6cba849e3332
frbl/reconst/inc: import from TCS211 surviving source
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 * the serial link and to get a command from a string received on the serial |
6cba849e3332
frbl/reconst/inc: import from TCS211 surviving source
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 * link. |
6cba849e3332
frbl/reconst/inc: import from TCS211 surviving source
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 * |
6cba849e3332
frbl/reconst/inc: import from TCS211 surviving source
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 * (C) Texas Instruments 1998 |
6cba849e3332
frbl/reconst/inc: import from TCS211 surviving source
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 * |
6cba849e3332
frbl/reconst/inc: import from TCS211 surviving source
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 ******************************************************************************/ |
6cba849e3332
frbl/reconst/inc: import from TCS211 surviving source
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 |
6cba849e3332
frbl/reconst/inc: import from TCS211 surviving source
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 #ifndef __CONVERT_H__ |
6cba849e3332
frbl/reconst/inc: import from TCS211 surviving source
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 #define __CONVERT_H__ |
6cba849e3332
frbl/reconst/inc: import from TCS211 surviving source
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 |
6cba849e3332
frbl/reconst/inc: import from TCS211 surviving source
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 #include "main/sys_types.h" |
6cba849e3332
frbl/reconst/inc: import from TCS211 surviving source
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
17 |
6cba849e3332
frbl/reconst/inc: import from TCS211 surviving source
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
18 extern long con_get_command_from_string (SYS_UWORD8 byte_to_analyze, SYS_UWORD8 *command); |
6cba849e3332
frbl/reconst/inc: import from TCS211 surviving source
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
19 |
6cba849e3332
frbl/reconst/inc: import from TCS211 surviving source
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
20 extern void con_build_string_from_command (SYS_UWORD8 *command, |
6cba849e3332
frbl/reconst/inc: import from TCS211 surviving source
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
21 SYS_UWORD8 *string, |
6cba849e3332
frbl/reconst/inc: import from TCS211 surviving source
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
22 SYS_UWORD16 *string_length); |
6cba849e3332
frbl/reconst/inc: import from TCS211 surviving source
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
23 |
6cba849e3332
frbl/reconst/inc: import from TCS211 surviving source
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
24 extern void con_initialize_conversion (void); |
6cba849e3332
frbl/reconst/inc: import from TCS211 surviving source
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
25 |
6cba849e3332
frbl/reconst/inc: import from TCS211 surviving source
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
26 #endif /* __CONVERT_H__ */ |