export convenience function get_kenwood_level, so they can be use by other backends

git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1916 7ae35d74-ebe9-4afe-98af-79ac388436b8
Hamlib-1.2.4
Joop Stakenborg, PG4I 2005-02-02 20:05:03 +00:00
rodzic b1f24e501a
commit 261f9e10d9
2 zmienionych plików z 6 dodań i 3 usunięć

Wyświetl plik

@ -2,7 +2,7 @@
* Hamlib Kenwood backend - main file
* Copyright (c) 2000-2005 by Stephane Fillod and others
*
* $Id: kenwood.c,v 1.84 2005-02-02 19:32:16 pa4tu Exp $
* $Id: kenwood.c,v 1.85 2005-02-02 20:04:58 pa4tu Exp $
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License as
@ -637,7 +637,7 @@ int kenwood_set_level(RIG *rig, vfo_t vfo, setting_t level, value_t val)
/*
* assumes f!=NULL
*/
static int get_kenwood_level(RIG *rig, const char *cmd, int cmd_len, float *f)
int get_kenwood_level(RIG *rig, const char *cmd, int cmd_len, float *f)
{
unsigned char lvlbuf[50];
int lvl_len, retval;

Wyświetl plik

@ -2,7 +2,7 @@
* Hamlib Kenwood backend - main header
* Copyright (c) 2000-2004 by Stephane Fillod
*
* $Id: kenwood.h,v 1.38 2004-11-27 13:19:56 fillods Exp $
* $Id: kenwood.h,v 1.39 2005-02-02 20:05:03 pa4tu Exp $
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License as
@ -70,6 +70,9 @@ const char* kenwood_get_info(RIG *rig);
int kenwood_set_trn(RIG *rig, int trn);
int kenwood_get_trn(RIG *rig, int *trn);
/* only use if returned string has length 6, e.g. 'SQ011;' */
int get_kenwood_level(RIG *rig, const char *cmd, int cmd_len, float *f);
extern const struct rig_caps ts950sdx_caps;
extern const struct rig_caps ts50s_caps;
extern const struct rig_caps ts140_caps;