FreeCalypso > hg > freecalypso-reveng
annotate frbl/test/srecreader.h @ 351:0ca005dbab30
fluid-mnf/devices.txt: OM support, safe S71PL-J defaults
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 13 Mar 2020 07:19:37 +0000 |
parents | cefa700d1b8f |
children |
rev | line source |
---|---|
323
cefa700d1b8f
frbl: beginning of frbl2test
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 /* this header file defines the data structures for the SREC reader module */ |
cefa700d1b8f
frbl: beginning of frbl2test
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 |
cefa700d1b8f
frbl: beginning of frbl2test
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 struct srecreader { |
cefa700d1b8f
frbl: beginning of frbl2test
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 char *filename; |
cefa700d1b8f
frbl: beginning of frbl2test
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 FILE *openfile; |
cefa700d1b8f
frbl: beginning of frbl2test
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 int lineno; |
cefa700d1b8f
frbl: beginning of frbl2test
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 u_char record[256]; /* binary */ |
cefa700d1b8f
frbl: beginning of frbl2test
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 char record_type; /* ASCII char */ |
cefa700d1b8f
frbl: beginning of frbl2test
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 u_char datalen; |
cefa700d1b8f
frbl: beginning of frbl2test
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 uint32_t addr; |
cefa700d1b8f
frbl: beginning of frbl2test
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 }; |