comparison dhf/emit-dhfbin-0610.c @ 36:e4c6fc4e30f4

dhf: generate binary form of FR1 DHF
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 14 May 2024 04:26:18 +0000
parents dhf/emit-dhfbin-efr.c@6bb1651f8c11
children
comparison
equal deleted inserted replaced
35:6bb1651f8c11 36:e4c6fc4e30f4
1 /*
2 * This program emits a binary file containing one GSM 06.10 DHF.
3 */
4
5 #include <stdio.h>
6 #include <stdint.h>
7 #include <stdlib.h>
8 #include <tw_gsmfr.h>
9
10 main(argc, argv)
11 char **argv;
12 {
13 FILE *outf;
14
15 if (argc != 2) {
16 fprintf(stderr, "usage: %s out-bin-file\n", argv[0]);
17 exit(1);
18 }
19 outf = fopen(argv[1], "w");
20 if (!outf) {
21 perror(argv[1]);
22 exit(1);
23 }
24 fwrite(gsmfr_decoder_homing_frame, 1, 33, outf);
25 fclose(outf);
26 exit(0);
27 }