Debian Codegraph @

hdlcutil/usersmdiag.h

raw symbols SCIP
1 /*****************************************************************************/cxx . . $ `<file>/hdlcutil/usersmdiag.h`/
2
3 /*
4 * usersmdiag.h -- Diagnostics interface.
5 *
6 * Copyright (C) 1996 Thomas Sailer ([email protected])
7 * Swiss Federal Institute of Technology (ETH), Electronics Lab
8 *
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
22 * 02110-1301, USA.
23 *
24 *
25 * This is the Linux realtime sound output driver
26 */
27
28 /*****************************************************************************/
29
30 #ifndef _USERSMDIAG_H
31 #define _USERSMDIAG_Hcxx . . $ `hdlcutil/usersmdiag.h:31:9`!
32
33 /* --------------------------------------------------------------------- */
34
35 #define USERSM_KEY_PROJcxx . . $ `hdlcutil/usersmdiag.h:35:9`! '0'
36
37 /* --------------------------------------------------------------------- */
38
39 #define USERSM_CMD_REQ_CHACCESS_PARcxx . . $ `hdlcutil/usersmdiag.h:39:9`! 0x00020
40 #define USERSM_CMD_ACK_CHACCESS_PARcxx . . $ `hdlcutil/usersmdiag.h:40:9`! 0x10021
41 #define USERSM_CMD_SET_CHACCESS_PARcxx . . $ `hdlcutil/usersmdiag.h:41:9`! 0x00022
42
43 #define USERSM_CMD_CALIBRATEcxx . . $ `hdlcutil/usersmdiag.h:43:9`! 0x00030
44 #define USERSM_CMD_REQ_CHANNELSTATEcxx . . $ `hdlcutil/usersmdiag.h:44:9`! 0x00031
45 #define USERSM_CMD_ACK_CHANNELSTATEcxx . . $ `hdlcutil/usersmdiag.h:45:9`! 0x10032
46
47 #define USERSM_CMD_REQ_DIAGcxx . . $ `hdlcutil/usersmdiag.h:47:9`! 0x00040
48 #define USERSM_CMD_ACK_DIAGcxx . . $ `hdlcutil/usersmdiag.h:48:9`! 0x10041
49
50 #define USERSM_CMD_REQ_DRVNAMEcxx . . $ `hdlcutil/usersmdiag.h:50:9`! 0x00050
51 #define USERSM_CMD_ACK_DRVNAMEcxx . . $ `hdlcutil/usersmdiag.h:51:9`! 0x10051
52 #define USERSM_CMD_REQ_DRVMODEcxx . . $ `hdlcutil/usersmdiag.h:52:9`! 0x00052
53 #define USERSM_CMD_ACK_DRVMODEcxx . . $ `hdlcutil/usersmdiag.h:53:9`! 0x10053
54
55 /*
56 * diagnose modes; same as in <linux/soundmodem.h>
57 */
58 #define USERSM_DIAGMODE_OFFcxx . . $ `hdlcutil/usersmdiag.h:58:9`! 0
59 #define USERSM_DIAGMODE_INPUTcxx . . $ `hdlcutil/usersmdiag.h:59:9`! 1
60 #define USERSM_DIAGMODE_DEMODcxx . . $ `hdlcutil/usersmdiag.h:60:9`! 2
61 #define USERSM_DIAGMODE_CONSTELLATIONcxx . . $ `hdlcutil/usersmdiag.h:61:9`! 3
62
63 /*
64 * diagnose flags; same as in <linux/soundmodem.h>
65 */
66 #define USERSM_DIAGFLAG_DCDGATEcxx . . $ `hdlcutil/usersmdiag.h:66:9`! (1<<0)
67 #define USERSM_DIAGFLAG_VALIDcxx . . $ `hdlcutil/usersmdiag.h:67:9`! (1<<1)
68
69 /* --------------------------------------------------------------------- */
70
71 #define DIAGDATALENcxx . . $ `hdlcutil/usersmdiag.h:71:9`! 64
72
73 /* --------------------------------------------------------------------- */
74
75 struct usersmmsgcxx . . $ usersmmsg# {
76 struct usersm_hdrcxx . . $ usersm_hdr# {
77 long typecxx . . $ usersm_hdr#type.;
78 unsigned int channelcxx . . $ usersm_hdr#channel.;
79 } hdrcxx . . $ usersmmsg#hdr.;
80 unioncxx . . $ usersmmsg#$anonymous_type_0# {
81 struct usersm_chaccess_parcxx . . $ usersm_chaccess_par# {
82 int tx_delaycxx . . $ usersm_chaccess_par#tx_delay.; /* the transmitter keyup delay in 10ms units */
83 int tx_tailcxx . . $ usersm_chaccess_par#tx_tail.; /* the transmitter keyoff delay in 10ms units */
84 int slottimecxx . . $ usersm_chaccess_par#slottime.; /* the slottime in 10ms; usually 10 = 100ms */
85 int ppersistcxx . . $ usersm_chaccess_par#ppersist.; /* the p-persistence 0..255 */
86 int fulldupcxx . . $ usersm_chaccess_par#fulldup.; /* some driver do not support full duplex, setting */
87 /* this just makes them send even if DCD is on */
88 } cpcxx . . $ usersmmsg#$anonymous_type_0#cp.;
89
90 int calibcxx . . $ usersmmsg#$anonymous_type_0#calib.;
91
92 struct usersm_channel_statecxx . . $ usersm_channel_state# {
93 int pttcxx . . $ usersm_channel_state#ptt.;
94 int dcdcxx . . $ usersm_channel_state#dcd.;
95 int ptt_keyedcxx . . $ usersm_channel_state#ptt_keyed.;
96 unsigned long tx_packetscxx . . $ usersm_channel_state#tx_packets.;
97 unsigned long tx_errorscxx . . $ usersm_channel_state#tx_errors.;
98 unsigned long rx_packetscxx . . $ usersm_channel_state#rx_packets.;
99 unsigned long rx_errorscxx . . $ usersm_channel_state#rx_errors.;
100 } cscxx . . $ usersmmsg#$anonymous_type_0#cs.;
101
102 struct usersm_diagcxx . . $ usersm_diag# {
103 unsigned int modecxx . . $ usersm_diag#mode.;
104 unsigned int flagscxx . . $ usersm_diag#flags.;
105 unsigned int samplesperbitcxx . . $ usersm_diag#samplesperbit.;
106 unsigned int datalencxx . . $ usersm_diag#datalen.;
107 } diagcxx . . $ usersmmsg#$anonymous_type_0#diag.;
108
109 struct usersm_diag_outcxx . . $ usersm_diag_out# {
110 struct usersm_diagcxx . . $ usersm_diag# diagcxx . . $ usersm_diag_out#diag.;
111 short samplescxx . . $ usersm_diag_out#samples.[DIAGDATALENcxx . . $ `hdlcutil/usersmdiag.h:71:9`!];
112 } diag_outcxx . . $ usersmmsg#$anonymous_type_0#diag_out.;
113
114 char bycxx . . $ usersmmsg#$anonymous_type_0#by.[0];
115 } datacxx . . $ usersmmsg#data.;
116 };
117
118 /* --------------------------------------------------------------------- */
119 #endif /* _USERSMDIAG_H */