mirror of
https://github.com/Hamlib/Hamlib.git
synced 2024-09-21 10:27:18 +00:00
Fix spelling errors
Fixed with: codespell --summary --skip=.git,extra,,lib,macros,security --ignore-words-list="ans,ba,cant,develope,fo,get's,nin,numer,parm,parms,setts,som,statics,ths,ue,vektor,objext" --write-changes --interactive=2 and manual editing.
This commit is contained in:
parent
0e79b25655
commit
08c06aea14
@ -1447,7 +1447,7 @@ $(OBJ_DIR)/Hamlib.def: $(Hamlib_STAT_LIB) $(THIS_FILE)
|
|||||||
#
|
#
|
||||||
# GNU-make macros.
|
# GNU-make macros.
|
||||||
#
|
#
|
||||||
# This asumes you have a Cygwin/Msys 'echo' with colour support.
|
# This assumes you have a Cygwin/Msys 'echo' with colour support.
|
||||||
#
|
#
|
||||||
green_message = @echo -e "\e[1;32m$(strip $(1))\e[0m"
|
green_message = @echo -e "\e[1;32m$(strip $(1))\e[0m"
|
||||||
white_message = @echo -e "\e[1;37m$(strip $(1))\e[0m"
|
white_message = @echo -e "\e[1;37m$(strip $(1))\e[0m"
|
||||||
|
2
NEWS
2
NEWS
@ -87,7 +87,7 @@ Version 4.3.1
|
|||||||
- Fix segfault in kenwood_set_vfo
|
- Fix segfault in kenwood_set_vfo
|
||||||
- scripts: Update example in readme, since 4.0 817 is 1020
|
- scripts: Update example in readme, since 4.0 817 is 1020
|
||||||
- Make testlibusb.c compatible with libusb < 1.0.23
|
- Make testlibusb.c compatible with libusb < 1.0.23
|
||||||
Note: On systems with libusb < 1.0.23 a warning will be emmitted
|
Note: On systems with libusb < 1.0.23 a warning will be emitted
|
||||||
but compliation should proceed without error.
|
but compliation should proceed without error.
|
||||||
- Update testlibusb.c warning to "may be" instead of "will be"
|
- Update testlibusb.c warning to "may be" instead of "will be"
|
||||||
- Change kenwood to only set VFOA default on 1st rig_open call
|
- Change kenwood to only set VFOA default on 1st rig_open call
|
||||||
|
@ -119,7 +119,7 @@ function doStartup()
|
|||||||
print(string.format("Latitude:\t%4.4f, %4.0f° %.0f' %2.0f\" %1s\trecoded: %9.4f", lat1, deg2, mins2, sec2, D, lat3))
|
print(string.format("Latitude:\t%4.4f, %4.0f° %.0f' %2.0f\" %1s\trecoded: %9.4f", lat1, deg2, mins2, sec2, D, lat3))
|
||||||
if (version() >= 5.4) then
|
if (version() >= 5.4) then
|
||||||
-- older version may not handle 64-bit values
|
-- older version may not handle 64-bit values
|
||||||
-- not sure when this was fixed...might have been 5.3 somehwere
|
-- not sure when this was fixed...might have been 5.3 somewhere
|
||||||
print(string.format("The next two lines should show 0x8000000000000000"));
|
print(string.format("The next two lines should show 0x8000000000000000"));
|
||||||
print(string.format("RIG_MODE_TESTS_MAX: 0x%08x", Hamlib.RIG_MODE_TESTS_MAX));
|
print(string.format("RIG_MODE_TESTS_MAX: 0x%08x", Hamlib.RIG_MODE_TESTS_MAX));
|
||||||
print(string.format("RIG_FUNC_BIT63: 0x%08x", Hamlib.RIG_FUNC_BIT63));
|
print(string.format("RIG_FUNC_BIT63: 0x%08x", Hamlib.RIG_FUNC_BIT63));
|
||||||
|
@ -1202,7 +1202,7 @@ Shows the current SeparatorChar
|
|||||||
Set
|
Set
|
||||||
.RI \(aq SeparatorChar \(aq
|
.RI \(aq SeparatorChar \(aq
|
||||||
.IP
|
.IP
|
||||||
Change rigctld response to use a special char intead of newline (recommend #).
|
Change rigctld response to use a special char instead of newline (recommend #).
|
||||||
This can be dyamically changed while running.
|
This can be dyamically changed while running.
|
||||||
Handy for node-red's tcprequest node.
|
Handy for node-red's tcprequest node.
|
||||||
This can be dyamically changed while running.
|
This can be dyamically changed while running.
|
||||||
|
@ -728,7 +728,7 @@ do not take up much space, however it can be useful for rebuilding the
|
|||||||
when modifying a
|
when modifying a
|
||||||
.I Makefile.am
|
.I Makefile.am
|
||||||
or
|
or
|
||||||
.I confgure.ac
|
.I configure.ac
|
||||||
during build system development.
|
during build system development.
|
||||||
.
|
.
|
||||||
.
|
.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
This is all about building hamlib inside docker contariner - so that you do not need to install dependencied on your local machine.
|
This is all about building hamlib inside docker container - so that you do not need to install dependencies on your local machine.
|
||||||
|
|
||||||
1. Build docker container
|
1. Build docker container
|
||||||
|
|
||||||
|
@ -2206,7 +2206,7 @@ typedef struct hamlib_async_pipe hamlib_async_pipe_t;
|
|||||||
// DO NOT CHANGE THIS STRUCTURE ALL UNTIL 5.0
|
// DO NOT CHANGE THIS STRUCTURE ALL UNTIL 5.0
|
||||||
// Right now it is static inside rig structure
|
// Right now it is static inside rig structure
|
||||||
// 5.0 will change it to a pointer which can then be added to
|
// 5.0 will change it to a pointer which can then be added to
|
||||||
// At that point only add to the end of the stucture
|
// At that point only add to the end of the structure
|
||||||
typedef struct hamlib_port {
|
typedef struct hamlib_port {
|
||||||
union {
|
union {
|
||||||
rig_port_t rig; /*!< Communication port type */
|
rig_port_t rig; /*!< Communication port type */
|
||||||
@ -2466,7 +2466,7 @@ struct rig_state {
|
|||||||
*/
|
*/
|
||||||
// moving the hamlib_port_t to the end of rig_state and making it a pointer
|
// moving the hamlib_port_t to the end of rig_state and making it a pointer
|
||||||
// this should allow changes to hamlib_port_t without breaking shared libraries
|
// this should allow changes to hamlib_port_t without breaking shared libraries
|
||||||
// these will maintain a copy of the new port_t for backwards compatiblity
|
// these will maintain a copy of the new port_t for backwards compatibility
|
||||||
// to these offsets -- note these must stay until a major version update is done like 5.0
|
// to these offsets -- note these must stay until a major version update is done like 5.0
|
||||||
hamlib_port_t_deprecated rigport_deprecated; /*!< Rig port (internal use). */
|
hamlib_port_t_deprecated rigport_deprecated; /*!< Rig port (internal use). */
|
||||||
hamlib_port_t_deprecated pttport_deprecated; /*!< PTT port (internal use). */
|
hamlib_port_t_deprecated pttport_deprecated; /*!< PTT port (internal use). */
|
||||||
|
@ -20,7 +20,7 @@ This is a WIP.
|
|||||||
Handles 5% of all opcodes.
|
Handles 5% of all opcodes.
|
||||||
All primitives are written from spec. In other words,
|
All primitives are written from spec. In other words,
|
||||||
they are totally untested because I don't own an AOR scanner myself.
|
they are totally untested because I don't own an AOR scanner myself.
|
||||||
Patchs and contributions are welcome! I'm also looking for
|
Patches and contributions are welcome! I'm also looking for
|
||||||
a real maintainer :) --SF
|
a real maintainer :) --SF
|
||||||
|
|
||||||
|
|
||||||
|
@ -43,9 +43,9 @@ Rig command: \get_powerstat
|
|||||||
|
|
||||||
Rig command: \reset Reset: 1 > Software reset
|
Rig command: \reset Reset: 1 > Software reset
|
||||||
|
|
||||||
Rig command: Quitt Q q
|
Rig command: Quit Q q
|
||||||
|
|
||||||
Rig command: Quitt Q Q
|
Rig command: Quit Q Q
|
||||||
|
|
||||||
Rig command: 1 Caps dump for model 503
|
Rig command: 1 Caps dump for model 503
|
||||||
|
|
||||||
|
@ -125,7 +125,7 @@ const struct rig_caps ar8200_caps =
|
|||||||
.max_ifshift = Hz(0),
|
.max_ifshift = Hz(0),
|
||||||
.targetable_vfo = 0,
|
.targetable_vfo = 0,
|
||||||
.transceive = RIG_TRN_RIG,
|
.transceive = RIG_TRN_RIG,
|
||||||
.bank_qty = 20, /* A through J, and a trough j */
|
.bank_qty = 20, /* A through J, and a through j */
|
||||||
.chan_desc_sz = 12,
|
.chan_desc_sz = 12,
|
||||||
.vfo_ops = AR8200_VFO_OPS,
|
.vfo_ops = AR8200_VFO_OPS,
|
||||||
.scan_ops = AR8200_SCAN_OPS,
|
.scan_ops = AR8200_SCAN_OPS,
|
||||||
|
@ -127,7 +127,7 @@ const struct rig_caps ar8600_caps =
|
|||||||
.max_ifshift = Hz(0),
|
.max_ifshift = Hz(0),
|
||||||
.targetable_vfo = 0,
|
.targetable_vfo = 0,
|
||||||
.transceive = RIG_TRN_RIG,
|
.transceive = RIG_TRN_RIG,
|
||||||
.bank_qty = 20, /* A through J, and a trough j */
|
.bank_qty = 20, /* A through J, and a through j */
|
||||||
.chan_desc_sz = 12,
|
.chan_desc_sz = 12,
|
||||||
.vfo_ops = AR8600_VFO_OPS,
|
.vfo_ops = AR8600_VFO_OPS,
|
||||||
.scan_ops = AR8600_SCAN_OPS,
|
.scan_ops = AR8600_SCAN_OPS,
|
||||||
|
@ -70,7 +70,7 @@ int codan_transaction(RIG *rig, char *cmd, int expected, char **result)
|
|||||||
|
|
||||||
if (expected == 0)
|
if (expected == 0)
|
||||||
{
|
{
|
||||||
// response format is reponse...0x0d0x0a
|
// response format is response...0x0d0x0a
|
||||||
retval = read_string(&rs->rigport, (unsigned char *) priv->ret_data,
|
retval = read_string(&rs->rigport, (unsigned char *) priv->ret_data,
|
||||||
sizeof(priv->ret_data),
|
sizeof(priv->ret_data),
|
||||||
"\x0a", 1, 0, 1);
|
"\x0a", 1, 0, 1);
|
||||||
|
@ -582,7 +582,7 @@ static int flrig_transaction(RIG *rig, char *cmd, char *cmd_arg, char *value,
|
|||||||
|
|
||||||
read_transaction(rig, xml, sizeof(xml)); // this might time out -- that's OK
|
read_transaction(rig, xml, sizeof(xml)); // this might time out -- that's OK
|
||||||
|
|
||||||
// we get an uknown response if function does not exist
|
// we get an unknown response if function does not exist
|
||||||
if (strstr(xml, "unknown")) { set_transaction_inactive(rig); RETURNFUNC(RIG_ENAVAIL); }
|
if (strstr(xml, "unknown")) { set_transaction_inactive(rig); RETURNFUNC(RIG_ENAVAIL); }
|
||||||
|
|
||||||
if (value)
|
if (value)
|
||||||
@ -1997,7 +1997,7 @@ static int flrig_set_split_freq_mode(RIG *rig, vfo_t vfo, freq_t freq,
|
|||||||
|
|
||||||
ENTERFUNC;
|
ENTERFUNC;
|
||||||
|
|
||||||
// we alway do split on VFOB
|
// we always do split on VFOB
|
||||||
retval = flrig_set_freq(rig, RIG_VFO_B, freq);
|
retval = flrig_set_freq(rig, RIG_VFO_B, freq);
|
||||||
|
|
||||||
if (retval != RIG_OK)
|
if (retval != RIG_OK)
|
||||||
|
@ -777,7 +777,7 @@ static int netrigctl_open(RIG *rig)
|
|||||||
}
|
}
|
||||||
else if (strcmp(setting, "timeout") == 0)
|
else if (strcmp(setting, "timeout") == 0)
|
||||||
{
|
{
|
||||||
// use the rig's timeout value pluse 500ms for potential network delays
|
// use the rig's timeout value plus 500ms for potential network delays
|
||||||
rig->caps->timeout = strtol(value, NULL, 0) + 500;
|
rig->caps->timeout = strtol(value, NULL, 0) + 500;
|
||||||
rig_debug(RIG_DEBUG_TRACE, "%s: timeout value = '%s', final timeout=%d\n",
|
rig_debug(RIG_DEBUG_TRACE, "%s: timeout value = '%s', final timeout=%d\n",
|
||||||
__func__, value, rig->caps->timeout);
|
__func__, value, rig->caps->timeout);
|
||||||
|
@ -1717,7 +1717,7 @@ static int tci1x_set_split_freq_mode(RIG *rig, vfo_t vfo, freq_t freq,
|
|||||||
|
|
||||||
ENTERFUNC;
|
ENTERFUNC;
|
||||||
|
|
||||||
// we alway do split on VFOB
|
// we always do split on VFOB
|
||||||
retval = tci1x_set_freq(rig, RIG_VFO_B, freq);
|
retval = tci1x_set_freq(rig, RIG_VFO_B, freq);
|
||||||
|
|
||||||
if (retval != RIG_OK)
|
if (retval != RIG_OK)
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* Created in 2022 by Richard Linhart OK1CTR OK1CTR@gmail.com
|
* Created in 2022 by Richard Linhart OK1CTR OK1CTR@gmail.com
|
||||||
* and used during VZLUSAT-2 satellite mission.
|
* and used during VZLUSAT-2 satellite mission.
|
||||||
*
|
*
|
||||||
* This sorce code is free software; you can redistribute it and/or
|
* This source code is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Lesser General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2.1 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
@ -40,7 +40,7 @@
|
|||||||
#define STATUS_ERROR -1
|
#define STATUS_ERROR -1
|
||||||
//! Serial baud rate - cannot use 500000 as the GS100 have
|
//! Serial baud rate - cannot use 500000 as the GS100 have
|
||||||
#define BAUD_RATE 115200
|
#define BAUD_RATE 115200
|
||||||
//! Incomming serial buffer length
|
//! Incoming serial buffer length
|
||||||
#define BUF_LENGTH 32
|
#define BUF_LENGTH 32
|
||||||
//! New line character on receive
|
//! New line character on receive
|
||||||
#define NLRX '\n'
|
#define NLRX '\n'
|
||||||
@ -91,7 +91,7 @@ static unsigned long tx_freq;
|
|||||||
/* Private function prototypes -----------------------------------------------*/
|
/* Private function prototypes -----------------------------------------------*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Store incomming serial characters unitl line end
|
* @brief Store incoming serial characters until line end
|
||||||
* @return The line if received successfully or NULL
|
* @return The line if received successfully or NULL
|
||||||
*/
|
*/
|
||||||
static char *serReadLine(void);
|
static char *serReadLine(void);
|
||||||
@ -132,7 +132,7 @@ static void prnPrompt(void);
|
|||||||
/**
|
/**
|
||||||
* @brief Displays hint output for commands
|
* @brief Displays hint output for commands
|
||||||
* @param hint_type Type or command
|
* @param hint_type Type or command
|
||||||
* @oaram cmd Part of commend to comment
|
* @oaram cmd Part of command to comment
|
||||||
*/
|
*/
|
||||||
static void prnHint(hint_t hint_type, char *cmd);
|
static void prnHint(hint_t hint_type, char *cmd);
|
||||||
|
|
||||||
@ -181,7 +181,7 @@ void loop(void)
|
|||||||
|
|
||||||
/* Private functions ---------------------------------------------------------*/
|
/* Private functions ---------------------------------------------------------*/
|
||||||
|
|
||||||
/* Store incomming serial characters unitl line end */
|
/* Store incoming serial characters until line end */
|
||||||
static char *serReadLine(void)
|
static char *serReadLine(void)
|
||||||
{
|
{
|
||||||
int inchar;
|
int inchar;
|
||||||
@ -354,7 +354,7 @@ static void prnHint(hint_t hint_type, char *cmd)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
case hint_param2:
|
case hint_param2:
|
||||||
// reduced on simulated commads only!
|
// reduced on simulated commands only!
|
||||||
Serial.print("'param' contains sub-commands:");
|
Serial.print("'param' contains sub-commands:");
|
||||||
Serial.print(NLTX);
|
Serial.print(NLTX);
|
||||||
Serial.print(" mem Set cmds working mem");
|
Serial.print(" mem Set cmds working mem");
|
||||||
|
@ -2315,7 +2315,7 @@ int icom_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width)
|
|||||||
icmode_ext = -1;
|
icmode_ext = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// some Icom rigs have seperate modes for VFOB/Sub
|
// some Icom rigs have separate modes for VFOB/Sub
|
||||||
// switching to VFOB should not matter for the other rigs
|
// switching to VFOB should not matter for the other rigs
|
||||||
// This needs to be improved for RIG_TARGETABLE_MODE rigs
|
// This needs to be improved for RIG_TARGETABLE_MODE rigs
|
||||||
if ((vfo == RIG_VFO_B || vfo == RIG_VFO_SUB)
|
if ((vfo == RIG_VFO_B || vfo == RIG_VFO_SUB)
|
||||||
@ -8810,7 +8810,7 @@ int icom_process_async_frame(RIG *rig, size_t frame_length,
|
|||||||
/*
|
/*
|
||||||
* the first 2 bytes must be 0xfe
|
* the first 2 bytes must be 0xfe
|
||||||
* the 3rd one 0x00 since this is transceive mode
|
* the 3rd one 0x00 since this is transceive mode
|
||||||
* the 4rd one the emitter
|
* the 4th one the emitter
|
||||||
* then the command number
|
* then the command number
|
||||||
* the rest is data
|
* the rest is data
|
||||||
* and don't forget one byte at the end for the EOM
|
* and don't forget one byte at the end for the EOM
|
||||||
|
@ -193,7 +193,7 @@
|
|||||||
#define S_SCAN_FDFON 0xAA /* Fix dF ON */
|
#define S_SCAN_FDFON 0xAA /* Fix dF ON */
|
||||||
#define S_SCAN_NSLCT 0xB0 /* Set as non select channel */
|
#define S_SCAN_NSLCT 0xB0 /* Set as non select channel */
|
||||||
#define S_SCAN_SLCT 0xB1 /* Set as select channel */
|
#define S_SCAN_SLCT 0xB1 /* Set as select channel */
|
||||||
#define S_SCAN_SL_NUM 0xB2 /* select programed mem scan 7800 only */
|
#define S_SCAN_SL_NUM 0xB2 /* select programmed mem scan 7800 only */
|
||||||
#define S_SCAN_RSMOFF 0xD0 /* Set scan resume OFF */
|
#define S_SCAN_RSMOFF 0xD0 /* Set scan resume OFF */
|
||||||
#define S_SCAN_RSMONP 0xD1 /* Set scan resume ON + pause time */
|
#define S_SCAN_RSMONP 0xD1 /* Set scan resume ON + pause time */
|
||||||
#define S_SCAN_RSMON 0xD3 /* Set scan resume ON */
|
#define S_SCAN_RSMON 0xD3 /* Set scan resume ON */
|
||||||
|
@ -1116,7 +1116,7 @@ int k3_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width)
|
|||||||
err = k3_get_mode(rig, RIG_VFO_A, &tmodeA, &twidth);
|
err = k3_get_mode(rig, RIG_VFO_A, &tmodeA, &twidth);
|
||||||
err2 = k3_get_mode(rig, RIG_VFO_B, &tmodeB, &twidth);
|
err2 = k3_get_mode(rig, RIG_VFO_B, &tmodeB, &twidth);
|
||||||
|
|
||||||
// we keep both vfos in the same mode -- any reason they should ever be differnet? If so, fix this
|
// we keep both vfos in the same mode -- any reason they should ever be different? If so, fix this
|
||||||
// if we change mode on one VFO we'll also change the other
|
// if we change mode on one VFO we'll also change the other
|
||||||
if (err == RIG_OK && err2 == RIG_OK && tmodeA == mode && tmodeB == mode
|
if (err == RIG_OK && err2 == RIG_OK && tmodeA == mode && tmodeB == mode
|
||||||
&& width == RIG_PASSBAND_NOCHANGE)
|
&& width == RIG_PASSBAND_NOCHANGE)
|
||||||
@ -1570,7 +1570,7 @@ int k3_set_split_mode(RIG *rig, vfo_t vfo, rmode_t tx_mode, pbwidth_t tx_width)
|
|||||||
if (priv->is_k4d || priv->is_k4hd)
|
if (priv->is_k4d || priv->is_k4hd)
|
||||||
{
|
{
|
||||||
// split can get turned off when modes are changing
|
// split can get turned off when modes are changing
|
||||||
// so if the rig did this independtly of us we turn it back on
|
// so if the rig did this independently of us we turn it back on
|
||||||
// even if the rig changes the split status should be the last thing we did
|
// even if the rig changes the split status should be the last thing we did
|
||||||
if (priv->split) { strcat(cmd_m, "FT1;"); }
|
if (priv->split) { strcat(cmd_m, "FT1;"); }
|
||||||
|
|
||||||
|
@ -932,7 +932,7 @@ int kenwood_open(RIG *rig)
|
|||||||
rig_debug(RIG_DEBUG_ERR, "%s: unknown id type (%s)...continuing\n", __func__,
|
rig_debug(RIG_DEBUG_ERR, "%s: unknown id type (%s)...continuing\n", __func__,
|
||||||
id);
|
id);
|
||||||
|
|
||||||
// Malachite SDR gives no reponse to ID and is supposed to be TS480 compatible
|
// Malachite SDR gives no response to ID and is supposed to be TS480 compatible
|
||||||
if (RIG_IS_MALACHITE) { strcpy(id, "ID020"); }
|
if (RIG_IS_MALACHITE) { strcpy(id, "ID020"); }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -369,7 +369,7 @@ int dds60_set_freq(RIG *rig, vfo_t vfo, freq_t freq)
|
|||||||
frg = (unsigned long)(((double)freq + priv->if_mix_freq) /
|
frg = (unsigned long)(((double)freq + priv->if_mix_freq) /
|
||||||
osc_ref * 4294967296.0 + 0.5);
|
osc_ref * 4294967296.0 + 0.5);
|
||||||
|
|
||||||
rig_debug(RIG_DEBUG_VERBOSE, "%s: word %lu, X6 multipler %d, phase %.2f\n",
|
rig_debug(RIG_DEBUG_VERBOSE, "%s: word %lu, X6 multiplier %d, phase %.2f\n",
|
||||||
__func__, frg, priv->multiplier, priv->phase_step * PHASE_INCR);
|
__func__, frg, priv->multiplier, priv->phase_step * PHASE_INCR);
|
||||||
|
|
||||||
control = priv->multiplier ? 0x01 : 0x00;
|
control = priv->multiplier ? 0x01 : 0x00;
|
||||||
|
@ -188,7 +188,7 @@ static const struct confparams elektor507_cfg_params[] =
|
|||||||
"10000000", RIG_CONF_NUMERIC, { .n = { 0, MHz(30), 1 } }
|
"10000000", RIG_CONF_NUMERIC, { .n = { 0, MHz(30), 1 } }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
TOK_XTALCAL, "xtal_cal", "Xtal Cal", "Cristal calibration",
|
TOK_XTALCAL, "xtal_cal", "Xtal Cal", "Crystal calibration",
|
||||||
"132", RIG_CONF_NUMERIC, { .n = { 0, 255, 1 } }
|
"132", RIG_CONF_NUMERIC, { .n = { 0, 255, 1 } }
|
||||||
},
|
},
|
||||||
{ RIG_CONF_END, NULL, }
|
{ RIG_CONF_END, NULL, }
|
||||||
|
@ -464,7 +464,7 @@ const struct rig_caps si570picusb_caps =
|
|||||||
* Funkamateur Sdr with Si570
|
* Funkamateur Sdr with Si570
|
||||||
*
|
*
|
||||||
* Same USB interface as AVR-USB, except different product string
|
* Same USB interface as AVR-USB, except different product string
|
||||||
* and Oscilator correction may be stored on the device
|
* and Oscillator correction may be stored on the device
|
||||||
*
|
*
|
||||||
* http://www.funkamateur.de
|
* http://www.funkamateur.de
|
||||||
* ( BX- 200 )
|
* ( BX- 200 )
|
||||||
|
@ -1474,7 +1474,7 @@ pcr_set_volume(RIG *rig, vfo_t vfo, float level)
|
|||||||
* 80-ff Noise squelch + S meter squelch ...
|
* 80-ff Noise squelch + S meter squelch ...
|
||||||
* Comparative S level = (squelch setting - 128) X 2
|
* Comparative S level = (squelch setting - 128) X 2
|
||||||
*
|
*
|
||||||
* Could do with some constatnts to add together to allow better (and more accurate)
|
* Could do with some constants to add together to allow better (and more accurate)
|
||||||
* use of Hamlib API. Otherwise may get unexpected squelch settings if have to do by hand.
|
* use of Hamlib API. Otherwise may get unexpected squelch settings if have to do by hand.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -81,7 +81,7 @@ MessageAide: DB "H",0Dh,0Ah
|
|||||||
DB " [I] = Erase and init RAM and EEPROM.",0Dh,0Ah
|
DB " [I] = Erase and init RAM and EEPROM.",0Dh,0Ah
|
||||||
DB " [K] = Set lock byte.",0Dh,0Ah
|
DB " [K] = Set lock byte.",0Dh,0Ah
|
||||||
DB " [L] = Print latch state.",0Dh,0Ah
|
DB " [L] = Print latch state.",0Dh,0Ah
|
||||||
DB " [M] = Edit external RAM manualy.",0Dh,0Ah
|
DB " [M] = Edit external RAM manually.",0Dh,0Ah
|
||||||
DB " [N] = Set current channel.",0Dh,0Ah
|
DB " [N] = Set current channel.",0Dh,0Ah
|
||||||
DB " [O] = Set volume.",0Dh,0Ah
|
DB " [O] = Set volume.",0Dh,0Ah
|
||||||
DB " [P] = Edit/Add channel.",0Dh,0Ah
|
DB " [P] = Edit/Add channel.",0Dh,0Ah
|
||||||
@ -123,7 +123,7 @@ MessageAide: DB "H",0Dh,0Ah
|
|||||||
b4: PLL locked (Read only)
|
b4: PLL locked (Read only)
|
||||||
b5: Long key push (Internal)
|
b5: Long key push (Internal)
|
||||||
b6: Key bounce (Internal)
|
b6: Key bounce (Internal)
|
||||||
b7: Force LCD refresh when set. Automaticaly cleared.
|
b7: Force LCD refresh when set. Automatically cleared.
|
||||||
|
|
||||||
Channel state byte:
|
Channel state byte:
|
||||||
b0: Shift enable when true
|
b0: Shift enable when true
|
||||||
|
@ -931,7 +931,7 @@ int ft100_set_ptt(RIG *rig, vfo_t vfo, ptt_t ptt)
|
|||||||
if (split) { rig_set_vfo(rig, RIG_VFO_A); }
|
if (split) { rig_set_vfo(rig, RIG_VFO_A); }
|
||||||
|
|
||||||
hl_usleep(100 *
|
hl_usleep(100 *
|
||||||
1000); // give ptt some time to do it's thing -- fake it was not reseting freq after tx
|
1000); // give ptt some time to do its thing -- fake it was not resetting freq after tx
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
@ -127,7 +127,7 @@ struct ft817_priv_data
|
|||||||
/* freq & mode status */
|
/* freq & mode status */
|
||||||
struct timeval fm_status_tv;
|
struct timeval fm_status_tv;
|
||||||
unsigned char fm_status[5]; /* 5 bytes, NOT related to YAESU_CMD_LENGTH */
|
unsigned char fm_status[5]; /* 5 bytes, NOT related to YAESU_CMD_LENGTH */
|
||||||
/* Digi mode is not part of regular fm_status reponse.
|
/* Digi mode is not part of regular fm_status response.
|
||||||
* So keep track of it in a separate variable. */
|
* So keep track of it in a separate variable. */
|
||||||
unsigned char dig_mode;
|
unsigned char dig_mode;
|
||||||
};
|
};
|
||||||
|
@ -353,7 +353,7 @@ typedef struct _ft980_memory_t
|
|||||||
#define FT_980_STATUSFLAG_UPDN_MASK 0X30
|
#define FT_980_STATUSFLAG_UPDN_MASK 0X30
|
||||||
#define FT_980_STATUSFLAG_CLAR_MASK 0x40
|
#define FT_980_STATUSFLAG_CLAR_MASK 0x40
|
||||||
|
|
||||||
/* op_vfo: VFO decode: Main, Gen, and 3 unsused AUX */
|
/* op_vfo: VFO decode: Main, Gen, and 3 unused AUX */
|
||||||
#define FT980_VFO_HAM_SEL 0x80
|
#define FT980_VFO_HAM_SEL 0x80
|
||||||
#define FT980_VFO_GEN_SEL 0x00
|
#define FT980_VFO_GEN_SEL 0x00
|
||||||
#define FT980_VFO_AUX1_SEL 0x81
|
#define FT980_VFO_AUX1_SEL 0x81
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
Standart protocol for both El and Az axes. Working with russian Radant version 1.0 - 1.4: Радант AZV-1
|
Standard protocol for both El and Az axes. Working with russian Radant version 1.0 - 1.4: Радант AZV-1
|
||||||
|
|
||||||
Serial port mode 9600 8N1.
|
Serial port mode 9600 8N1.
|
||||||
|
|
||||||
|
@ -297,7 +297,7 @@ AMP *HAMLIB_API amp_init(amp_model_t amp_model)
|
|||||||
* \return RIG_OK if the operation has been successful, otherwise a **negative
|
* \return RIG_OK if the operation has been successful, otherwise a **negative
|
||||||
* value** if an error occurred (in which case, cause is set appropriately).
|
* value** if an error occurred (in which case, cause is set appropriately).
|
||||||
*
|
*
|
||||||
* \retval RIG_OK Communication channel succesfully opened.
|
* \retval RIG_OK Communication channel successfully opened.
|
||||||
* \retval RIG_EINVAL \a amp is NULL or inconsistent.
|
* \retval RIG_EINVAL \a amp is NULL or inconsistent.
|
||||||
*
|
*
|
||||||
* \sa amp_init(), amp_close()
|
* \sa amp_init(), amp_close()
|
||||||
|
@ -375,7 +375,7 @@ int HAMLIB_API dec2dms(double dec,
|
|||||||
* notation common on many GPS units.
|
* notation common on many GPS units.
|
||||||
*
|
*
|
||||||
* When passed a value < -180 or > 180, the value will be normalized
|
* When passed a value < -180 or > 180, the value will be normalized
|
||||||
* within these limits and the sign set apropriately.
|
* within these limits and the sign set appropriately.
|
||||||
*
|
*
|
||||||
* Upon return dec2dmmm guarantees 0 >= \a degrees <= 180,
|
* Upon return dec2dmmm guarantees 0 >= \a degrees <= 180,
|
||||||
* 0.0 >= \a minutes < 60.0.
|
* 0.0 >= \a minutes < 60.0.
|
||||||
|
@ -1858,7 +1858,7 @@ vfo_t HAMLIB_API vfo_fixup2a(RIG *rig, vfo_t vfo, split_t split,
|
|||||||
return vfo_fixup(rig, vfo, split);
|
return vfo_fixup(rig, vfo, split);
|
||||||
}
|
}
|
||||||
|
|
||||||
// we're mappping our VFO here to work with either VFO A/B rigs or Main/Sub
|
// we're mapping our VFO here to work with either VFO A/B rigs or Main/Sub
|
||||||
// Hamlib uses VFO_A and VFO_B as TX/RX as of 2021-04-13
|
// Hamlib uses VFO_A and VFO_B as TX/RX as of 2021-04-13
|
||||||
// So we map these to Main/Sub as required
|
// So we map these to Main/Sub as required
|
||||||
vfo_t HAMLIB_API vfo_fixup(RIG *rig, vfo_t vfo, split_t split)
|
vfo_t HAMLIB_API vfo_fixup(RIG *rig, vfo_t vfo, split_t split)
|
||||||
|
@ -506,7 +506,7 @@ RIG *HAMLIB_API rig_init(rig_model_t rig_model)
|
|||||||
strlen(caps->hamlib_check_rig_caps)) != 0)
|
strlen(caps->hamlib_check_rig_caps)) != 0)
|
||||||
{
|
{
|
||||||
rig_debug(RIG_DEBUG_ERR,
|
rig_debug(RIG_DEBUG_ERR,
|
||||||
"%s: Error validating integrity of rig_caps\nPossible hamlib DLL incompatiblity\n",
|
"%s: Error validating integrity of rig_caps\nPossible hamlib DLL incompatibility\n",
|
||||||
__func__);
|
__func__);
|
||||||
return (NULL);
|
return (NULL);
|
||||||
}
|
}
|
||||||
@ -7002,7 +7002,7 @@ int HAMLIB_API rig_cookie(RIG *rig, enum cookie_e cookie_cmd, char *cookie,
|
|||||||
int cookie_len)
|
int cookie_len)
|
||||||
{
|
{
|
||||||
// only 1 client can have the cookie so these can be static
|
// only 1 client can have the cookie so these can be static
|
||||||
// this should also prevent problems with DLLs & shared libraies
|
// this should also prevent problems with DLLs & shared libraries
|
||||||
// the debug_msg is another non-thread-safe which this will help fix
|
// the debug_msg is another non-thread-safe which this will help fix
|
||||||
static char
|
static char
|
||||||
cookie_save[HAMLIB_COOKIE_SIZE]; // only one client can have the cookie
|
cookie_save[HAMLIB_COOKIE_SIZE]; // only one client can have the cookie
|
||||||
@ -7026,7 +7026,7 @@ int HAMLIB_API rig_cookie(RIG *rig, enum cookie_e cookie_cmd, char *cookie,
|
|||||||
return -RIG_EINVAL; // nothing to do
|
return -RIG_EINVAL; // nothing to do
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Accesing cookie_save and time_last_used must be done with lock held.
|
/* Accessing cookie_save and time_last_used must be done with lock held.
|
||||||
* So keep code simple and lock it during the whole operation. */
|
* So keep code simple and lock it during the whole operation. */
|
||||||
MUTEX_LOCK(mutex_rig_cookie);
|
MUTEX_LOCK(mutex_rig_cookie);
|
||||||
|
|
||||||
|
@ -350,7 +350,7 @@ ROT *HAMLIB_API rot_init(rot_model_t rot_model)
|
|||||||
* \return RIG_OK if the operation has been successful, otherwise a **negative
|
* \return RIG_OK if the operation has been successful, otherwise a **negative
|
||||||
* value** if an error occurred (in which case, cause is set appropriately).
|
* value** if an error occurred (in which case, cause is set appropriately).
|
||||||
*
|
*
|
||||||
* \retval RIG_OK Communication channel succesfully opened.
|
* \retval RIG_OK Communication channel successfully opened.
|
||||||
* \retval RIG_EINVAL \a rot is NULL or inconsistent.
|
* \retval RIG_EINVAL \a rot is NULL or inconsistent.
|
||||||
* \retval RIG_ENIMPL Communication port type is not implemented yet.
|
* \retval RIG_ENIMPL Communication port type is not implemented yet.
|
||||||
*
|
*
|
||||||
@ -635,7 +635,7 @@ int HAMLIB_API rot_cleanup(ROT *rot)
|
|||||||
* \brief Set the azimuth and elevation of the rotator.
|
* \brief Set the azimuth and elevation of the rotator.
|
||||||
*
|
*
|
||||||
* \param rot The #ROT handle.
|
* \param rot The #ROT handle.
|
||||||
* \param azimuth The azimuth to set in decimal degress.
|
* \param azimuth The azimuth to set in decimal degrees.
|
||||||
* \param elevation The elevation to set in decimal degrees.
|
* \param elevation The elevation to set in decimal degrees.
|
||||||
*
|
*
|
||||||
* Sets the azimuth and elevation of the rotator.
|
* Sets the azimuth and elevation of the rotator.
|
||||||
@ -933,7 +933,7 @@ int HAMLIB_API rot_move(ROT *rot, int direction, int speed)
|
|||||||
*
|
*
|
||||||
* \return A pointer to static memory containing an ASCII nul terminated
|
* \return A pointer to static memory containing an ASCII nul terminated
|
||||||
* string (C string) if the operation has been successful, otherwise NULL if
|
* string (C string) if the operation has been successful, otherwise NULL if
|
||||||
* \a rot is NULL or inconsisten or the rot_caps#get_info() capability is not
|
* \a rot is NULL or inconsistent or the rot_caps#get_info() capability is not
|
||||||
* available.
|
* available.
|
||||||
*/
|
*/
|
||||||
const char *HAMLIB_API rot_get_info(ROT *rot)
|
const char *HAMLIB_API rot_get_info(ROT *rot)
|
||||||
|
@ -1055,7 +1055,7 @@ HAMLIB_EXPORT(int) rig_settings_save(char *setting, void *value,
|
|||||||
case e_DOUBLE: dvalue = (double *)value; vformat = "%s=%f\n"; break;
|
case e_DOUBLE: dvalue = (double *)value; vformat = "%s=%f\n"; break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
rig_debug(RIG_DEBUG_ERR, "%s: Uknown valuetype=%d\n", __func__, valuetype);
|
rig_debug(RIG_DEBUG_ERR, "%s: Unknown valuetype=%d\n", __func__, valuetype);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fp == NULL)
|
if (fp == NULL)
|
||||||
@ -1076,7 +1076,7 @@ HAMLIB_EXPORT(int) rig_settings_save(char *setting, void *value,
|
|||||||
case e_DOUBLE: fprintf(fp, vformat, setting, *dvalue); break;
|
case e_DOUBLE: fprintf(fp, vformat, setting, *dvalue); break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
rig_debug(RIG_DEBUG_ERR, "%s: Uknown valuetype=%d\n", __func__, valuetype);
|
rig_debug(RIG_DEBUG_ERR, "%s: Unknown valuetype=%d\n", __func__, valuetype);
|
||||||
}
|
}
|
||||||
|
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
|
Loading…
Reference in New Issue
Block a user