Debian Codegraph @

hdlcutil/hdrvcomm.h

raw symbols SCIP
1 /*****************************************************************************/cxx . . $ `<file>/hdlcutil/hdrvcomm.h`/
2
3 /*
4 * hdrvcomm.h -- HDLC driver communications.
5 *
6 * Copyright (C) 1996 Thomas Sailer ([email protected])
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
21 * 02110-1301, USA.
22 *
23 * Please note that the GPL allows you to use the driver, NOT the radio.
24 * In order to use the radio, you need a license from the communications
25 * authority of your country.
26 *
27 */
28
29 /*****************************************************************************/
30
31 #ifndef _HDRVCOMM_H
32 #define _HDRVCOMM_Hcxx . . $ `hdlcutil/hdrvcomm.h:32:9`!
33
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37
38 /* ---------------------------------------------------------------------- */
39
40 #include <linux/hdlcdrv.h>
41 #include "soundmodem.h"cxx . . $ `<file>/hdlcutil/soundmodem.h`/
42 #include <linux/baycom.h>
43
44 /* ---------------------------------------------------------------------- */
45
46 struct hdrvc_channel_paramscxx . . $ hdrvc_channel_params# {
47 int tx_delaycxx . . $ hdrvc_channel_params#tx_delay.; /* the transmitter keyup delay in 10ms units */
48 int tx_tailcxx . . $ hdrvc_channel_params#tx_tail.; /* the transmitter keyoff delay in 10ms units */
49 int slottimecxx . . $ hdrvc_channel_params#slottime.; /* the slottime in 10ms; usually 10 = 100ms */
50 int ppersistcxx . . $ hdrvc_channel_params#ppersist.; /* the p-persistence 0..255 */
51 int fulldupcxx . . $ hdrvc_channel_params#fulldup.; /* some driver do not support full duplex, setting */
52 /* this just makes them send even if DCD is on */
53 };
54
55 struct hdrvc_channel_statecxx . . $ hdrvc_channel_state# {
56 int pttcxx . . $ hdrvc_channel_state#ptt.;
57 int dcdcxx . . $ hdrvc_channel_state#dcd.;
58 int ptt_keyedcxx . . $ hdrvc_channel_state#ptt_keyed.;
59 unsigned long tx_packetscxx . . $ hdrvc_channel_state#tx_packets.;
60 unsigned long tx_errorscxx . . $ hdrvc_channel_state#tx_errors.;
61 unsigned long rx_packetscxx . . $ hdrvc_channel_state#rx_packets.;
62 unsigned long rx_errorscxx . . $ hdrvc_channel_state#rx_errors.;
63 };
64
65 /* ---------------------------------------------------------------------- */
66
67 /*
68 * diagnose modes
69 */
70 #define HDRVC_DIAGMODE_OFFcxx . . $ `hdlcutil/hdrvcomm.h:70:9`! 0
71 #define HDRVC_DIAGMODE_INPUTcxx . . $ `hdlcutil/hdrvcomm.h:71:9`! 1
72 #define HDRVC_DIAGMODE_DEMODcxx . . $ `hdlcutil/hdrvcomm.h:72:9`! 2
73 #define HDRVC_DIAGMODE_CONSTELLATIONcxx . . $ `hdlcutil/hdrvcomm.h:73:9`! 3
74
75 /*
76 * diagnose flags
77 */
78 #define HDRVC_DIAGFLAG_DCDGATEcxx . . $ `hdlcutil/hdrvcomm.h:78:9`! (1<<0)
79
80
81 /* ---------------------------------------------------------------------- */
82
83 extern int hdrvc_recvpacketcxx . . $ hdrvc_recvpacket(6abd07ddb1a912f0).(char *pkt, int maxlen);
84 extern int hdrvc_getfdcxx . . $ hdrvc_getfd(b126dc7c1de90089).(void);
85 extern const char *hdrvc_ifnamecxx . . $ hdrvc_ifname(33a1f659e94feb42).(void);
86 extern void hdrvc_argscxx . . $ hdrvc_args(de06760a4a38ab9).(int *argc, char *argv[], const char *def_if);
87 extern void hdrvc_initcxx . . $ hdrvc_init(49f6e7a06ebc5aa8).(void);
88 extern int hdrvc_get_samplescxx . . $ hdrvc_get_samples(b126dc7c1de90089).(void);
89 extern int hdrvc_get_bitscxx . . $ hdrvc_get_bits(b126dc7c1de90089).(void);
90 extern int hdrvc_get_channel_access_paramcxx . . $ hdrvc_get_channel_access_param(f136402c1dcd8d85).(struct hdrvc_channel_paramscxx . . $ hdrvc_channel_params# *par);
91 extern int hdrvc_set_channel_access_paramcxx . . $ hdrvc_set_channel_access_param(4ab70b5db353be76).(struct hdrvc_channel_paramscxx . . $ hdrvc_channel_params# par);
92 extern int hdrvc_calibratecxx . . $ hdrvc_calibrate(7864480464b09eea).(int calib);
93 extern int hdrvc_get_channel_statecxx . . $ hdrvc_get_channel_state(b95f36a631c52079).(struct hdrvc_channel_statecxx . . $ hdrvc_channel_state# *st);
94 extern unsigned int hdrvc_get_ifflagscxx . . $ hdrvc_get_ifflags(db52760e79bf9054).(void);
95 extern int hdrvc_diag2cxx . . $ hdrvc_diag2(2b48473033b61705).(unsigned int mode, unsigned int flags, short *data, unsigned int maxdatalen,
96 unsigned int *samplesperbit);
97 extern int hdrvc_get_driver_namecxx . . $ hdrvc_get_driver_name(6abd07ddb1a912f0).(char *buf, int bufsz);
98 extern int hdrvc_get_mode_namecxx . . $ hdrvc_get_mode_name(6abd07ddb1a912f0).(char *buf, int bufsz);
99
100 extern int hdrvc_hdlcdrv_ioctlcxx . . $ hdrvc_hdlcdrv_ioctl(f1689bf36b009389).(int cmd, struct hdlcdrv_ioctlcxx . . $ hdlcdrv_ioctl# *par);
101 extern int hdrvc_sm_ioctlcxx . . $ hdrvc_sm_ioctl(bf89a364da74a233).(int cmd, struct sm_ioctlcxx . . $ sm_ioctl# *par);
102 extern int hdrvc_baycom_ioctlcxx . . $ hdrvc_baycom_ioctl(51d393eee869daf2).(int cmd, struct baycom_ioctlcxx . . $ baycom_ioctl# *par);
103 extern int hdrvc_diagcxx . . $ hdrvc_diag(d151554320de317f).(struct sm_diag_datacxx . . $ sm_diag_data# *diag);
104
105 /* ---------------------------------------------------------------------- */
106 #ifdef __cplusplus
107 }
108 #endif
109 #endif /* _HDRVCOMM_H */