Add send_voice_mem to kenwood.c and TS890

pull/1297/head
Mike Black W9MDB 2023-05-17 22:41:29 -05:00
rodzic 44c9f83ae0
commit a9d098bab3
3 zmienionych plików z 17 dodań i 1 usunięć

Wyświetl plik

@ -5300,6 +5300,20 @@ int kenwood_stop_morse(RIG *rig, vfo_t vfo)
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
*/

Wyświetl plik

@ -28,7 +28,7 @@
#include "token.h"
#include "idx_builtin.h"
#define BACKEND_VER "20230430"
#define BACKEND_VER "20230517"
#define EOM_KEN ';'
#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);
int kenwood_get_id(RIG *rig, char *buf);
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_get_trn(RIG *rig, int *trn);

Wyświetl plik

@ -585,6 +585,7 @@ const struct rig_caps ts890s_caps =
.get_ant = kenwood_get_ant,
.send_morse = kenwood_send_morse,
.stop_morse = kenwood_stop_morse,
.send_voice_mem = kenwood_send_voice_mem,
.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 */
.has_set_level = TS890_LEVEL_SET,