1 /*********************************************************************
5 * Description: irda-specific defines
6 * Status: Experimental.
7 * Author: Thomas Schneider <nok-trace-men@dev-thomynet.de>
10 * Modified by: Thomas Schneider <nok-trace-men@dev-thomynet.de>
12 * Copyright (c) 1999 Thomas Schneider, All Rights Reserved.
14 * This program is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU General Public License as
16 * published by the Free Software Foundation; either version 2 of
17 * the License, or (at your option) any later version.
19 * This program is distributed in the hope that it will be useful, but
20 * WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22 * General Public License for more details.
24 * You should have received a copy of the GNU General Public License
25 * along with this program; if not, write to the Free Software
26 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
28 * IN NO EVENT SHALL THOMAS SCHNEIDER BE LIABLE TO ANY PARTY FOR
29 * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
30 * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
31 * IF THOMAS SCHNEIDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
34 * THOMAS SCHNEIDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
35 * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
36 * FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER
37 * IS ON AN "AS IS" BASIS, AND THOMAS SCHNEIDER HAS NO OBLIGATION TO
38 * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR
41 * This material is provided "AS-IS" and at no charge.
43 ********************************************************************/
45 #ifndef __NOKTRACE_IRDA_H
46 #define __NOKTRACE_IRDA_H
71 #define OUT_IRLAP 0x02
72 #define OUT_IRLMP 0x03
73 #define OUT_HIGH_LEVEL 0x04
75 #define OUT_FORM_LINE 0x01
76 #define OUT_FORM_STEP 0x02
78 #define OUT_SCREEN 0x01
84 typedef unsigned char BYTE;
85 typedef unsigned char U8 ;
86 typedef unsigned short U16 ;
87 typedef unsigned int U32 ;
107 U32 fcs; /* must be U32 because escaped fcs */
110 BYTE esc_nr; /* all ce's - include also esc_fcs */
111 BYTE esc_fcs; /* nr of ce's in fcs */
123 U32 fcs; /* must be U32 because escaped fcs */
126 BYTE esc_nr; /* all ce's - include also esc_fcs */
127 BYTE esc_fcs; /* nr of ce's in fcs */
142 BYTE baud_rate_master;
143 BYTE baud_rate_client;
144 BYTE baut_rate_connection;
152 U32 p_src_adr; /* primary - source address */
153 U32 s_src_adr; /* secondary - source address */
154 U8 conn_adr; /* connection address */
159 U32 prim_nr_bytes; /* bytes from primary station */
160 U32 sec_nr_bytes ; /* bytes from secomdary station */
161 U32 prim_fcs_errors; /* nr of fcs-errors from prim. */
162 U32 sec_fcs_errors; /* nr of fcs-errors from sec. */
163 U32 prim_frames; /* frames from primary */
164 U32 sec_frames; /* frames from secondary */
165 U32 prim_esc_nr; /* nr of ecsapes from primary */
166 U32 sec_esc_nr; /* nr of escapes from secondary */
171 BYTE deep; /* deep of output (L2, L3, ... */
172 BYTE form; /* kind of output (line, steps) */
173 BYTE bit_output; /* if output as bits */
174 BYTE dest; /* file, screen */
175 FILE input_fd; /* input FILE */
176 GString infile_name; /* name of input-file */
177 FILE output_file; /* output FILE */
178 GString outfile_name; /* name of input-file */
182 #endif /* __NOKTRACE_IRDA_H */