FreeCalypso > hg > gsm-codec-lib
comparison libtest/binreader.h @ 10:820d88b97924
libtest: implement binary file reader
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 19 Nov 2022 23:57:42 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
9:4229247843c0 | 10:820d88b97924 |
---|---|
1 /* | |
2 * This header file defines the interface to our reader function for binary | |
3 * files recording GSM FR or EFR streams, see ../doc/Binary-file-format. | |
4 * | |
5 * binfile_read_frame() return values are: | |
6 * 1 = successfully read valid frame | |
7 * 0 = normal EOF | |
8 * -1 = unrecognized header byte | |
9 * -2 = EOF in the middle of a frame | |
10 */ | |
11 | |
12 #define BINFILE_MAX_FRAME 33 | |
13 | |
14 extern int binfile_read_frame(FILE *binf, uint8_t *frame); |