@@ -119,32 +119,39 @@ struct audio_s {
119
119
/* I put it here, rather than with the rest of the link layer */
120
120
/* parameters because it is really a part of the HDLC layer */
121
121
/* and is part of the KISS TNC functionality rather than our data link layer. */
122
+ /* Future: not used yet. */
123
+
122
124
123
125
char timestamp_format [40 ]; /* -T option */
124
126
/* Precede received & transmitted frames with timestamp. */
125
127
/* Command line option uses "strftime" format string. */
126
128
127
129
128
- /* Properties for each channel, common to receive and transmit. */
129
- /* Can be different for each radio channel. */
130
130
131
131
/* originally a "channel" was always connected to an internal modem. */
132
132
/* In version 1.6, this is generalized so that a channel (as seen by client application) */
133
133
/* can be connected to something else. Initially, this will allow application */
134
134
/* access to the IGate. Later we might have network TNCs or other internal functions. */
135
135
136
+ // Properties for all channels.
136
137
137
- struct achan_param_s {
138
-
139
- // Originally there was a boolean, called "valid", to indicate that the
140
- // channel is valid. This has been replaced with the new "medium" which
141
- // will allow channels to correspond to things other than internal modems.
142
-
143
- enum medium_e medium ; // MEDIUM_NONE for invalid.
138
+ enum medium_e chan_medium [MAX_TOTAL_CHANS ];
139
+ // MEDIUM_NONE for invalid.
144
140
// MEDIUM_RADIO for internal modem. (only possibility earlier)
145
141
// MEDIUM_IGATE allows application access to IGate.
142
+ // MEDIUM_NETTNC for external TNC via TCP.
146
143
144
+ int igate_vchannel ; /* Virtual channel mapped to APRS-IS. */
145
+ /* -1 for none. */
146
+ /* Redundant but it makes things quicker and simpler */
147
+ /* than always searching thru above. */
148
+
149
+ /* Properties for each radio channel, common to receive and transmit. */
150
+ /* Can be different for each radio channel. */
151
+
152
+ struct achan_param_s {
147
153
154
+ // What else should be moved out of structure and enlarged when NETTNC is implemented. ???
148
155
char mycall [AX25_MAX_ADDR_LEN ]; /* Call associated with this radio channel. */
149
156
/* Could all be the same or different. */
150
157
0 commit comments