kopia lustrzana https://github.com/Hamlib/Hamlib
Fix typos in comments
rodzic
82c8a0795e
commit
6036a65d2e
|
|
@ -2901,7 +2901,7 @@ struct rig_state {
|
|||
*/
|
||||
struct rig_state_deprecated {
|
||||
/********* ENSURE YOU DO NOT EVER MODIFY THIS STRUCTURE *********/
|
||||
/********* It will remain forever to provide DLL backwards compatiblity ******/
|
||||
/********* It will remain forever to provide DLL backwards compatibility ******/
|
||||
/*
|
||||
* overridable fields
|
||||
*/
|
||||
|
|
@ -3061,7 +3061,7 @@ typedef int (*spectrum_cb_t)(RIG *,
|
|||
* \sa rig_set_freq_callback(), rig_set_mode_callback(), rig_set_vfo_callback(),
|
||||
* rig_set_ptt_callback(), rig_set_dcd_callback()
|
||||
*/
|
||||
// Do NOT add/remove from this structure -- it will break DLL backwards compatiblity
|
||||
// Do NOT add/remove from this structure -- it will break DLL backwards compatibility
|
||||
struct rig_callbacks {
|
||||
freq_cb_t freq_event; /*!< Frequency change event */
|
||||
rig_ptr_t freq_arg; /*!< Frequency change argument */
|
||||
|
|
|
|||
|
|
@ -258,7 +258,7 @@ int smartsdr_open(RIG *rig)
|
|||
char cmd[64];
|
||||
int loops = 20;
|
||||
ENTERFUNC;
|
||||
// Once we've connected and hit here we should have two messages queued from the intial connect
|
||||
// Once we've connected and hit here we should have two messages queued from the initial connect
|
||||
|
||||
sprintf(cmd, "sub slice %d", priv->slicenum);
|
||||
//sprintf(cmd, "sub slice all");
|
||||
|
|
|
|||
|
|
@ -269,7 +269,7 @@ int icmarine_transaction(RIG *rig, const char *cmd, const char *param,
|
|||
cmd_len += snprintf(cmdbuf + cmd_len, BUFSZ - cmd_len, ",%s", param);
|
||||
}
|
||||
|
||||
/* NMEA checksum, betwwen '$' and '*' */
|
||||
/* NMEA checksum, between '$' and '*' */
|
||||
for (i = 1; i < cmd_len; i++)
|
||||
{
|
||||
csum = csum ^ (unsigned)cmdbuf[i];
|
||||
|
|
|
|||
|
|
@ -291,7 +291,7 @@ again1:
|
|||
RETURNFUNC(-RIG_EPROTO);
|
||||
}
|
||||
|
||||
// first 2 bytes of everyting 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
|
||||
if (memcmp(&buf[2], &sendbuf[2], frm_len - 2) != 0)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -106,7 +106,7 @@ struct rig_caps ic1275_caps =
|
|||
},
|
||||
|
||||
.tuning_steps = {
|
||||
{IC1275_MODES, 10}, /* TBC: does this rig supports settin tuning step? */
|
||||
{IC1275_MODES, 10}, /* TBC: does this rig supports setting tuning step? */
|
||||
RIG_TS_END,
|
||||
},
|
||||
/* mode/filter list, remember: order matters! */
|
||||
|
|
|
|||
|
|
@ -117,7 +117,7 @@ struct rig_caps ic271_caps =
|
|||
},
|
||||
|
||||
.tuning_steps = {
|
||||
{IC271_MODES, 10}, /* TBC: does this rig supports settin tuning step? */
|
||||
{IC271_MODES, 10}, /* TBC: does this rig supports setting tuning step? */
|
||||
RIG_TS_END,
|
||||
},
|
||||
/* mode/filter list, remember: order matters! */
|
||||
|
|
|
|||
|
|
@ -118,7 +118,7 @@ struct rig_caps ic275_caps =
|
|||
},
|
||||
|
||||
.tuning_steps = {
|
||||
{IC275_MODES, 10}, /* TBC: does this rig supports settin tuning step? */
|
||||
{IC275_MODES, 10}, /* TBC: does this rig supports setting tuning step? */
|
||||
RIG_TS_END,
|
||||
},
|
||||
/* mode/filter list, remember: order matters! */
|
||||
|
|
@ -217,7 +217,7 @@ struct rig_caps ic375_caps =
|
|||
},
|
||||
|
||||
.tuning_steps = {
|
||||
{IC275_MODES, 10}, /* TBC: does this rig supports settin tuning step? */
|
||||
{IC275_MODES, 10}, /* TBC: does this rig supports setting tuning step? */
|
||||
RIG_TS_END,
|
||||
},
|
||||
/* mode/filter list, remember: order matters! */
|
||||
|
|
|
|||
|
|
@ -116,7 +116,7 @@ struct rig_caps ic471_caps =
|
|||
},
|
||||
|
||||
.tuning_steps = {
|
||||
{IC471_MODES, 10}, /* TBC: does this rig supports settin tuning step? */
|
||||
{IC471_MODES, 10}, /* TBC: does this rig supports setting tuning step? */
|
||||
RIG_TS_END,
|
||||
},
|
||||
/* mode/filter list, remember: order matters! */
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@ struct rig_caps ic475_caps =
|
|||
},
|
||||
|
||||
.tuning_steps = {
|
||||
{IC475_MODES, 10}, /* TBC: does this rig supports settin tuning step? */
|
||||
{IC475_MODES, 10}, /* TBC: does this rig supports setting tuning step? */
|
||||
RIG_TS_END,
|
||||
},
|
||||
/* mode/filter list, remember: order matters! */
|
||||
|
|
@ -216,7 +216,7 @@ struct rig_caps ic575_caps =
|
|||
},
|
||||
|
||||
.tuning_steps = {
|
||||
{IC475_MODES, 10}, /* TBC: does this rig supports settin tuning step? */
|
||||
{IC475_MODES, 10}, /* TBC: does this rig supports setting tuning step? */
|
||||
RIG_TS_END,
|
||||
},
|
||||
/* mode/filter list, remember: order matters! */
|
||||
|
|
|
|||
|
|
@ -125,7 +125,7 @@ struct rig_caps ic970_caps =
|
|||
},
|
||||
|
||||
.tuning_steps = {
|
||||
{IC970_MODES, 10}, /* TBC: does this rig supports settin tuning step? */
|
||||
{IC970_MODES, 10}, /* TBC: does this rig supports setting tuning step? */
|
||||
RIG_TS_END,
|
||||
},
|
||||
/* mode/filter list, remember: order matters! */
|
||||
|
|
|
|||
|
|
@ -1290,7 +1290,7 @@ retry_open:
|
|||
}
|
||||
|
||||
#if 0 // do not do this here -- needs to be done when ranges are requested instead as this is very slow
|
||||
icom_get_freq_range(rig); // try get to get rig range capability dyamically
|
||||
icom_get_freq_range(rig); // try get to get rig range capability dynamically
|
||||
#endif
|
||||
|
||||
rp->retry = retry_save;
|
||||
|
|
@ -1318,7 +1318,7 @@ int icom_rig_close(RIG *rig)
|
|||
int retval = abs(rig_set_powerstat(rig, 0));
|
||||
|
||||
// this is only a fatal error if powerstat is implemented
|
||||
// if not iplemented than we're at an error here
|
||||
// if not implemented than we're at an error here
|
||||
if (retval != RIG_OK && retval != RIG_ENIMPL && retval != RIG_ENAVAIL)
|
||||
{
|
||||
rig_debug(RIG_DEBUG_WARN, "%s: unexpected retval here: %s\n",
|
||||
|
|
@ -8194,7 +8194,7 @@ int icom_set_powerstat(RIG *rig, powerstat_t status)
|
|||
continue;
|
||||
}
|
||||
|
||||
// Use get_freq as all rigs should repond to this
|
||||
// Use get_freq as all rigs should respond to this
|
||||
retval = rig_get_freq(rig, RIG_VFO_CURR, &freq);
|
||||
|
||||
if (retval == RIG_OK)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Once included these values can be overidden in the back-end
|
||||
// Once included these values can be overridden in the back-end
|
||||
// Known variants are PREAMP, ATT, NB, CWPITCH, IF, NOTCHF, VOXDELAY, BKINDL, BKIN_DLYMS, RFPOWER_METER(255 or 100), RFPOWER_METER_WATTS(255 or 100)
|
||||
// cppcheck-suppress *
|
||||
/* raw data */
|
||||
|
|
|
|||
|
|
@ -1118,7 +1118,7 @@ int tmd710_push_mu(RIG *rig, tmd710_mu *mu_struct)
|
|||
|
||||
rig_debug(RIG_DEBUG_TRACE, "%s: called\n", __func__);
|
||||
|
||||
// we re-use fo_struct->vfo for the channel#
|
||||
// we reuse fo_struct->vfo for the channel#
|
||||
snprintf(cmdbuf, sizeof(cmdbuf),
|
||||
"MU %1d,%1d,%1d,%1d,%1d,%1d,%1d,%1d,%02d,%1d,"
|
||||
"%1d,%1d,%1d,%1d,%1d,%1d,%1d,%1d,%1d,%1d,"
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ rig_init() "id;" ts2000_init()
|
|||
If "SC1;", on either main or sub *both* must be
|
||||
halted before most commands will function. These may
|
||||
be restored after command is executed or not if the
|
||||
command superceeds scan mode.
|
||||
command supersedes scan mode.
|
||||
"fr;"/"ft;" or "if;" If in memory mode, the rig won't always
|
||||
act appropriately to serial port requests.
|
||||
"qr;" if quick memory set, same as previous
|
||||
|
|
|
|||
|
|
@ -978,7 +978,7 @@ int tt588_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val)
|
|||
else
|
||||
{
|
||||
// transmit reply example S<0x8f><0x01> 0x0f=15 watts, 0x01
|
||||
// it appears 0x01 refelected = 0W since 0 means not read yet
|
||||
// it appears 0x01 reflected = 0W since 0 means not read yet
|
||||
int strength;
|
||||
int reflected = (int)lvlbuf[2];
|
||||
reflected = reflected > 0 ? reflected - 1 : 0;
|
||||
|
|
|
|||
|
|
@ -408,7 +408,7 @@ static char which_vfo(const RIG *rig, vfo_t vfo)
|
|||
* \param rig must != NULL
|
||||
* \param vfo RIG_VFO_A or RIG_VFO_B
|
||||
* \param freq
|
||||
* \brief Set a frequence into the specified VFO
|
||||
* \brief Set a frequency into the specified VFO
|
||||
*
|
||||
* assumes STATE(rig)->priv!=NULL
|
||||
* \n assumes priv->mode in AM,CW,LSB or USB.
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@
|
|||
* Right now, this FT-1000MP implementation is a big mess.
|
||||
* This is actually a fast copy past (from ft920.c),
|
||||
* just to make get_freq/set_freq and co to work for a friend of mine.
|
||||
* I wouln't mind if someone could take over the maintenance
|
||||
* I wouldn't mind if someone could take over the maintenance
|
||||
* of this piece of code, and eventually rewrite it.
|
||||
* '02, Stephane
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -1652,7 +1652,7 @@ static int ft817_set_freq(RIG *rig, vfo_t vfo, freq_t freq)
|
|||
rig_debug(RIG_DEBUG_VERBOSE, "ft817: requested freq = %"PRIfreq" Hz\n", freq);
|
||||
|
||||
/* fill in the frequency */
|
||||
/* changed to truncate the freq for gpredict compatiblity */
|
||||
/* changed to truncate the freq for gpredict compatibility */
|
||||
to_bcd_be(data, (freq + 0) / 10, 8);
|
||||
|
||||
rig_force_cache_timeout(
|
||||
|
|
|
|||
|
|
@ -2001,7 +2001,7 @@ int newcat_set_ptt(RIG *rig, vfo_t vfo, ptt_t ptt)
|
|||
&& (is_ftdx3000 || is_ftdx3000dm)
|
||||
)
|
||||
{
|
||||
// DX3000 with seperate rx/tx antennas was failing frequency change
|
||||
// DX3000 with separate rx/tx antennas was failing frequency change
|
||||
// so we increased the sleep from 100ms to 300ms
|
||||
hl_usleep(300 * 1000);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -354,7 +354,7 @@ const struct rot_caps st2_rot_caps =
|
|||
|
||||
/* ************************************************************************* */
|
||||
/*
|
||||
* F1TE Tracker, GS232 withtout position feedback
|
||||
* F1TE Tracker, GS232 without position feedback
|
||||
*
|
||||
* http://www.f1te.org/index.php?option=com_content&view=article&id=19&Itemid=39
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -120,7 +120,7 @@ Subject: Rotor Card and Rotor-EZ command reference
|
|||
> Rotor Card and Rotor-EZ into our library. In the course of several Web
|
||||
> searches I have downloaded the Hy-Gain DCU-1 manual from their site and
|
||||
> I've also visited the Digital Audio Rotor-EZ troubleshooting site.
|
||||
> Between the two I have found a couple of descrepancies in the command
|
||||
> Between the two I have found a couple of discrepancies in the command
|
||||
> set. If possible, I would like a copy of the complete command set and
|
||||
> their syntax for these two boards for our project.
|
||||
>
|
||||
|
|
|
|||
|
|
@ -99,7 +99,7 @@ Covered are:
|
|||
- get Riginfo
|
||||
|
||||
-rig_debug_level_e not verified (Function is Void, VB Dokumentation
|
||||
says this is not possible to be marshaled, but Compiler is still accapting this)
|
||||
says this is not possible to be marshaled, but Compiler is still accepting this)
|
||||
|
||||
|
||||
To get access to the Class you have to add something like this in your Main Class
|
||||
|
|
|
|||
|
|
@ -877,7 +877,7 @@ RIG *HAMLIB_API rig_init(rig_model_t rig_model)
|
|||
rs->announces = caps->announces;
|
||||
|
||||
rp->fd = pttp->fd = dcdp->fd = -1;
|
||||
// some rigs (like SDR) behave differnt when checking for power on
|
||||
// some rigs (like SDR) behave different when checking for power on
|
||||
// So we assume power is on until one of the backends KNOWS it is off
|
||||
rs->powerstat = RIG_POWER_ON; // default to power on until proven otherwise
|
||||
|
||||
|
|
@ -9006,7 +9006,7 @@ int morse_data_handler_set_keyspd(RIG *rig, int keyspd)
|
|||
* \retval The address of the enumed structure
|
||||
*
|
||||
* Note: This is meant for use by the HAMLIB_???PORT macros mostly. Only
|
||||
* compatiblity with them is supported.
|
||||
* compatibility with them is supported.
|
||||
*
|
||||
* \sa amp_data_pointer, rot_data_pointer
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
/* This program does a fast iteration of v f m t s
|
||||
* By Michael Black W9MDB
|
||||
* This allows testing of another program using rigctld
|
||||
* to test changin vfo, freq, mode, PTT, or split and see the change immediately in this program.
|
||||
* to test changing vfo, freq, mode, PTT, or split and see the change immediately in this program.
|
||||
* Used in testing caching effects that have been added
|
||||
* To compile:
|
||||
* gcc -I../src -I../include -g -o cachetest2 cachetest2.c -lhamlib
|
||||
|
|
|
|||
|
|
@ -699,7 +699,7 @@ int dump_csv_chan(RIG *rig,
|
|||
|
||||
if (mem_caps->flags)
|
||||
{
|
||||
if (chan.tag[0] != 0) // then we need the seperator
|
||||
if (chan.tag[0] != 0) // then we need the separator
|
||||
{
|
||||
fprintf(f, "%x%c", chan.flags, csv_sep);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1795,7 +1795,7 @@ readline_repeat:
|
|||
// chk_vfo is the one command we'll allow without a password
|
||||
// since it's in the initial handshake
|
||||
int preCmd =
|
||||
0; // some command are allowed without passoword to satisfy rigctld initialization from rigctl -m 2
|
||||
0; // some command are allowed without password to satisfy rigctld initialization from rigctl -m 2
|
||||
|
||||
if (cmd_entry->arg1 != NULL)
|
||||
{
|
||||
|
|
@ -4730,7 +4730,7 @@ declare_proto_rig(dump_state)
|
|||
rig_debug(RIG_DEBUG_ERR, "%s: chk_vfo_executed=%d\n", __func__,
|
||||
chk_vfo_executed);
|
||||
|
||||
if (chk_vfo_executed) // for 3.3 compatiblility
|
||||
if (chk_vfo_executed) // for 3.3 compatibility
|
||||
{
|
||||
fprintf(fout, "vfo_ops=0x%x\n", rig->caps->vfo_ops);
|
||||
fprintf(fout, "ptt_type=0x%x\n",
|
||||
|
|
@ -5141,7 +5141,7 @@ declare_proto_rig(send_cmd)
|
|||
|
||||
rig_debug(RIG_DEBUG_TRACE, "%s: arg1=%s\n", __func__, arg1);
|
||||
|
||||
// note that hex sscanf expectes at least 2 values to pass this check
|
||||
// note that hex sscanf expects at least 2 values to pass this check
|
||||
// is there any situation where only one x00 value would be written?
|
||||
unsigned int n, i1, i2;
|
||||
n = sscanf(arg1, "x%x x%x", &i1, &i2);
|
||||
|
|
@ -5807,7 +5807,7 @@ static int parse_hex(const char *s, unsigned char *buf, int len)
|
|||
return i;
|
||||
}
|
||||
|
||||
// sends whatever is in s -- no addtions or changes done
|
||||
// sends whatever is in s -- no additions or changes done
|
||||
extern int netrigctl_send_raw(RIG *rig, char *s);
|
||||
/* 0xa4 */
|
||||
declare_proto_rig(send_raw)
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue