pull/1742/head
Daniele Forsi IU5HKX 2025-05-19 23:01:26 +02:00
rodzic 84376c4561
commit 4109d606b5
42 zmienionych plików z 52 dodań i 52 usunięć

Wyświetl plik

@ -485,7 +485,7 @@ static int ar7030_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width)
} }
// fltbw Mem_Page=0 Address=38 // fltbw Mem_Page=0 Address=38
// Filter bandwidth dezimal in Hz. // Filter bandwidth decimal in Hz.
// Filter bandwidth (2 BCD digits : x.x kHz). // Filter bandwidth (2 BCD digits : x.x kHz).
setMemPtr(rig, 0, 0x38); setMemPtr(rig, 0, 0x38);

Wyświetl plik

@ -74,7 +74,7 @@ struct aclog_priv_data
struct ext_list *ext_parms; struct ext_list *ext_parms;
}; };
//Structure for mapping aclog dynmamic modes to hamlib modes //Structure for mapping aclog dynamic modes to hamlib modes
//aclog displays modes as the rig displays them //aclog displays modes as the rig displays them
struct s_modeMap struct s_modeMap
{ {

Wyświetl plik

@ -217,7 +217,7 @@ struct rig_caps flrig_caps =
.hamlib_check_rig_caps = HAMLIB_CHECK_RIG_CAPS .hamlib_check_rig_caps = HAMLIB_CHECK_RIG_CAPS
}; };
//Structure for mapping flrig dynmamic modes to hamlib modes //Structure for mapping flrig dynamic modes to hamlib modes
//flrig displays modes as the rig displays them //flrig displays modes as the rig displays them
struct s_modeMap struct s_modeMap
{ {

Wyświetl plik

@ -212,7 +212,7 @@ struct rig_caps tci1x_caps =
.hamlib_check_rig_caps = HAMLIB_CHECK_RIG_CAPS .hamlib_check_rig_caps = HAMLIB_CHECK_RIG_CAPS
}; };
//Structure for mapping tci1x dynmamic modes to hamlib modes //Structure for mapping tci1x dynamic modes to hamlib modes
//tci1x displays modes as the rig displays them //tci1x displays modes as the rig displays them
struct s_modeMap struct s_modeMap
{ {

Wyświetl plik

@ -152,7 +152,7 @@ const struct confparams elad_cfg_params[] =
* indicating that only a reply is needed (nothing will be sent). * indicating that only a reply is needed (nothing will be sent).
* data: Buffer for reply string. Can be NULL, indicating that no reply * data: Buffer for reply string. Can be NULL, indicating that no reply
* is needed and will return with RIG_OK after command was sent. * is needed and will return with RIG_OK after command was sent.
* datasize: Size of buffer. It is the caller's responsibily to provide * datasize: Size of buffer. It is the caller's responsibility to provide
* a large enough buffer for all possible replies for a command. * a large enough buffer for all possible replies for a command.
* *
* returns: * returns:

Wyświetl plik

@ -291,7 +291,7 @@ again1:
} }
// first 2 bytes of everything are 0xfe so we won't test those // first 2 bytes of everything are 0xfe so we won't test those
// this allows some corruptin of the 0xfe bytes which has been seen in the wild // this allows some corruption of the 0xfe bytes which has been seen in the wild
if (memcmp(&buf[2], &sendbuf[2], frm_len - 2) != 0) if (memcmp(&buf[2], &sendbuf[2], frm_len - 2) != 0)
{ {
/* Frames are different? */ /* Frames are different? */
@ -620,7 +620,7 @@ static int read_icom_frame_generic(hamlib_port_t *p,
while ((read < rxbuffer_len) && (rxbuffer[read - 1] != FI) while ((read < rxbuffer_len) && (rxbuffer[read - 1] != FI)
&& (rxbuffer[read - 1] != COL)); && (rxbuffer[read - 1] != COL));
// Check that we have a valid frame preamble (which might be just a single preable character) // Check that we have a valid frame preamble (which might be just a single preamble character)
// Or an error code // Or an error code
if (rxbuffer[0] != PR && rxbuffer[0] != COL) if (rxbuffer[0] != PR && rxbuffer[0] != COL)
{ {

Wyświetl plik

@ -357,7 +357,7 @@ struct rig_caps ic746_caps =
#define S_MEM_2M_DUP_OFST 0x516 /* default 144 MHz duplex offset 3 byte little endian */ #define S_MEM_2M_DUP_OFST 0x516 /* default 144 MHz duplex offset 3 byte little endian */
#define S_MEM_AUTO_RPTR 0x518 /* auto repeater set 0=OFF; 1=ON-1; 2=ON-2 */ #define S_MEM_AUTO_RPTR 0x518 /* auto repeater set 0=OFF; 1=ON-1; 2=ON-2 */
#define S_MEM_LANG 0x523 /* 0=English 1=Japanese for voice announcer */ #define S_MEM_LANG 0x523 /* 0=English 1=Japanese for voice announcer */
#define S_MEM_TRCV 0x536 /* CI-V trancieve mode */ #define S_MEM_TRCV 0x536 /* CI-V transceive mode */
#define S_MEM_CMP_LVL 0x538 /* speech compressor level 0-10 */ #define S_MEM_CMP_LVL 0x538 /* speech compressor level 0-10 */
#define S_MEM_SBASS 0x539 /* SSB TX tone bass level */ #define S_MEM_SBASS 0x539 /* SSB TX tone bass level */
#define S_MEM_RTTY_FL_PB 0x562 /* 0=250 Hz, 1=300' 2 = 350, 3 = 500, 4 = 1 KHz */ #define S_MEM_RTTY_FL_PB 0x562 /* 0=250 Hz, 1=300' 2 = 350, 3 = 500, 4 = 1 KHz */

Wyświetl plik

@ -525,7 +525,7 @@ static const struct confparams ic756pro2_ext_parms[] =
#define S_MEM_BEEP 0x520 /* Button confirmation */ #define S_MEM_BEEP 0x520 /* Button confirmation */
#define S_MEM_SQL_CTL 0x522 /* RF/SQL ctl set 0=auto; 1 = sql; 2 = RF+SQL */ #define S_MEM_SQL_CTL 0x522 /* RF/SQL ctl set 0=auto; 1 = sql; 2 = RF+SQL */
#define S_MEM_QSPLT 0x524 /* enable quick split mode */ #define S_MEM_QSPLT 0x524 /* enable quick split mode */
#define S_MEM_TRCV 0x532 /* CI-V trancieve mode */ #define S_MEM_TRCV 0x532 /* CI-V transceive mode */
#define S_MEM_LANG 0x536 /* 0=English 1=Japanese for voice announcer */ #define S_MEM_LANG 0x536 /* 0=English 1=Japanese for voice announcer */
#define S_MEM_SCN_SPD 0x556 /* 0 = low; 1 = high */ #define S_MEM_SCN_SPD 0x556 /* 0 = low; 1 = high */
#define S_MEM_RTTY_FL_PB 0x561 /* 0=250 Hz, 1=300' 2 = 350, 3 = 500, 4 = 1 KHz */ #define S_MEM_RTTY_FL_PB 0x561 /* 0=250 Hz, 1=300' 2 = 350, 3 = 500, 4 = 1 KHz */

Wyświetl plik

@ -83,7 +83,7 @@ struct rig_caps ic820h_caps =
.ctcss_list = NULL, .ctcss_list = NULL,
.dcs_list = NULL, .dcs_list = NULL,
.preamp = { RIG_DBLST_END, }, .preamp = { RIG_DBLST_END, },
.attenuator = { RIG_DBLST_END, }, /* Attanuator 15dB for each band. manual button */ .attenuator = { RIG_DBLST_END, }, /* Attenuator 15dB for each band. manual button */
.max_rit = Hz(0), /* SSB,CW: +-1.0kHz FM: +-5.0kHz */ .max_rit = Hz(0), /* SSB,CW: +-1.0kHz FM: +-5.0kHz */
.max_xit = Hz(0), .max_xit = Hz(0),
.max_ifshift = Hz(0), /* 1.2kHz manual knob */ .max_ifshift = Hz(0), /* 1.2kHz manual knob */

Wyświetl plik

@ -120,7 +120,7 @@ struct rig_caps ic821h_caps =
.ctcss_list = NULL, .ctcss_list = NULL,
.dcs_list = NULL, .dcs_list = NULL,
.preamp = { RIG_DBLST_END, }, .preamp = { RIG_DBLST_END, },
.attenuator = { RIG_DBLST_END, }, /* Attanuator 15dB for each band. manual button */ .attenuator = { RIG_DBLST_END, }, /* Attenuator 15dB for each band. manual button */
.max_rit = Hz(0), /* SSB,CW: +-1.0kHz FM: +-5.0kHz */ .max_rit = Hz(0), /* SSB,CW: +-1.0kHz FM: +-5.0kHz */
.max_xit = Hz(0), .max_xit = Hz(0),
.max_ifshift = Hz(0), /* 1.2kHz manual knob */ .max_ifshift = Hz(0), /* 1.2kHz manual knob */

Wyświetl plik

@ -1760,7 +1760,7 @@ int icom_get_freq(RIG *rig, vfo_t vfo, freq_t *freq)
if (vfo == RIG_VFO_MEM && (priv->civ_731_mode || RIG_IS_IC706)) if (vfo == RIG_VFO_MEM && (priv->civ_731_mode || RIG_IS_IC706))
{ {
// Memory channels have always 5-byte frequqncy // Memory channels have always 5-byte frequency
rig_debug(RIG_DEBUG_TRACE, "%s: VFO=MEM so turning off civ_731\n", __func__); rig_debug(RIG_DEBUG_TRACE, "%s: VFO=MEM so turning off civ_731\n", __func__);
civ_731_mode_save = 1; civ_731_mode_save = 1;
priv->civ_731_mode = 0; priv->civ_731_mode = 0;
@ -8119,7 +8119,7 @@ int icom_set_powerstat(RIG *rig, powerstat_t status)
rig_debug(RIG_DEBUG_VERBOSE, "%s called status=%d\n", __func__, rig_debug(RIG_DEBUG_VERBOSE, "%s called status=%d\n", __func__,
(int) status); (int) status);
// elimininate retries to speed this up // eliminate retries to speed this up
// especially important when rig is not turned on // especially important when rig is not turned on
retry_save = rp->retry; retry_save = rp->retry;
timeout_retry_save = rp->timeout_retry; timeout_retry_save = rp->timeout_retry;

Wyświetl plik

@ -1176,7 +1176,7 @@ int jrc_get_parm(RIG *rig, setting_t parm, value_t *val)
val->i = ((10 * lvlbuf[1] + lvlbuf[2]) * 60 + /* hours */ val->i = ((10 * lvlbuf[1] + lvlbuf[2]) * 60 + /* hours */
10 * lvlbuf[3] + lvlbuf[4]) * 60 + /* minutes */ 10 * lvlbuf[3] + lvlbuf[4]) * 60 + /* minutes */
10 * lvlbuf[5] + lvlbuf[6]; /* secondes */ 10 * lvlbuf[5] + lvlbuf[6]; /* seconds */
break; break;
case RIG_PARM_BEEP: case RIG_PARM_BEEP:

Wyświetl plik

@ -258,7 +258,7 @@ int remove_nonprint(char *s)
* indicating that only a reply is needed (nothing will be sent). * indicating that only a reply is needed (nothing will be sent).
* data: Buffer for reply string. Can be NULL, indicating that no reply * data: Buffer for reply string. Can be NULL, indicating that no reply
* is needed and will return with RIG_OK after command was sent. * is needed and will return with RIG_OK after command was sent.
* datasize: Size of buffer. It is the caller's responsibily to provide * datasize: Size of buffer. It is the caller's responsibility to provide
* a large enough buffer for all possible replies for a command. * a large enough buffer for all possible replies for a command.
* *
* returns: * returns:
@ -1423,7 +1423,7 @@ int kenwood_set_vfo(RIG *rig, vfo_t vfo)
break; break;
default: default:
rig_debug(RIG_DEBUG_ERR, "%s: unhandled VFO=%s, deafaulting to VFOA\n", rig_debug(RIG_DEBUG_ERR, "%s: unhandled VFO=%s, defaulting to VFOA\n",
__func__, rig_strvfo(priv->tx_vfo)); __func__, rig_strvfo(priv->tx_vfo));
} }

Wyświetl plik

@ -183,7 +183,7 @@ struct rig_caps tmv7_caps =
RIG_FLT_END RIG_FLT_END
}, },
.str_cal = { 4, { {0, -60 }, {1, -30,}, {5, 0}, {7, 20}}}, /* rought guess */ .str_cal = { 4, { {0, -60 }, {1, -30,}, {5, 0}, {7, 20}}}, /* rough guess */
.priv = (void *)& tmv7_priv_caps, .priv = (void *)& tmv7_priv_caps,
.rig_init = kenwood_init, .rig_init = kenwood_init,

Wyświetl plik

@ -237,7 +237,7 @@ static int ts870s_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width)
pbwidth_t mode_default_hpf; pbwidth_t mode_default_hpf;
/* we assume the HPF is set to default and set the LPF to /* we assume the HPF is set to default and set the LPF to
give the best approximaation of the requested width */ give the best approximation of the requested width */
if (RIG_MODE_AM == mode) if (RIG_MODE_AM == mode)
{ {
mode_default_hpf = 300; mode_default_hpf = 300;

Wyświetl plik

@ -285,7 +285,7 @@ int drt1_get_conf(RIG *rig, hamlib_token_t token, char *val)
DDS is AD9951. DDS is AD9951.
The clock input is 45,012 MHz (also 2nd LO frequencie at the same time). The clock input is 45,012 MHz (also 2nd LO frequency at the same time).
The clock multiplier should be set to 8x at start value (possible, that this The clock multiplier should be set to 8x at start value (possible, that this
will change to lower clock multiplier). will change to lower clock multiplier).

Wyświetl plik

@ -549,7 +549,7 @@ int elektor507_ftdi_write_data(RIG *rig, void *FTOutBuf,
* Original article: * Original article:
* http://www.elektor.com/magazines/2007/may/software-defined-radio.91527.lynkx * http://www.elektor.com/magazines/2007/may/software-defined-radio.91527.lynkx
* *
* Author (Burkhard Kainka) page, in german: * Author (Burkhard Kainka) page, in German:
* http://www.b-kainka.de/sdrusb.html * http://www.b-kainka.de/sdrusb.html
*/ */

Wyświetl plik

@ -91,7 +91,7 @@ pcrotor_move(ROT *rot, int direction, int speed)
/* /*
* PcRotor rotator capabilities. * PcRotor rotator capabilities.
* *
* Control Interface schematics from, courtersy of Bob Hillard WA6UFQ: * Control Interface schematics from, courtesy of Bob Hillard WA6UFQ:
* http://www.dxzone.com/cgi-bin/dir/jump2.cgi?ID=11173 * http://www.dxzone.com/cgi-bin/dir/jump2.cgi?ID=11173
* *
* DB25-7=Data-5= Power up/Sleep * DB25-7=Data-5= Power up/Sleep

Wyświetl plik

@ -99,7 +99,7 @@ tone_t uniden_dcs_list[] =
* that the prefix is either the cmdstr prefix or OK. * that the prefix is either the cmdstr prefix or OK.
* data - Buffer for reply string. Can be NULL, indicating that no reply is * data - Buffer for reply string. Can be NULL, indicating that no reply is
* is needed and will return with RIG_OK after command was sent. * is needed and will return with RIG_OK after command was sent.
* datasize - in: Size of buffer. It is the caller's responsibily to provide * datasize - in: Size of buffer. It is the caller's responsibility to provide
* a large enough buffer for all possible replies for a command. * a large enough buffer for all possible replies for a command.
* out: location where to store number of bytes read. * out: location where to store number of bytes read.
* *

Wyświetl plik

@ -80,7 +80,7 @@ uniden_id_string_list[] =
* that the prefix is either the cmdstr prefix or OK. * that the prefix is either the cmdstr prefix or OK.
* data - Buffer for reply string. Can be NULL, indicating that no reply is * data - Buffer for reply string. Can be NULL, indicating that no reply is
* is needed and will return with RIG_OK after command was sent. * is needed and will return with RIG_OK after command was sent.
* datasize - in: Size of buffer. It is the caller's responsibily to provide * datasize - in: Size of buffer. It is the caller's responsibility to provide
* a large enough buffer for all possible replies for a command. * a large enough buffer for all possible replies for a command.
* out: location where to store number of bytes read. * out: location where to store number of bytes read.
* *
@ -295,7 +295,7 @@ const char *uniden_digital_get_info(RIG *rig)
* *
* XXX indicates the BCD996T returns some non-printable ascii chars * XXX indicates the BCD996T returns some non-printable ascii chars
* within its comma separated fields. See pg 30-32 of BCD996T_Protocol.pdf. * within its comma separated fields. See pg 30-32 of BCD996T_Protocol.pdf.
* These chars cause abnomalies on stdout! */ * These chars cause anomalies on stdout! */
/* FIXME: Strip or replace non-printable chars return from STS command! /* FIXME: Strip or replace non-printable chars return from STS command!
* (Below is a snip from DSctl utils.c file) * (Below is a snip from DSctl utils.c file)

Wyświetl plik

@ -25,7 +25,7 @@
#include "wj.h" #include "wj.h"
/* modes: what about ISB(Idependant Sideband)? */ /* modes: what about ISB(Independent Sideband)? */
#define WJ8888_MODES (RIG_MODE_AM|RIG_MODE_CW|RIG_MODE_SSB|RIG_MODE_FM|RIG_MODE_AMS) #define WJ8888_MODES (RIG_MODE_AM|RIG_MODE_CW|RIG_MODE_SSB|RIG_MODE_FM|RIG_MODE_AMS)
#define WJ8888_FUNC (RIG_FUNC_NONE) #define WJ8888_FUNC (RIG_FUNC_NONE)

Wyświetl plik

@ -750,7 +750,7 @@ static int ft757_get_update_data(RIG *rig)
rig_debug(RIG_DEBUG_VERBOSE, "%s called Timeout=%d ms, Retry=%d\n", rig_debug(RIG_DEBUG_VERBOSE, "%s called Timeout=%d ms, Retry=%d\n",
__func__, rp->timeout, maxtries); __func__, rp->timeout, maxtries);
/* At least on one model, returns erraticaly a timeout. Increasing the timeout /* At least on one model, returns erratically a timeout. Increasing the timeout
does not fix things. So we restart the read from scratch, it works most of times. */ does not fix things. So we restart the read from scratch, it works most of times. */
for (nbtries = 0 ; nbtries < maxtries ; nbtries++) for (nbtries = 0 ; nbtries < maxtries ; nbtries++)
{ {

Wyświetl plik

@ -2027,7 +2027,7 @@ static int ft817_set_rptr_shift(RIG *rig, vfo_t vfo, rptr_shift_t shift)
/* Note: this doesn't have effect unless FT817 is in FM mode /* Note: this doesn't have effect unless FT817 is in FM mode
although the command is accepted in any mode. although the command is accepted in any mode.
*/ */
rig_debug(RIG_DEBUG_VERBOSE, "ft817: set repeter shift = %i\n", shift); rig_debug(RIG_DEBUG_VERBOSE, "ft817: set repeater shift = %i\n", shift);
switch (shift) switch (shift)
{ {
@ -2050,7 +2050,7 @@ static int ft817_set_rptr_offs(RIG *rig, vfo_t vfo, shortfreq_t offs)
{ {
unsigned char data[YAESU_CMD_LENGTH - 1]; unsigned char data[YAESU_CMD_LENGTH - 1];
rig_debug(RIG_DEBUG_VERBOSE, "ft817: set repeter offs = %li\n", offs); rig_debug(RIG_DEBUG_VERBOSE, "ft817: set repeater offs = %li\n", offs);
/* fill in the offset freq */ /* fill in the offset freq */
to_bcd_be(data, offs / 10, 8); to_bcd_be(data, offs / 10, 8);

Wyświetl plik

@ -1350,7 +1350,7 @@ int ft857_set_rptr_shift(RIG *rig, vfo_t vfo, rptr_shift_t shift)
{ {
rig_debug(RIG_DEBUG_VERBOSE, "%s: called \n", __func__); rig_debug(RIG_DEBUG_VERBOSE, "%s: called \n", __func__);
rig_debug(RIG_DEBUG_VERBOSE, "ft857: set repeter shift = %i\n", shift); rig_debug(RIG_DEBUG_VERBOSE, "ft857: set repeater shift = %i\n", shift);
switch (shift) switch (shift)
{ {
@ -1373,7 +1373,7 @@ int ft857_set_rptr_offs(RIG *rig, vfo_t vfo, shortfreq_t offs)
rig_debug(RIG_DEBUG_VERBOSE, "%s: called \n", __func__); rig_debug(RIG_DEBUG_VERBOSE, "%s: called \n", __func__);
rig_debug(RIG_DEBUG_VERBOSE, "ft857: set repeter offs = %li\n", offs); rig_debug(RIG_DEBUG_VERBOSE, "ft857: set repeater offs = %li\n", offs);
/* fill in the offset freq */ /* fill in the offset freq */
to_bcd_be(data, offs / 10, 8); to_bcd_be(data, offs / 10, 8);

Wyświetl plik

@ -531,7 +531,7 @@ static int ft891_get_split_mode(RIG *rig, vfo_t vfo, rmode_t *tx_mode,
* Returns RIG_OK on success or an error code on failure * Returns RIG_OK on success or an error code on failure
* *
* Comments: Passsband is not set here. * Comments: Passsband is not set here.
* FT891 apparentlhy cannot set VFOB mode directly * FT891 apparently cannot set VFOB mode directly
* So we'll just set A and swap A into B * So we'll just set A and swap A into B
* *
*/ */

Wyświetl plik

@ -1472,7 +1472,7 @@ int ft897_set_rptr_shift(RIG *rig, vfo_t vfo, rptr_shift_t shift)
{ {
rig_debug(RIG_DEBUG_VERBOSE, "%s: called\n", __func__); rig_debug(RIG_DEBUG_VERBOSE, "%s: called\n", __func__);
rig_debug(RIG_DEBUG_VERBOSE, "ft897: set repeter shift = %i\n", shift); rig_debug(RIG_DEBUG_VERBOSE, "ft897: set repeater shift = %i\n", shift);
switch (shift) switch (shift)
{ {
@ -1495,7 +1495,7 @@ int ft897_set_rptr_offs(RIG *rig, vfo_t vfo, shortfreq_t offs)
rig_debug(RIG_DEBUG_VERBOSE, "%s: called\n", __func__); rig_debug(RIG_DEBUG_VERBOSE, "%s: called\n", __func__);
rig_debug(RIG_DEBUG_VERBOSE, "ft897: set repeter offs = %li\n", offs); rig_debug(RIG_DEBUG_VERBOSE, "ft897: set repeater offs = %li\n", offs);
/* fill in the offset freq */ /* fill in the offset freq */
to_bcd_be(data, offs / 10, 8); to_bcd_be(data, offs / 10, 8);

Wyświetl plik

@ -1140,7 +1140,7 @@ static int pmr171_set_rptr_shift(RIG *rig, vfo_t vfo, rptr_shift_t shift)
/* Note: this doesn't have effect unless FT817 is in FM mode /* Note: this doesn't have effect unless FT817 is in FM mode
although the command is accepted in any mode. although the command is accepted in any mode.
*/ */
rig_debug(RIG_DEBUG_VERBOSE, "pmr171: set repeter shift = %i\n", shift); rig_debug(RIG_DEBUG_VERBOSE, "pmr171: set repeater shift = %i\n", shift);
switch (shift) switch (shift)
{ {
@ -1163,7 +1163,7 @@ static int pmr171_set_rptr_offs(RIG *rig, vfo_t vfo, shortfreq_t offs)
{ {
unsigned char data[YAESU_CMD_LENGTH - 1]; unsigned char data[YAESU_CMD_LENGTH - 1];
rig_debug(RIG_DEBUG_VERBOSE, "pmr171: set repeter offs = %li\n", offs); rig_debug(RIG_DEBUG_VERBOSE, "pmr171: set repeater offs = %li\n", offs);
/* fill in the offset freq */ /* fill in the offset freq */
to_bcd_be(data, offs / 10, 8); to_bcd_be(data, offs / 10, 8);

Wyświetl plik

@ -32,7 +32,7 @@
* *
* The read s-meter CAT command seems only to return 17 to 23 depending * The read s-meter CAT command seems only to return 17 to 23 depending
* on the strength of the signal. Setting the RF attenuator on with no * on the strength of the signal. Setting the RF attenuator on with no
* attenna on does not decrease the level below 17. If you wish to read * antenna on does not decrease the level below 17. If you wish to read
* the s-meter on a specific frequency, set the frequency and wait a * the s-meter on a specific frequency, set the frequency and wait a
* 500-1000 mS before reading it. * 500-1000 mS before reading it.

Wyświetl plik

@ -943,7 +943,7 @@ static int vx1700_set_ptt_gps_jack(ptt_t ptt)
* FIXME * FIXME
* *
* We are using GPIO to manage PTT pin in GPS/Data jack. * We are using GPIO to manage PTT pin in GPS/Data jack.
* This highly binded to our specific device, so it makes * This highly bound to our specific device, so it makes
* no sense to put our code here. * no sense to put our code here.
* On regular PC this should be managed in another way, * On regular PC this should be managed in another way,
* probably via DTR/RTS. * probably via DTR/RTS.

Wyświetl plik

@ -38,7 +38,7 @@
* cmdstr - Command to be sent to the rig. * cmdstr - Command to be sent to the rig.
* data - Buffer for reply string. Can be NULL, indicating that no reply is * data - Buffer for reply string. Can be NULL, indicating that no reply is
* is needed, but answer will still be read. * is needed, but answer will still be read.
* data_len - in: Size of buffer. It is the caller's responsibily to provide * data_len - in: Size of buffer. It is the caller's responsibility to provide
* a large enough buffer for all possible replies for a command. * a large enough buffer for all possible replies for a command.
* *
* returns: * returns:

Wyświetl plik

@ -38,7 +38,7 @@
* cmdstr - Command to be sent to the rig. * cmdstr - Command to be sent to the rig.
* data - Buffer for reply string. Can be NULL, indicating that no reply is * data - Buffer for reply string. Can be NULL, indicating that no reply is
* is needed, but answer will still be read. * is needed, but answer will still be read.
* data_len - in: Size of buffer. It is the caller's responsibily to provide * data_len - in: Size of buffer. It is the caller's responsibility to provide
* a large enough buffer for all possible replies for a command. * a large enough buffer for all possible replies for a command.
* *
* returns: * returns:

Wyświetl plik

@ -50,7 +50,7 @@
* cmdstr - Command to be sent to the rig. * cmdstr - Command to be sent to the rig.
* data - Buffer for reply string. Can be NULL, indicating that no reply is * data - Buffer for reply string. Can be NULL, indicating that no reply is
* is needed, but answer will still be read. * is needed, but answer will still be read.
* data_len - in: Size of buffer. It is the caller's responsibily to provide * data_len - in: Size of buffer. It is the caller's responsibility to provide
* a large enough buffer for all possible replies for a command. * a large enough buffer for all possible replies for a command.
* *
* returns: * returns:

Wyświetl plik

@ -46,7 +46,7 @@
* cmdstr - Command to be sent to the rig. * cmdstr - Command to be sent to the rig.
* data - Buffer for reply string. Can be NULL, indicating that no reply is * data - Buffer for reply string. Can be NULL, indicating that no reply is
* is needed, but answer will still be read. * is needed, but answer will still be read.
* data_len - in: Size of buffer. It is the caller's responsibily to provide * data_len - in: Size of buffer. It is the caller's responsibility to provide
* a large enough buffer for all possible replies for a command. * a large enough buffer for all possible replies for a command.
* *
* returns: * returns:

Wyświetl plik

@ -39,7 +39,7 @@
* *
* cmdstr - Command to be sent to the rig. * cmdstr - Command to be sent to the rig.
* data - Buffer for reply string. * data - Buffer for reply string.
* resp_len - in: Expected length of response. It is the caller's responsibily to * resp_len - in: Expected length of response. It is the caller's responsibility to
* provide a buffer at least 1 byte larger than this for null terminator. * provide a buffer at least 1 byte larger than this for null terminator.
* *
* COMMANDS note: as of 12/2018 a mixture of V2 and V3 * COMMANDS note: as of 12/2018 a mixture of V2 and V3
@ -231,7 +231,7 @@ ioptron_stop(ROT *rot)
} }
/** sets mount position, requires 4 steps /** sets mount position, requires 4 steps
* set azmiuth * set azimuth
* set altitude * set altitude
* goto set * goto set
* stop tracking - mount starts tracking after goto * stop tracking - mount starts tracking after goto
@ -294,7 +294,7 @@ ioptron_set_position(ROT *rot, azimuth_t az, elevation_t el)
} }
} }
/* set azmiuth, returns '1" if OK */ /* set azimuth, returns '1" if OK */
SNPRINTF(cmdstr, sizeof(cmdstr), ":Sz%09.0f#", faz); SNPRINTF(cmdstr, sizeof(cmdstr), ":Sz%09.0f#", faz);
retval = ioptron_transaction(rot, cmdstr, retbuf, 1); retval = ioptron_transaction(rot, cmdstr, retbuf, 1);

Wyświetl plik

@ -151,7 +151,7 @@ int testmain()
* cmdstr - Command to be sent to the rig. * cmdstr - Command to be sent to the rig.
* data - Buffer for reply string. Can be NULL, indicating that no reply is * data - Buffer for reply string. Can be NULL, indicating that no reply is
* is needed, but answer will still be read. * is needed, but answer will still be read.
* data_len - in: Size of buffer. It is the caller's responsibily to provide * data_len - in: Size of buffer. It is the caller's responsibility to provide
* a large enough buffer for all possible replies for a command. * a large enough buffer for all possible replies for a command.
* *
* returns: * returns:

Wyświetl plik

@ -85,7 +85,7 @@ struct meade_priv_data
* cmdstr - Command to be sent to the rig. * cmdstr - Command to be sent to the rig.
* data - Buffer for reply string. Can be NULL, indicating that no reply is * data - Buffer for reply string. Can be NULL, indicating that no reply is
* is needed, but answer will still be read. * is needed, but answer will still be read.
* data_len - in: Size of buffer. It is the caller's responsibily to provide * data_len - in: Size of buffer. It is the caller's responsibility to provide
* a large enough buffer for all possible replies for a command. * a large enough buffer for all possible replies for a command.
* *
* returns: * returns:

Wyświetl plik

@ -50,7 +50,7 @@ struct prosistel_rot_priv_caps
* cmdstr - Command to be sent to the rig. * cmdstr - Command to be sent to the rig.
* data - Buffer for reply string. Can be NULL, indicating that no reply is * data - Buffer for reply string. Can be NULL, indicating that no reply is
* is needed, but answer will still be read. * is needed, but answer will still be read.
* data_len - in: Size of buffer. It is the caller's responsibily to provide * data_len - in: Size of buffer. It is the caller's responsibility to provide
* a large enough buffer for all possible replies for a command. * a large enough buffer for all possible replies for a command.
* *
* returns: * returns:

Wyświetl plik

@ -631,7 +631,7 @@ const struct confparams spid_cfg_params[] =
"0", RIG_CONF_NUMERIC, { .n = { 0, 0xff, 1 } } "0", RIG_CONF_NUMERIC, { .n = { 0, 0xff, 1 } }
}, },
{ {
TOK_ELRES, "el_resolution", "Eleveation resolution", "Number of pulses per degree, 0 = auto sense", TOK_ELRES, "el_resolution", "Elevation resolution", "Number of pulses per degree, 0 = auto sense",
"0", RIG_CONF_NUMERIC, { .n = { 0, 0xff, 1 } } "0", RIG_CONF_NUMERIC, { .n = { 0, 0xff, 1 } }
}, },
{ RIG_CONF_END, NULL, } { RIG_CONF_END, NULL, }

Wyświetl plik

@ -1419,7 +1419,7 @@ int main(int argc, char *argv[])
switch (buf[2]) switch (buf[2])
{ {
case '0': // Frequency Marker Function case '0': // Frequency Marker Function
case '1': // Frequency Marker List Regiatration case '1': // Frequency Marker List Registration
case '2': // Total Number Registered of Frequency Marker List case '2': // Total Number Registered of Frequency Marker List
case '3': // Frequency Marker List Readout case '3': // Frequency Marker List Readout
case '4': // Frequency Marker List Delete case '4': // Frequency Marker List Delete

Wyświetl plik

@ -1,6 +1,6 @@
/* /*
* dumpmem.c - Copyright (C) 2001 Stephane Fillod * dumpmem.c - Copyright (C) 2001 Stephane Fillod
* This programs dumps the mmeory contents of a rig. * This programs dumps the memory contents of a rig.
* *
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify

Wyświetl plik

@ -5141,7 +5141,7 @@ declare_proto_rig(send_cmd)
RETURNFUNC2(RIG_OK); RETURNFUNC2(RIG_OK);
} }
// need to move the eom_buf to rig-specifc backends // need to move the eom_buf to rig-specific backends
// we'll let KENWOOD backends use the ; char in the rigctl commands // we'll let KENWOOD backends use the ; char in the rigctl commands
if (backend_num == RIG_KENWOOD || backend_num == RIG_YAESU) if (backend_num == RIG_KENWOOD || backend_num == RIG_YAESU)
{ {

Wyświetl plik

@ -1,6 +1,6 @@
/* 2038 test /* 2038 test
This is OK on 64-bit systems and mingw64 This is OK on 64-bit systems and mingw64
Does fail when compiled with gcc -m32 -o 2038 2038.c Does fail when compiled with gcc -m32 -o test2038 test2038.c
*/ */
#include <stdio.h> #include <stdio.h>
#include <time.h> #include <time.h>