mirror of
https://github.com/Hamlib/Hamlib.git
synced 2024-09-21 18:37:18 +00:00
added get_info
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@858 7ae35d74-ebe9-4afe-98af-79ac388436b8
This commit is contained in:
parent
3b717dd886
commit
8c026c2b69
@ -194,6 +194,15 @@ Set memory channel data. does not work yet.
|
||||
.TP
|
||||
.B e, get_channel
|
||||
Get memory channel data.
|
||||
.TP
|
||||
.B A, set_trn
|
||||
Set transceive mode (reporting event).
|
||||
.TP
|
||||
.B a, get_trn
|
||||
Get transceive mode (reporting event).
|
||||
.TP
|
||||
.B _, get_info
|
||||
Get misc information on the rig.
|
||||
|
||||
.SH RETURN VALUE
|
||||
rigctl exits with:
|
||||
|
@ -7,7 +7,7 @@
|
||||
* It takes commands in interactive mode as well as
|
||||
* from command line options.
|
||||
*
|
||||
* $Id: rigctl.c,v 1.25 2001-12-26 23:34:56 fillods Exp $
|
||||
* $Id: rigctl.c,v 1.26 2002-01-09 23:09:10 fillods Exp $
|
||||
*
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
@ -133,6 +133,7 @@ declare_proto_rig(set_channel);
|
||||
declare_proto_rig(get_channel);
|
||||
declare_proto_rig(set_trn);
|
||||
declare_proto_rig(get_trn);
|
||||
declare_proto_rig(get_info);
|
||||
|
||||
|
||||
|
||||
@ -141,6 +142,8 @@ declare_proto_rig(get_trn);
|
||||
*
|
||||
* TODO: add missing rig_set_/rig_get_: [rx]it, ant, sql, dcd, etc.
|
||||
* NB: 'q' 'Q' '?' are reserved by interactive mode interface
|
||||
*
|
||||
* Available letters: -.-------JK-----*-----W-YZ
|
||||
*/
|
||||
struct test_table test_list[] = {
|
||||
{ 'F', "set_freq", set_freq, ARG_IN, "Frequency" },
|
||||
@ -182,6 +185,7 @@ struct test_table test_list[] = {
|
||||
{ 'A', "set_trn", set_trn, ARG_IN, "Transceive" },
|
||||
{ 'a', "get_trn", get_trn, ARG_OUT, "Transceive" },
|
||||
{ 'B', "set_bank", set_bank, ARG_IN, "Bank" },
|
||||
{ '_', "get_info", get_info, ARG_OUT, "Info" },
|
||||
{ '2', "power2mW", power2mW },
|
||||
{ 0x00, "", NULL },
|
||||
|
||||
@ -1164,6 +1168,17 @@ declare_proto_rig(get_trn)
|
||||
return status;
|
||||
}
|
||||
|
||||
declare_proto_rig(get_info)
|
||||
{
|
||||
const char *s;
|
||||
|
||||
s = rig_get_info(rig);
|
||||
if (interactive)
|
||||
printf("%s: ", cmd->arg1);
|
||||
printf("%s\n", s ? s : "None");
|
||||
return RIG_OK;
|
||||
}
|
||||
|
||||
/* ********************************************************** */
|
||||
|
||||
static struct {
|
||||
|
Loading…
Reference in New Issue
Block a user