2003-11-16 16:58:35 +00:00
|
|
|
/*
|
|
|
|
* Hamlib Interface - sprintf toolbox header
|
2008-05-23 14:26:09 +00:00
|
|
|
* Copyright (c) 2003-2008 by Stephane Fillod
|
2003-11-16 16:58:35 +00:00
|
|
|
*
|
|
|
|
*
|
2011-08-22 01:51:06 +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.
|
2003-11-16 16:58:35 +00:00
|
|
|
*
|
2011-08-22 01:51:06 +00:00
|
|
|
* This library is distributed in the hope that it will be useful,
|
2003-11-16 16:58:35 +00:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2011-08-22 01:51:06 +00:00
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
2003-11-16 16:58:35 +00:00
|
|
|
*
|
2011-08-22 01:51:06 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2003-11-16 16:58:35 +00:00
|
|
|
* License along with this library; if not, write to the Free Software
|
2011-08-22 01:51:06 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
2003-11-16 16:58:35 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _SPRINTFLST_H
|
|
|
|
#define _SPRINTFLST_H 1
|
|
|
|
|
|
|
|
#include <hamlib/rig.h>
|
2020-12-03 19:40:34 +00:00
|
|
|
#include <hamlib/rotator.h>
|
2003-11-16 16:58:35 +00:00
|
|
|
|
2020-09-06 21:45:52 +00:00
|
|
|
#define SPRINTF_MAX_SIZE 512
|
2003-11-16 16:58:35 +00:00
|
|
|
|
|
|
|
__BEGIN_DECLS
|
|
|
|
|
2020-11-24 19:51:10 +00:00
|
|
|
extern int rig_sprintf_mode(char *str, rmode_t mode);
|
|
|
|
extern int rig_sprintf_vfo(char *str, vfo_t vfo);
|
|
|
|
extern int rig_sprintf_ant(char *str, ant_t ant);
|
|
|
|
extern int rig_sprintf_func(char *str, setting_t func);
|
|
|
|
extern int rot_sprintf_func(char *str, setting_t func);
|
|
|
|
extern int rig_sprintf_level(char *str, setting_t level);
|
|
|
|
extern int rot_sprintf_level(char *str, setting_t level);
|
|
|
|
extern int amp_sprintf_level(char *str, setting_t level);
|
|
|
|
extern int sprintf_level_ext(char *str, const struct confparams *extlevels);
|
|
|
|
extern int rig_sprintf_level_gran(char *str, setting_t level, const gran_t *gran);
|
|
|
|
extern int rot_sprintf_level_gran(char *str, setting_t level, const gran_t *gran);
|
|
|
|
extern int rig_sprintf_parm(char *str, setting_t parm);
|
|
|
|
extern int rot_sprintf_parm(char *str, setting_t parm);
|
|
|
|
extern int rig_sprintf_parm_gran(char *str, setting_t parm, const gran_t *gran);
|
|
|
|
extern int rot_sprintf_parm_gran(char *str, setting_t parm, const gran_t *gran);
|
|
|
|
extern int rig_sprintf_vfop(char *str, vfo_op_t op);
|
|
|
|
extern int rig_sprintf_scan(char *str, scan_t rscan);
|
2020-12-03 19:40:34 +00:00
|
|
|
extern int rot_sprintf_status(char *str, rot_status_t status);
|
2019-05-30 06:37:49 +00:00
|
|
|
extern char *get_rig_conf_type(enum rig_conf_e type);
|
2020-12-02 20:35:38 +00:00
|
|
|
int print_ext_param(const struct confparams *cfp, rig_ptr_t ptr);
|
2003-11-16 16:58:35 +00:00
|
|
|
|
|
|
|
__END_DECLS
|
|
|
|
|
|
|
|
#endif /* _SPRINTFLST_H */
|