comparison trau-ul-prep/binreader.h @ 19:4ab8762be333

trau-ul-prep: starting with gsmx2tsrc program
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 23 Jun 2024 21:55:03 +0000
parents
children
comparison
equal deleted inserted replaced
18:b36419bbc2c4 19:4ab8762be333
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);