kopia lustrzana https://github.com/Hamlib/Hamlib
Add set_ptt for kachina 505dsp
rodzic
c31497918f
commit
08aac88377
|
@ -62,7 +62,7 @@ struct rig_caps k505dsp_caps =
|
|||
.copyright = "LGPL",
|
||||
.status = RIG_STATUS_STABLE,
|
||||
.rig_type = RIG_TYPE_COMPUTER,
|
||||
.ptt_type = RIG_PTT_NONE,
|
||||
.ptt_type = RIG_PTT_RIG,
|
||||
.dcd_type = RIG_DCD_RIG,
|
||||
.port_type = RIG_PORT_SERIAL,
|
||||
.serial_rate_min = 9600,
|
||||
|
@ -151,6 +151,7 @@ struct rig_caps k505dsp_caps =
|
|||
|
||||
.set_freq = kachina_set_freq,
|
||||
.set_mode = kachina_set_mode,
|
||||
.set_ptt = kachina_set_ptt,
|
||||
|
||||
.get_level = kachina_get_level,
|
||||
.hamlib_check_rig_caps = HAMLIB_CHECK_RIG_CAPS
|
||||
|
|
|
@ -169,12 +169,16 @@ int kachina_set_freq(RIG *rig, vfo_t vfo, freq_t freq)
|
|||
/* transmit frequency */
|
||||
retval = kachina_trans_n(rig, 'T', (char *) freqbuf, 4);
|
||||
|
||||
if (retval != RIG_OK)
|
||||
{
|
||||
return retval;
|
||||
}
|
||||
return retval;
|
||||
}
|
||||
|
||||
return RIG_OK;
|
||||
int kachina_set_ptt(RIG *rig, vfo_t vfo, ptt_t ptt)
|
||||
{
|
||||
char c = ptt == 0 ? 0x00 : 0x01;
|
||||
|
||||
int retval = kachina_trans_n(rig, 'X', &c , 1);
|
||||
|
||||
return retval;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -24,10 +24,11 @@
|
|||
|
||||
#include <hamlib/rig.h>
|
||||
|
||||
#define BACKEND_VER "20061007"
|
||||
#define BACKEND_VER "20240420"
|
||||
|
||||
int kachina_set_freq(RIG *rig, vfo_t vfo, freq_t freq);
|
||||
int kachina_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width);
|
||||
int kachina_set_ptt(RIG *rig, vfo_t vfo, ptt_t ptt);
|
||||
int kachina_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val);
|
||||
|
||||
extern struct rig_caps k505dsp_caps;
|
||||
|
|
Ładowanie…
Reference in New Issue