2007-11-11 23:03:52 +00:00
|
|
|
/*
|
2010-05-28 19:47:35 +00:00
|
|
|
* rigctl_parse.h - (C) Stephane Fillod 2000-2010
|
2007-11-11 23:03:52 +00:00
|
|
|
*
|
|
|
|
* This program test/control a radio using Hamlib.
|
2011-08-22 01:51:06 +00:00
|
|
|
* It takes commands in interactive mode as well as
|
2007-11-11 23:03:52 +00:00
|
|
|
* from command line options.
|
|
|
|
*
|
|
|
|
*
|
2011-08-22 01:51:06 +00:00
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
*
|
2007-11-11 23:03:52 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef RIGCTL_PARSE_H
|
|
|
|
#define RIGCTL_PARSE_H
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <hamlib/rig.h>
|
|
|
|
|
2021-03-16 21:39:35 +00:00
|
|
|
#define RIGCTL_PARSE_END 1
|
|
|
|
#define RIGCTL_PARSE_ERROR 2
|
|
|
|
|
2011-08-22 01:51:06 +00:00
|
|
|
/*
|
2007-11-11 23:03:52 +00:00
|
|
|
* external prototype
|
|
|
|
*/
|
|
|
|
|
2017-08-09 18:09:55 +00:00
|
|
|
int dumpcaps(RIG *, FILE *);
|
2023-06-03 21:50:30 +00:00
|
|
|
int dumpstate(RIG *, FILE *);
|
2017-08-09 18:09:55 +00:00
|
|
|
int dumpconf(RIG *, FILE *);
|
2007-11-11 23:03:52 +00:00
|
|
|
|
2011-08-22 01:51:06 +00:00
|
|
|
/*
|
2007-11-11 23:03:52 +00:00
|
|
|
* Prototypes
|
|
|
|
*/
|
2008-01-05 18:13:12 +00:00
|
|
|
void usage_rig(FILE *);
|
2007-11-11 23:03:52 +00:00
|
|
|
void version();
|
|
|
|
void list_models();
|
2017-08-09 18:09:55 +00:00
|
|
|
int dump_chan(FILE *, RIG *, channel_t *);
|
2007-11-11 23:03:52 +00:00
|
|
|
int print_conf_list(const struct confparams *cfp, rig_ptr_t data);
|
|
|
|
int set_conf(RIG *my_rig, char *conf_parms);
|
|
|
|
|
2018-03-12 16:24:12 +00:00
|
|
|
typedef void (*sync_cb_t)(int);
|
2019-08-25 07:58:19 +00:00
|
|
|
int rigctl_parse(RIG *my_rig, FILE *fin, FILE *fout, char *argv[], int argc, sync_cb_t sync_cb,
|
2020-05-01 17:03:54 +00:00
|
|
|
int interactive, int prompt, int * vfo_mode, char send_cmd_term,
|
2022-02-24 23:13:18 +00:00
|
|
|
int * ext_resp_ptr, char * resp_sep_ptr, int use_password);
|
2007-11-11 23:03:52 +00:00
|
|
|
|
2017-08-09 18:09:55 +00:00
|
|
|
#endif /* RIGCTL_PARSE_H */
|