2004-05-02 17:13:33 +00:00
|
|
|
/*
|
|
|
|
* Hamlib Kenwood backend - IC-10 header
|
|
|
|
* Copyright (c) 2000-2004 by Stephane Fillod
|
|
|
|
*
|
|
|
|
*
|
2011-08-21 02:20:21 +00:00
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
2004-05-02 17:13:33 +00:00
|
|
|
*
|
2011-08-21 02:20:21 +00:00
|
|
|
* This library is distributed in the hope that it will be useful,
|
2004-05-02 17:13:33 +00:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2011-08-21 02:20:21 +00:00
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
2004-05-02 17:13:33 +00:00
|
|
|
*
|
2011-08-21 02:20:21 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2004-05-02 17:13:33 +00:00
|
|
|
* License along with this library; if not, write to the Free Software
|
2011-08-21 02:20:21 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
2004-05-02 17:13:33 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _IC10_H
|
|
|
|
#define _IC10_H 1
|
|
|
|
|
2012-02-03 02:10:37 +00:00
|
|
|
#define IC10_VER "0.6.1"
|
2005-04-03 20:23:19 +00:00
|
|
|
|
2011-03-07 23:36:41 +00:00
|
|
|
int ic10_cmd_trim (char *data, int data_len);
|
2004-06-13 12:38:41 +00:00
|
|
|
int ic10_transaction (RIG *rig, const char *cmd, int cmd_len, char *data, int *data_len);
|
2004-05-02 17:13:33 +00:00
|
|
|
int ic10_set_vfo(RIG *rig, vfo_t vfo);
|
|
|
|
int ic10_get_vfo(RIG *rig, vfo_t *vfo);
|
|
|
|
int ic10_set_split_vfo(RIG *rig, vfo_t vfo , split_t split, vfo_t txvfo);
|
|
|
|
int ic10_get_split_vfo(RIG *rig, vfo_t vfo , split_t *split, vfo_t *txvfo);
|
|
|
|
int ic10_get_freq(RIG *rig, vfo_t vfo, freq_t *freq);
|
2004-06-13 12:38:41 +00:00
|
|
|
int ic10_set_freq(RIG *rig, vfo_t vfo, freq_t freq);
|
|
|
|
int ic10_set_ant(RIG *rig, vfo_t vfo, ant_t ant);
|
|
|
|
int ic10_get_ant(RIG *rig, vfo_t vfo, ant_t *ant);
|
|
|
|
int ic10_set_func(RIG *rig, vfo_t vfo, setting_t func, int status);
|
|
|
|
int ic10_get_func(RIG *rig, vfo_t vfo, setting_t func, int *status);
|
|
|
|
int ic10_set_parm(RIG *rig, setting_t parm, value_t val);
|
|
|
|
int ic10_get_parm(RIG *rig, setting_t parm, value_t *val);
|
2004-05-02 17:13:33 +00:00
|
|
|
int ic10_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width);
|
2004-06-13 12:38:41 +00:00
|
|
|
int ic10_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width);
|
2004-05-02 17:13:33 +00:00
|
|
|
int ic10_get_ptt(RIG *rig, vfo_t vfo, ptt_t *ptt);
|
2004-06-13 12:38:41 +00:00
|
|
|
int ic10_set_ptt(RIG *rig, vfo_t vfo, ptt_t ptt);
|
|
|
|
int ic10_set_mem(RIG *rig, vfo_t vfo, int ch);
|
2004-05-02 17:13:33 +00:00
|
|
|
int ic10_get_mem(RIG *rig, vfo_t vfo, int *ch);
|
|
|
|
int ic10_set_channel(RIG *rig, const channel_t *chan);
|
|
|
|
int ic10_get_channel(RIG *rig, channel_t *chan);
|
2004-06-13 12:38:41 +00:00
|
|
|
int ic10_set_powerstat(RIG *rig, powerstat_t status);
|
|
|
|
int ic10_get_powerstat(RIG *rig, powerstat_t *status);
|
|
|
|
int ic10_set_trn(RIG *rig, int trn);
|
|
|
|
int ic10_get_trn(RIG *rig, int *trn);
|
|
|
|
int ic10_vfo_op(RIG *rig, vfo_t vfo, vfo_op_t op);
|
|
|
|
int ic10_scan(RIG * rig, vfo_t vfo, scan_t scan, int ch);
|
|
|
|
const char* ic10_get_info(RIG *rig);
|
2004-05-02 17:13:33 +00:00
|
|
|
int ic10_decode_event (RIG *rig);
|
|
|
|
|
|
|
|
#define IC10_CHANNEL_CAPS \
|
|
|
|
.freq=1,\
|
|
|
|
.tx_freq=1,\
|
|
|
|
.mode=1,\
|
|
|
|
.tx_mode=1
|
|
|
|
|
|
|
|
#endif /* _IC10_H */
|