source: trunk/src/data_sources/scream2ew/gcf.h @ 2148

Revision 2148, 1.6 KB checked in by paulf, 14 years ago (diff)

MKIII DM24 patch

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1/*
2 * gcf.h:
3 *
4 * Copyright (c) 2003 Guralp Systems Limited
5 * Author James McKenzie, contact <software@guralp.com>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 *
20 */
21
22/*
23 * $Id$
24 */
25
26/*
27 * $Log$
28 * Revision 1.2  2006/04/28 20:24:31  paulf
29 * MKIII DM24 patch
30 *
31 * Revision 1.1  2003/03/27 18:07:18  alex
32 * Initial revision
33 *
34 * Revision 1.7  2003/02/19 16:00:18  root
35 * #
36 *
37 */
38
39#ifndef __GCF_H__
40#define __GCF_H__
41
42typedef struct
43{
44  int day;
45  int sec;
46}
47gcf_time;
48
49typedef struct gcf_block_struct
50{
51  unsigned char *buf;
52  int size;
53  int csize;
54
55  unsigned char *text;
56  int tlen;
57
58  char sysid[7];
59  char strid[7];
60  gcf_time start;
61  time_t estart;
62  int sample_rate;
63  int format;
64  int records;
65  int samples;
66
67  int fic;
68  int ric;
69
70  int data[2048];
71}
72 *gcf_block;
73
74#define GCF_BLOCK_LEN 1024
75
76#define GCF_EPOCH 627264000L
77
78extern void extract_24 (gcf_block b);
79extern void extract_32 (gcf_block b);
80extern void gcf_dispatch (uint8_t * buf, int sz);
81#endif /* __GCF_H__ */
Note: See TracBrowser for help on using the repository browser.