kopia lustrzana https://github.com/Hamlib/Hamlib
added get_info
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@858 7ae35d74-ebe9-4afe-98af-79ac388436b8Hamlib-1.1.3
rodzic
3b717dd886
commit
8c026c2b69
|
@ -194,6 +194,15 @@ Set memory channel data. does not work yet.
|
||||||
.TP
|
.TP
|
||||||
.B e, get_channel
|
.B e, get_channel
|
||||||
Get memory channel data.
|
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
|
.SH RETURN VALUE
|
||||||
rigctl exits with:
|
rigctl exits with:
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
* It takes commands in interactive mode as well as
|
* It takes commands in interactive mode as well as
|
||||||
* from command line options.
|
* 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
|
* 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(get_channel);
|
||||||
declare_proto_rig(set_trn);
|
declare_proto_rig(set_trn);
|
||||||
declare_proto_rig(get_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.
|
* TODO: add missing rig_set_/rig_get_: [rx]it, ant, sql, dcd, etc.
|
||||||
* NB: 'q' 'Q' '?' are reserved by interactive mode interface
|
* NB: 'q' 'Q' '?' are reserved by interactive mode interface
|
||||||
|
*
|
||||||
|
* Available letters: -.-------JK-----*-----W-YZ
|
||||||
*/
|
*/
|
||||||
struct test_table test_list[] = {
|
struct test_table test_list[] = {
|
||||||
{ 'F', "set_freq", set_freq, ARG_IN, "Frequency" },
|
{ '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', "set_trn", set_trn, ARG_IN, "Transceive" },
|
||||||
{ 'a', "get_trn", get_trn, ARG_OUT, "Transceive" },
|
{ 'a', "get_trn", get_trn, ARG_OUT, "Transceive" },
|
||||||
{ 'B', "set_bank", set_bank, ARG_IN, "Bank" },
|
{ 'B', "set_bank", set_bank, ARG_IN, "Bank" },
|
||||||
|
{ '_', "get_info", get_info, ARG_OUT, "Info" },
|
||||||
{ '2', "power2mW", power2mW },
|
{ '2', "power2mW", power2mW },
|
||||||
{ 0x00, "", NULL },
|
{ 0x00, "", NULL },
|
||||||
|
|
||||||
|
@ -1164,6 +1168,17 @@ declare_proto_rig(get_trn)
|
||||||
return status;
|
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 {
|
static struct {
|
||||||
|
|
Ładowanie…
Reference in New Issue