@@ -53,6 +53,13 @@ typedef enum retry_e {
5353 RETRY_INVERT_TWO_SEP = 4 ,
5454 RETRY_MAX = 5 } retry_t ;
5555
56+ // Type of communication medium associated with the channel.
57+
58+ enum medium_e { MEDIUM_NONE = 0 , // Channel is not valid for use.
59+ MEDIUM_RADIO , // Internal modem for radio.
60+ MEDIUM_IGATE , // Access IGate as ordinary channel.
61+ MEDIUM_NETTNC }; // Remote network TNC. (possible future)
62+
5663
5764typedef enum sanity_e { SANITY_APRS , SANITY_AX25 , SANITY_NONE } sanity_t ;
5865
@@ -102,19 +109,31 @@ struct audio_s {
102109 /* Command line option uses "strftime" format string. */
103110
104111
105- /* Properties for each audio channel, common to receive and transmit. */
112+ /* Properties for each channel, common to receive and transmit. */
106113 /* Can be different for each radio channel. */
107114
115+ /* originally a "channel" was always connected to an internal modem. */
116+ /* In version 1.6, this is generalized so that a channel (as seen by client application) */
117+ /* can be connected to something else. Initially, this will allow application */
118+ /* access to the IGate. Later we might have network TNCs or other internal functions. */
119+
108120
109121 struct achan_param_s {
110122
111- int valid ; /* Is this channel valid? */
123+ // Originally there was a boolean, called "valid", to indicate that the
124+ // channel is valid. This has been replaced with the new "medium" which
125+ // will allow channels to correspond to things other than internal modems.
126+
127+ enum medium_e medium ; // MEDIUM_NONE for invalid.
128+ // MEDIUM_RADIO for internal modem. (only possibility earlier)
129+ // MEDIUM_IGATE allows application access to IGate.
130+
112131
113132 char mycall [AX25_MAX_ADDR_LEN ]; /* Call associated with this radio channel. */
114133 /* Could all be the same or different. */
115134
116135
117- enum modem_t { MODEM_AFSK , MODEM_BASEBAND , MODEM_SCRAMBLE , MODEM_QPSK , MODEM_8PSK , MODEM_OFF } modem_type ;
136+ enum modem_t { MODEM_AFSK , MODEM_BASEBAND , MODEM_SCRAMBLE , MODEM_QPSK , MODEM_8PSK , MODEM_OFF , MODEM_16_QAM , MODEM_64_QAM } modem_type ;
118137
119138 /* Usual AFSK. */
120139 /* Baseband signal. Not used yet. */
0 commit comments