1 /*
2  *  Hamlib CI-V backend - main header
3  *  Copyright (c) 2000-2016 by Stephane Fillod
4  *
5  *
6  *   This library is free software; you can redistribute it and/or
7  *   modify it under the terms of the GNU Lesser General Public
8  *   License as published by the Free Software Foundation; either
9  *   version 2.1 of the License, or (at your option) any later version.
10  *
11  *   This library is distributed in the hope that it will be useful,
12  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
13  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  *   Lesser General Public License for more details.
15  *
16  *   You should have received a copy of the GNU Lesser General Public
17  *   License along with this library; if not, write to the Free Software
18  *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
19  *
20  */
21 
22 #ifndef _ICOM_H
23 #define _ICOM_H 1
24 
25 #include "hamlib/rig.h"
26 #include "cal.h"
27 #include "tones.h"
28 
29 #ifdef HAVE_SYS_TIME_H
30 #include <sys/time.h>
31 #endif
32 
33 #define BACKEND_VER "20210907"
34 
35 #define ICOM_IS_SECONDARY_VFO(vfo) ((vfo) & (RIG_VFO_B | RIG_VFO_SUB | RIG_VFO_SUB_B | RIG_VFO_MAIN_B))
36 #define ICOM_GET_VFO_NUMBER(vfo) (ICOM_IS_SECONDARY_VFO(vfo) ? 0x01 : 0x00)
37 
38 #define ICOM_MAX_SPECTRUM_FREQ_RANGES 20
39 
40 /*
41  * defines used by comp_cal_str in rig.c
42  * STR_CAL_LENGTH is the length of the S Meter calibration table
43  * STR_CAL_S0 is the value in dB of the lowest value (not even in table)
44  * MULTIB_SUBCMD allows the dsp rigs ie pro models to use multibyte subcommands for all the extra
45  * parameters and levels.
46  */
47 #define STR_CAL_LENGTH 16
48 #define STR_CAL_S0 -54
49 #define MULTIB_SUBCMD
50 
51 /*
52  * minimal channel caps.
53  * If your rig has better/lesser, don't modify this define but clone it,
54  * so you don't change other rigs.
55  */
56 #define IC_MIN_MEM_CAP {    \
57     .freq = 1,  \
58     .mode = 1,  \
59     .width = 1, \
60 }
61 
62 /*
63  * common channel caps.
64  * If your rig has better/lesser, don't modify this define but clone it,
65  * so you don't change other rigs.
66  */
67 #define IC_MEM_CAP {    \
68     .freq = 1,  \
69     .mode = 1,  \
70     .width = 1, \
71     .tx_freq = 1,   \
72     .tx_mode = 1,   \
73     .tx_width = 1,  \
74     .rptr_offs = 1, \
75 }
76 
77 /*
78  * S-Meter data for uncalibrated rigs
79  */
80 #define UNKNOWN_IC_STR_CAL { 2, {{ 0, -60}, { 255, 60}} }
81 
82 struct ts_sc_list
83 {
84     shortfreq_t ts; /* tuning step */
85     unsigned char sc;   /* sub command */
86 };
87 
88 /**
89  * \brief Pipelined tuning state data structure.
90  */
91 typedef struct rig_pltstate
92 {
93     freq_t freq;
94     freq_t next_freq;
95     rmode_t mode;
96     rmode_t next_mode;
97     pbwidth_t width;
98     pbwidth_t next_width;
99     struct timeval timer_start;
100     struct timeval timer_current;
101     int usleep_time; /* dependent on radio module & serial data rate */
102 } pltstate_t;
103 
104 /**
105  * \brief Mappings between Hamlib and Icom AGC levels
106  */
107 struct icom_agc_level
108 {
109     enum agc_level_e
110     level; /*!< Hamlib AGC level from agc_level_e enum, the last entry should have level -1 */
111     unsigned char
112     icom_level; /*!< Icom AGC level for C_CTL_FUNC (0x16), S_FUNC_AGC (0x12) command */
113 };
114 
115 typedef enum
116 {
117     CMD_PARAM_TYPE_NONE,
118     CMD_PARAM_TYPE_LEVEL,
119     CMD_PARAM_TYPE_PARM,
120     CMD_PARAM_TYPE_TOKEN,
121     CMD_PARAM_TYPE_FUNC,
122 } cmd_param_t;
123 
124 /**
125  * \brief Lookup table item for Icom levels & parms
126  */
127 struct cmdparams
128 {
129     union
130     {
131         setting_t s;    /*!< Level or parm */
132         token_t t;      /*!< TOKEN_BACKEND */
133     } id;
134     cmd_param_t cmdparamtype;  /*!< CMD_PARAM_TYPE_LEVEL or CMD_PARAM_TYPE_PARM */
135     int command;        /*!< CI-V command */
136     int subcmd;         /*!< CI-V Subcommand */
137     int submod;         /*!< Subcommand modifier */
138     int sublen;         /*!< Number of bytes for subcommand extension */
139     unsigned char subext[4]; /*!< Subcommand extension bytes */
140     int dattyp;         /*!< Data type conversion */
141     int datlen;         /*!< Number of data bytes in frame */
142 };
143 
144 /**
145  * \brief Icom-specific spectrum scope capabilities, if supported by the rig.
146  */
147 struct icom_spectrum_scope_caps
148 {
149     int spectrum_line_length; /*!< Number of bytes in a complete spectrum scope line */
150     int single_frame_data_length; /*!< Number of bytes of specrtum data in a single CI-V frame when the data split to multiple frames */
151     int data_level_min; /*!<  */
152     int data_level_max;
153     double signal_strength_min;
154     double signal_strength_max;
155 };
156 
157 /**
158  * \brief Icom spectrum scope edge frequencies, if supported by the rig.
159  *
160  * Last entry should have zeros in all fields.
161  */
162 struct icom_spectrum_edge_frequency_range
163 {
164     int range_id; /*!< ID of the range, as specified in the Icom CI-V manuals. First range ID is 1. */
165     freq_t low_freq; /*!< The low edge frequency if the range in Hz */
166     freq_t high_freq; /*!< The high edge frequency if the range in Hz */
167 };
168 
169 /**
170  * \brief Cached Icom spectrum scope data.
171  *
172  * This data is used to store data for current line of spectrum data as it is being received from the rig.
173  * Caching the data is necessary for handling spectrum scope data split in multiple CI-V frames.
174  */
175 struct icom_spectrum_scope_cache
176 {
177     int id; /*!< Numeric ID of the spectrum scope data stream identifying the VFO/receiver. First ID is zero. Icom rigs with multiple scopes have IDs: 0 = Main, 1 = Sub. */
178     int spectrum_metadata_valid; /*!< Boolean value to track validity of the cached data for spectrum scope. */
179     enum rig_spectrum_mode_e spectrum_mode; /*!< The spectrum mode of the current spectrum scope line being received. */
180     freq_t spectrum_center_freq; /*!< The center frequency of the current spectrum scope line being received */
181     freq_t spectrum_span_freq; /*!< The frequency span of the current spectrum scope line being received */
182     freq_t spectrum_low_edge_freq; /*!< The low edge frequency of the current spectrum scope line being received */
183     freq_t spectrum_high_edge_freq; /*!< The high edge frequency of the current spectrum scope line being received */
184     int spectrum_data_length;     /*!< Number of bytes of 8-bit spectrum data in the data buffer. The amount of data may vary if the rig has multiple spectrum scopes, depending on the scope. */
185     unsigned char *spectrum_data; /*!< Dynamically allocated buffer for raw spectrum data */
186 };
187 
188 struct icom_priv_caps
189 {
190     unsigned char re_civ_addr;  /*!< The remote equipment's default CI-V address */
191     int civ_731_mode; /*!< Off: freqs on 10 digits, On: freqs on 8 digits plus passband setting */
192     // According to the CI-V+ manual the IC-781, IC-R9000, and IC-R7000 can select pas$
193     // The other rigs listed apparently cannot and may need the civ_731_mode=1 which are
194     // 1-706
195     // 2-706MKII
196     // 3-706MKIIG
197     // 4-707
198     // 5-718
199     // 6-746
200     // 7-746PRO
201     // 8-756
202     // 9-756PRO
203     // 10-756PROII
204     // 11-820H
205     // 12-821H
206     // 13-910H
207     // 14-R10
208     // 15-R8500
209     // 16-703
210     // 17-7800
211 
212     int no_xchg; /*!< Off: use VFO XCHG to set other VFO, On: use set VFO to set other VFO */
213     const struct ts_sc_list *ts_sc_list;
214     // the 4 elements above are mandatory
215     // everything below here is optional in the backends
216     int settle_time; /*!< Receiver settle time, in ms */
217     int (*r2i_mode)(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width,
218                     unsigned char *md, signed char *pd); /*!< backend specific code
219                                to convert bandwidth and
220                                mode to cmd tokens */
221     void (*i2r_mode)(RIG *rig, unsigned char md, int pd,
222                      rmode_t *mode, pbwidth_t *width);    /*!< backend specific code
223                                to convert response
224                                tokens to bandwidth and
225                                mode */
226     int antack_len;             /*!< Length of 0x12 cmd may be 3 or 4 bytes as of 2020-01-22 e.g. 7851 */
227     int ant_count;              /*!< Number of antennas */
228     int serial_full_duplex;     /*!< Whether RXD&TXD are not tied together */
229     int offs_len;               /*!< Number of bytes in offset frequency field. 0 defaults to 3 */
230     int serial_USB_echo_check;  /*!< Flag to test USB echo state */
231     int agc_levels_present;     /*!< Flag to indicate that agc_levels array is populated */
232     struct icom_agc_level agc_levels[RIG_AGC_LAST + 1]; /*!< Icom rig-specific AGC levels, the last entry should have level -1 */
233     struct icom_spectrum_scope_caps spectrum_scope_caps; /*!< Icom spectrum scope capabilities, if supported by the rig. Main/Sub scopes in Icom rigs have the same caps. */
234     struct icom_spectrum_edge_frequency_range spectrum_edge_frequency_ranges[ICOM_MAX_SPECTRUM_FREQ_RANGES]; /*!< Icom spectrum scope edge frequencies, if supported by the rig. Last entry should have zeros in all fields. */
235     struct cmdparams *extcmds;  /*!< Pointer to extended operations array */
236 };
237 
238 struct icom_priv_data
239 {
240     unsigned char re_civ_addr;  /*!< The remote equipment's CI-V address */
241     int civ_731_mode; /*!< Off: freqs on 10 digits, On: freqs on 8 digits */
242     int no_xchg; /*!< Off: use VFO XCHG to set other VFO, On: use set VFO to set other VFO */
243     int no_1a_03_cmd; /*!< Rig doesn't tell IF widths */
244     int split_on; /*!< Record split state */
245     pltstate_t *pltstate; /*!< Only on optoscan */
246     int serial_USB_echo_off; /*!< USB is not set to echo */
247     /* we track vfos internally for use with different functions like split */
248     /* this allows queries using CURR_VFO and Main/Sub to behave */
249     vfo_t rx_vfo;
250     vfo_t tx_vfo;
251     freq_t curr_freq; /*!< Our current freq depending on which vfo is selected */
252     freq_t main_freq; /*!< Track last setting of main -- not being used yet */
253     freq_t sub_freq;  /*!< Track last setting of sub -- not being used yet */
254     freq_t maina_freq;
255     freq_t mainb_freq;
256     freq_t suba_freq;
257     freq_t subb_freq;
258     freq_t vfoa_freq; /*!< Track last setting of vfoa -- used to return last freq when ptt is asserted */
259     freq_t vfob_freq; /*!< Track last setting of vfob -- used to return last freq when ptt is asserted */
260     int x25cmdfails; /*!< This will get set if the 0x25 command fails so we try just once */
261     int x26cmdfails; /*!< This will get set if the 0x26 command fails so we try just once */
262     int x1cx03cmdfails; /*!< This will get set if the 0x1c 0x03 command fails so we try just once */
263     int poweron; /*!< To prevent powering on more than once */
264     unsigned char filter; /*!< Current filter selected */
265     unsigned char datamode; /*!< Current datamode */
266     int spectrum_scope_count; /*!< Number of spectrum scopes, calculated from caps */
267     struct icom_spectrum_scope_cache spectrum_scope_cache[HAMLIB_MAX_SPECTRUM_SCOPES]; /*!< Cached Icom spectrum scope data used during reception of the data. The array index must match the scope ID. */
268 };
269 
270 extern const struct ts_sc_list r8500_ts_sc_list[];
271 extern const struct ts_sc_list r8600_ts_sc_list[];
272 extern const struct ts_sc_list ic737_ts_sc_list[];
273 extern const struct ts_sc_list r75_ts_sc_list[];
274 extern const struct ts_sc_list r7100_ts_sc_list[];
275 extern const struct ts_sc_list r9000_ts_sc_list[];
276 extern const struct ts_sc_list r9500_ts_sc_list[];
277 extern const struct ts_sc_list ic756_ts_sc_list[];
278 extern const struct ts_sc_list ic756pro_ts_sc_list[];
279 extern const struct ts_sc_list ic705_ts_sc_list[];
280 extern const struct ts_sc_list ic706_ts_sc_list[];
281 extern const struct ts_sc_list ic7000_ts_sc_list[];
282 extern const struct ts_sc_list ic7100_ts_sc_list[];
283 extern const struct ts_sc_list ic7200_ts_sc_list[];
284 extern const struct ts_sc_list ic7300_ts_sc_list[];
285 extern const struct ts_sc_list ic9700_ts_sc_list[];
286 extern const struct ts_sc_list ic910_ts_sc_list[];
287 extern const struct ts_sc_list ic718_ts_sc_list[];
288 extern const struct ts_sc_list x108g_ts_sc_list[];
289 
290 extern const pbwidth_t
291 rtty_fil[];  /* rtty filter passband width; available on 746pro and 756pro rigs */
292 
293 pbwidth_t icom_get_dsp_flt(RIG *rig, rmode_t mode);
294 
295 int icom_init(RIG *rig);
296 int icom_rig_open(RIG *rig);
297 int icom_rig_close(RIG *rig);
298 int icom_cleanup(RIG *rig);
299 int icom_set_freq(RIG *rig, vfo_t vfo, freq_t freq);
300 int icom_get_freq(RIG *rig, vfo_t vfo, freq_t *freq);
301 int icom_get_rit_new(RIG *rig, vfo_t vfo, shortfreq_t *ts);
302 int icom_set_rit_new(RIG *rig, vfo_t vfo, shortfreq_t ts);
303 int icom_set_xit_new(RIG *rig, vfo_t vfo, shortfreq_t ts);
304 int icom_set_mode_with_data(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width);
305 int icom_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width);
306 int icom_get_mode_with_data(RIG *rig, vfo_t vfo, rmode_t *mode,
307                             pbwidth_t *width);
308 int icom_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width);
309 int icom_get_vfo(RIG *rig, vfo_t *vfo);
310 int icom_set_vfo(RIG *rig, vfo_t vfo);
311 int icom_set_rptr_shift(RIG *rig, vfo_t vfo, rptr_shift_t rptr_shift);
312 int icom_get_rptr_shift(RIG *rig, vfo_t vfo, rptr_shift_t *rptr_shift);
313 int icom_set_rptr_offs(RIG *rig, vfo_t vfo, shortfreq_t rptr_offs);
314 int icom_get_rptr_offs(RIG *rig, vfo_t vfo, shortfreq_t *rptr_offs);
315 int icom_set_split_freq(RIG *rig, vfo_t vfo, freq_t tx_freq);
316 int icom_get_split_freq(RIG *rig, vfo_t vfo, freq_t *tx_freq);
317 int icom_set_split_mode(RIG *rig, vfo_t vfo, rmode_t tx_mode,
318                         pbwidth_t tx_width);
319 int icom_get_split_mode(RIG *rig, vfo_t vfo, rmode_t *tx_mode,
320                         pbwidth_t *tx_width);
321 int icom_set_split_freq_mode(RIG *rig, vfo_t vfo, freq_t tx_freq,
322                              rmode_t tx_mode, pbwidth_t tx_width);
323 int icom_get_split_freq_mode(RIG *rig, vfo_t vfo, freq_t *tx_freq,
324                              rmode_t *tx_mode, pbwidth_t *tx_width);
325 int icom_set_split_vfo(RIG *rig, vfo_t vfo, split_t split, vfo_t tx_vfo);
326 int icom_get_split_vfo(RIG *rig, vfo_t vfo, split_t *split, vfo_t *tx_vfo);
327 int icom_mem_get_split_vfo(RIG *rig, vfo_t vfo, split_t *split, vfo_t *tx_vfo);
328 int icom_set_ts(RIG *rig, vfo_t vfo, shortfreq_t ts);
329 int icom_get_ts(RIG *rig, vfo_t vfo, shortfreq_t *ts);
330 int icom_set_ptt(RIG *rig, vfo_t vfo, ptt_t ptt);
331 int icom_get_ptt(RIG *rig, vfo_t vfo, ptt_t *ptt);
332 int icom_get_dcd(RIG *rig, vfo_t vfo, dcd_t *dcd);
333 int icom_set_ctcss_tone(RIG *rig, vfo_t vfo, tone_t tone);
334 int icom_get_ctcss_tone(RIG *rig, vfo_t vfo, tone_t *tone);
335 int icom_set_ctcss_sql(RIG *rig, vfo_t vfo, tone_t tone);
336 int icom_get_ctcss_sql(RIG *rig, vfo_t vfo, tone_t *tone);
337 int icom_set_dcs_code(RIG *rig, vfo_t vfo, tone_t code);
338 int icom_get_dcs_code(RIG *rig, vfo_t vfo, tone_t *code);
339 int icom_set_dcs_sql(RIG *rig, vfo_t vfo, tone_t code);
340 int icom_get_dcs_sql(RIG *rig, vfo_t vfo, tone_t *code);
341 int icom_set_bank(RIG *rig, vfo_t vfo, int bank);
342 int icom_set_mem(RIG *rig, vfo_t vfo, int ch);
343 int icom_vfo_op(RIG *rig, vfo_t vfo, vfo_op_t op);
344 int icom_scan(RIG *rig, vfo_t vfo, scan_t scan, int ch);
345 int icom_set_level(RIG *rig, vfo_t vfo, setting_t level, value_t val);
346 int icom_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val);
347 int icom_set_ext_level(RIG *rig, vfo_t vfo, token_t token, value_t val);
348 int icom_get_ext_level(RIG *rig, vfo_t vfo, token_t token, value_t *val);
349 int icom_set_func(RIG *rig, vfo_t vfo, setting_t func, int status);
350 int icom_get_func(RIG *rig, vfo_t vfo, setting_t func, int *status);
351 int icom_set_ext_func(RIG *rig, vfo_t vfo, token_t token, int status);
352 int icom_get_ext_func(RIG *rig, vfo_t vfo, token_t token, int *status);
353 int icom_set_parm(RIG *rig, setting_t parm, value_t val);
354 int icom_get_parm(RIG *rig, setting_t parm, value_t *val);
355 int icom_set_ext_parm(RIG *rig, token_t token, value_t val);
356 int icom_get_ext_parm(RIG *rig, token_t token, value_t *val);
357 int icom_set_ext_cmd(RIG *rig, vfo_t vfo, token_t token, value_t val);
358 int icom_get_ext_cmd(RIG *rig, vfo_t vfo, token_t token, value_t *val);
359 int icom_set_conf(RIG *rig, token_t token, const char *val);
360 int icom_get_conf(RIG *rig, token_t token, char *val);
361 int icom_set_powerstat(RIG *rig, powerstat_t status);
362 int icom_get_powerstat(RIG *rig, powerstat_t *status);
363 int icom_set_ant(RIG *rig, vfo_t vfo, ant_t ant, value_t option);
364 int icom_get_ant(RIG *rig, vfo_t vfo, ant_t ant, value_t *option,
365                  ant_t *ant_curr, ant_t *ant_tx, ant_t *ant_rx);
366 int icom_decode_event(RIG *rig);
367 int icom_power2mW(RIG *rig, unsigned int *mwpower, float power, freq_t freq,
368                   rmode_t mode);
369 int icom_mW2power(RIG *rig, float *power, unsigned int mwpower, freq_t freq,
370                   rmode_t mode);
371 int icom_send_morse(RIG *rig, vfo_t vfo, const char *msg);
372 int icom_stop_morse(RIG *rig, vfo_t vfo);
373 int icom_send_voice_mem(RIG *rig, vfo_t vfo, int bank);
374 /* Exposed routines */
375 int icom_get_split_vfos(RIG *rig, vfo_t *rx_vfo, vfo_t *tx_vfo);
376 int icom_set_raw(RIG *rig, int cmd, int subcmd, int subcmdbuflen,
377                  unsigned char *subcmdbuf, int val_bytes, int val);
378 int icom_get_raw_buf(RIG *rig, int cmd, int subcmd, int subcmdbuflen,
379                      unsigned char *subcmdbuf, int *reslen, unsigned char *res);
380 int icom_get_raw(RIG *rig, int cmd, int subcmd, int subcmdbuflen,
381                  unsigned char *subcmdbuf, int *val);
382 int icom_set_level_raw(RIG *rig, setting_t level, int cmd, int subcmd,
383                        int subcmdbuflen, unsigned char *subcmdbuf, int val_bytes, value_t val);
384 int icom_get_level_raw(RIG *rig, setting_t level, int cmd, int subcmd,
385                        int subcmdbuflen, unsigned char *subcmdbuf, value_t *val);
386 int icom_set_custom_parm(RIG *rig, int parmbuflen, unsigned char *parmbuf,
387                          int val_bytes, int value);
388 int icom_get_custom_parm(RIG *rig, int parmbuflen, unsigned char *parmbuf,
389                          int *value);
390 int icom_set_custom_parm_time(RIG *rig, int parmbuflen, unsigned char *parmbuf,
391                               int seconds);
392 int icom_get_custom_parm_time(RIG *rig, int parmbuflen, unsigned char *parmbuf,
393                               int *seconds);
394 int icom_get_freq_range(RIG *rig);
395 int icom_is_async_frame(RIG *rig, int frame_len, const unsigned char *frame);
396 int icom_process_async_frame(RIG *rig, int frame_len, const unsigned char *frame);
397 
398 extern const struct confparams icom_cfg_params[];
399 extern const struct confparams icom_ext_levels[];
400 extern const struct confparams icom_ext_funcs[];
401 extern const struct confparams icom_ext_parms[];
402 extern const struct cmdparams icom_ext_cmds[];
403 
404 extern const struct rig_caps ic703_caps;
405 extern const struct rig_caps ic705_caps;
406 extern const struct rig_caps ic706_caps;
407 extern const struct rig_caps ic706mkii_caps;
408 extern const struct rig_caps ic706mkiig_caps;
409 extern const struct rig_caps ic707_caps;
410 extern const struct rig_caps ic718_caps;
411 extern const struct rig_caps ic725_caps;
412 extern const struct rig_caps ic726_caps;
413 extern const struct rig_caps ic728_caps;
414 extern const struct rig_caps ic729_caps;
415 extern const struct rig_caps ic735_caps;
416 extern const struct rig_caps ic736_caps;
417 extern const struct rig_caps ic737_caps;
418 extern const struct rig_caps ic738_caps;
419 extern const struct rig_caps ic746_caps;
420 extern const struct rig_caps ic7410_caps;
421 extern const struct rig_caps ic746pro_caps;
422 extern const struct rig_caps ic756_caps;
423 extern const struct rig_caps ic756pro_caps;
424 extern const struct rig_caps ic756pro2_caps;
425 extern const struct rig_caps ic756pro3_caps;
426 extern const struct rig_caps ic751_caps;
427 extern const struct rig_caps ic7600_caps;
428 extern const struct rig_caps ic7610_caps;
429 extern const struct rig_caps ic761_caps;
430 extern const struct rig_caps ic765_caps;
431 extern const struct rig_caps ic7700_caps;
432 extern const struct rig_caps ic775_caps;
433 extern const struct rig_caps ic78_caps;
434 extern const struct rig_caps ic7800_caps;
435 extern const struct rig_caps ic785x_caps;
436 extern const struct rig_caps ic7000_caps;
437 extern const struct rig_caps ic7100_caps;
438 extern const struct rig_caps ic7200_caps;
439 extern const struct rig_caps ic7300_caps;
440 extern const struct rig_caps ic781_caps;
441 extern const struct rig_caps ic820h_caps;
442 extern const struct rig_caps ic821h_caps;
443 extern const struct rig_caps ic910_caps;
444 extern const struct rig_caps ic9100_caps;
445 extern const struct rig_caps ic970_caps;
446 extern const struct rig_caps ic9700_caps;
447 extern const struct rig_caps icrx7_caps;
448 extern const struct rig_caps icr10_caps;
449 extern const struct rig_caps icr20_caps;
450 extern const struct rig_caps icr6_caps;
451 extern const struct rig_caps icr71_caps;
452 extern const struct rig_caps icr72_caps;
453 extern const struct rig_caps icr75_caps;
454 extern const struct rig_caps icr7000_caps;
455 extern const struct rig_caps icr7100_caps;
456 extern const struct rig_caps icr8500_caps;
457 extern const struct rig_caps icr9000_caps;
458 extern const struct rig_caps icr9500_caps;
459 extern const struct rig_caps ic271_caps;
460 extern const struct rig_caps ic275_caps;
461 extern const struct rig_caps ic471_caps;
462 extern const struct rig_caps ic475_caps;
463 extern const struct rig_caps ic575_caps;
464 extern const struct rig_caps ic1275_caps;
465 
466 extern const struct rig_caps omnivip_caps;
467 extern const struct rig_caps delta2_caps;
468 
469 extern const struct rig_caps os456_caps;
470 extern const struct rig_caps os535_caps;
471 
472 extern const struct rig_caps ic92d_caps;
473 extern const struct rig_caps id1_caps;
474 extern const struct rig_caps id31_caps;
475 extern const struct rig_caps id51_caps;
476 extern const struct rig_caps id4100_caps;
477 extern const struct rig_caps id5100_caps;
478 extern const struct rig_caps ic2730_caps;
479 
480 extern const struct rig_caps perseus_caps;
481 
482 extern const struct rig_caps x108g_caps;
483 
484 extern const struct rig_caps icr8600_caps;
485 extern const struct rig_caps icr30_caps;
486 
487 #endif /* _ICOM_H */
488