kopia lustrzana https://github.com/Hamlib/Hamlib
Add send_voice_mem to kenwood.c and TS890
rodzic
44c9f83ae0
commit
a9d098bab3
|
@ -5300,6 +5300,20 @@ int kenwood_stop_morse(RIG *rig, vfo_t vfo)
|
||||||
RETURNFUNC(kenwood_transaction(rig, "KY0", NULL, 0));
|
RETURNFUNC(kenwood_transaction(rig, "KY0", NULL, 0));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* kenwood_send_voice
|
||||||
|
*/
|
||||||
|
int kenwood_send_voice_mem(RIG *rig, vfo_t vfo, int bank)
|
||||||
|
{
|
||||||
|
char cmd[16];
|
||||||
|
ENTERFUNC;
|
||||||
|
|
||||||
|
SNPRINTF(cmd, sizeof(cmd), "PB01");
|
||||||
|
kenwood_transaction(rig, cmd, NULL, 0);
|
||||||
|
SNPRINTF(cmd, sizeof(cmd), "PB1%d", bank);
|
||||||
|
RETURNFUNC(kenwood_transaction(rig, cmd, NULL, 0));
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* kenwood_vfo_op
|
* kenwood_vfo_op
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
#include "token.h"
|
#include "token.h"
|
||||||
#include "idx_builtin.h"
|
#include "idx_builtin.h"
|
||||||
|
|
||||||
#define BACKEND_VER "20230430"
|
#define BACKEND_VER "20230517"
|
||||||
|
|
||||||
#define EOM_KEN ';'
|
#define EOM_KEN ';'
|
||||||
#define EOM_TH '\r'
|
#define EOM_TH '\r'
|
||||||
|
@ -254,6 +254,7 @@ int kenwood_scan(RIG *rig, vfo_t vfo, scan_t scan, int ch);
|
||||||
const char *kenwood_get_info(RIG *rig);
|
const char *kenwood_get_info(RIG *rig);
|
||||||
int kenwood_get_id(RIG *rig, char *buf);
|
int kenwood_get_id(RIG *rig, char *buf);
|
||||||
int kenwood_get_if(RIG *rig);
|
int kenwood_get_if(RIG *rig);
|
||||||
|
int kenwood_send_voice_mem(RIG *rig, vfo_t vfo, int bank);
|
||||||
|
|
||||||
int kenwood_set_trn(RIG *rig, int trn);
|
int kenwood_set_trn(RIG *rig, int trn);
|
||||||
int kenwood_get_trn(RIG *rig, int *trn);
|
int kenwood_get_trn(RIG *rig, int *trn);
|
||||||
|
|
|
@ -585,6 +585,7 @@ const struct rig_caps ts890s_caps =
|
||||||
.get_ant = kenwood_get_ant,
|
.get_ant = kenwood_get_ant,
|
||||||
.send_morse = kenwood_send_morse,
|
.send_morse = kenwood_send_morse,
|
||||||
.stop_morse = kenwood_stop_morse,
|
.stop_morse = kenwood_stop_morse,
|
||||||
|
.send_voice_mem = kenwood_send_voice_mem,
|
||||||
.wait_morse = rig_wait_morse,
|
.wait_morse = rig_wait_morse,
|
||||||
.scan = kenwood_scan, /* not working, invalid arguments using rigctl; kenwood_scan does only support on/off and not tone and CTCSS scan */
|
.scan = kenwood_scan, /* not working, invalid arguments using rigctl; kenwood_scan does only support on/off and not tone and CTCSS scan */
|
||||||
.has_set_level = TS890_LEVEL_SET,
|
.has_set_level = TS890_LEVEL_SET,
|
||||||
|
|
Ładowanie…
Reference in New Issue