From d7b332c3f7d28573aec2a234d3c40ee6b7f000a0 Mon Sep 17 00:00:00 2001 From: Daniele Forsi Date: Fri, 24 Jul 2020 09:02:12 +0200 Subject: [PATCH] Fix spelling errors Fixed using the following command: codespell --write-changes --summary --skip=*.m4 --ignore-words-list="develope,get's,quitt,setts,som,ue,vektor" codespell --write-changes --summary --skip=aclocal.m4,lib --ignore-words-list="develope,get's,quitt,setts,som,ue,vektor" Codespell home page: https://github.com/codespell-project/codespell --- INSTALL | 2 +- NEWS | 6 +- PLAN | 2 +- README.betatester | 2 +- README.developer | 8 +- README.release | 6 +- bindings/Makefile.am | 2 +- bindings/README.python | 4 +- configure.ac | 2 +- cppcheck.sh | 2 +- doc/README.man-pages | 2 +- doc/man1/rigctld.1 | 2 +- dummy/netrigctl.c | 6 +- dummy/trxmanager.c | 2 +- extra/gnuradio/gnuradio.cc | 2 +- extra/kylix/HamlibComponents.pas | 4 +- extra/kylix/hamlib_rigapi.pas | 6 +- extra/kylix/hamlib_rotapi.pas | 2 +- extra/kylix/tests/HamlibRadioForm.pas | 4 +- include/hamlib/amplifier.h | 2 +- include/hamlib/amplist.h | 2 +- include/hamlib/rig.h | 6 +- include/hamlib/riglist.h | 4 +- include/hamlib/rotator.h | 4 +- include/hamlib/rotlist.h | 2 +- macros/ax_lua.m4 | 2 +- rigs/adat/adat.c | 2 +- rigs/alinco/dx77.c | 2 +- rigs/aor/ar7030.c | 10 +- rigs/aor/ar7030p_utils.c | 4 +- rigs/barrett/barrett.c | 4 +- rigs/drake/drake.c | 2 +- rigs/drake/r8a.c | 2 +- rigs/drake/r8b.c | 2 +- rigs/elad/elad.c | 4 +- rigs/elad/elad.h | 2 +- rigs/flexradio/dttsp.c | 4 +- rigs/icmarine/icmarine.c | 4 +- rigs/icom/frame.c | 6 +- rigs/icom/ic271.c | 2 +- rigs/icom/ic703.c | 10 +- rigs/icom/ic706.c | 30 ++-- rigs/icom/ic7100.c | 2 +- rigs/icom/ic718.c | 6 +- rigs/icom/ic746.c | 2 +- rigs/icom/ic775.c | 10 +- rigs/icom/ic820h.c | 2 +- rigs/icom/ic821h.c | 2 +- rigs/icom/ic9100.c | 2 +- rigs/icom/icom.c | 8 +- rigs/icom/icom_defs.h | 2 +- rigs/icom/icr7000.c | 2 +- rigs/jrc/jrc.c | 2 +- rigs/kenwood/README.ts2k | 2 +- rigs/kenwood/ic10.c | 4 +- rigs/kenwood/kenwood.c | 4 +- rigs/kenwood/kenwood.h | 2 +- rigs/kenwood/pihpsdr.c | 4 +- rigs/kenwood/th.c | 4 +- rigs/kenwood/thd74.c | 2 +- rigs/kenwood/ts2000.c | 4 +- rigs/kenwood/ts2000.txt | 22 +-- rigs/kit/elektor507.c | 2 +- rigs/kit/rs_hfiq.c | 2 +- rigs/kit/si570avrusb.c | 2 +- rigs/rs/gp2000.c | 4 +- rigs/tentec/omnivii.c | 2 +- rigs/tentec/orion.c | 2 +- rigs/tentec/paragon.c | 4 +- rigs/tentec/rx350.c | 2 +- rigs/tentec/tt550.c | 2 +- rigs/tuner/videodev.h | 2 +- rigs/tuner/videodev2.h | 4 +- rigs/uniden/uniden.c | 4 +- rigs/uniden/uniden_digital.c | 8 +- rigs/yaesu/ft1000mp.c | 8 +- rigs/yaesu/ft747.c | 4 +- rigs/yaesu/ft747.h | 2 +- rigs/yaesu/ft757gx.h | 2 +- rigs/yaesu/ft840.h | 2 +- rigs/yaesu/ft847.c | 2 +- rigs/yaesu/ft890.h | 2 +- rigs/yaesu/ft900.h | 2 +- rigs/yaesu/ft920.h | 4 +- rigs/yaesu/newcat.c | 10 +- rigs/yaesu/vr5000.c | 6 +- rigs/yaesu/vx1700.c | 2 +- rotators/ars/ars.c | 6 +- rotators/celestron/celestron.c | 4 +- rotators/easycomm/easycomm.txt | 2 +- rotators/fodtrack/fodtrack.c | 2 +- rotators/gs232a/gs232.c | 6 +- rotators/gs232a/gs232a.c | 4 +- rotators/gs232a/gs232b.c | 4 +- rotators/ioptron/rot_ioptron.c | 8 +- rotators/m2/rc2800.c | 4 +- rotators/meade/meade.c | 4 +- rotators/sartek/sartek.c | 2 +- rotators/ts7400/include/peekpoke.c | 2 +- rotators/ts7400/include/readADC.c | 4 +- rotators/ts7400/include/test7400ADC.c | 4 +- scripts/build-VB.NET.sh | 4 +- src/amp_conf.c | 10 +- src/amplifier.c | 28 ++-- src/conf.c | 14 +- src/debug.c | 4 +- src/event.c | 34 ++--- src/iofunc.c | 8 +- src/mem.c | 60 ++++---- src/microham.c | 4 +- src/misc.h | 4 +- src/rig.c | 212 +++++++++++++------------- src/rot_conf.c | 10 +- src/rotator.c | 40 ++--- src/serial.c | 2 +- src/settings.c | 50 +++--- src/tones.c | 32 ++-- src/usb_port.c | 2 +- tests/README | 2 +- tests/ampctl_parse.c | 6 +- tests/dumpcaps_amp.c | 2 +- tests/dumpcaps_rot.c | 2 +- tests/memcsv.c | 4 +- tests/rig_bench.c | 2 +- tests/rigctl_parse.c | 8 +- tests/rigmatrix.c | 2 +- tests/rigsmtr.c | 2 +- tests/rigswr.c | 2 +- tests/rotctl_parse.c | 6 +- tests/testbcd.c | 2 +- tests/testctld.pl | 4 +- tests/testfreq.c | 2 +- tests/testloc.c | 18 +-- tests/testrig.c | 4 +- tests/testrotctld.pl | 2 +- 135 files changed, 498 insertions(+), 498 deletions(-) diff --git a/INSTALL b/INSTALL index e1aef7302..81b451bf3 100644 --- a/INSTALL +++ b/INSTALL @@ -317,7 +317,7 @@ non-default --prefix is passed to 'configure', the 'lappend' line in tcltest.tcl script will need to be modified accordingly so the script can load the Hamlib package. As TCL doesn't seem to have a "standard" location for additional packages and since there seemed to be no common location among distributions, -this path was chosen abitrarily. Any patches to improve installation path +this path was chosen arbitrarily. Any patches to improve installation path discovery of local packages are welcome. Lua binding will be installed into $(libdir)/lua/$(LUA_VERSION) (default). diff --git a/NEWS b/NEWS index b36d773a7..6ac54b6f4 100644 --- a/NEWS +++ b/NEWS @@ -62,7 +62,7 @@ Version 3.2 * New Flrig backend, Mike, W9MDB * New model, IC-M710, Mike, W9MDB * Build instructions and test script for Python3 - * Rename autogen.sh to bootsrap and don't call configure + * Rename autogen.sh to bootstrap and don't call configure * micro-ham support. Christoph, DL1YCF * New rotator, SPID MD-01/02 in ROT2 mode, Norvald Ryeng, LA6YKA * New model, Flex 6400/6600, Mike, W9MDB @@ -378,13 +378,13 @@ Version 1.2.0 - locator and dec/dms interface rework - bump library CURRENT version info * new backends: Lowe (HF-235), FlexRadio (SDR-1000), - skelton TAPR (DSP-10), skelton RFT, + skeleton TAPR (DSP-10), skeleton RFT, Ten-Tec models and many new models & fixes * new rotator backends: sartek * frontend: emulated transceive mode using polling * icom: implemented retry, esp. useful for CI-V * icom: pipelined tuning on Optoscan's - * microtune: no need of root priviledges anymore + * microtune: no need of root privileges anymore * bindings: added Python, new install method (perl is installed in $prefix) * rigmem: new command to load/store memory content from/to XML file * port: NetBSD & FreeBSD, mingw32(Windows) port, MacOSX ready diff --git a/PLAN b/PLAN index 2ce156169..d22b25b5b 100644 --- a/PLAN +++ b/PLAN @@ -83,7 +83,7 @@ o available "set mode" items (ie. rig setup), and provide a way to modify them o DSP ? o max memory channel -o per rig timeout/retry (can be overriden) +o per rig timeout/retry (can be overridden) o Write some memory channel handling (name, mode, freq/vfo, duplex, split, ..) Any other ideas? diff --git a/README.betatester b/README.betatester index 622f2330b..7d0917724 100644 --- a/README.betatester +++ b/README.betatester @@ -64,7 +64,7 @@ The advantage of the Git snapshot is that you won't need as many tools installed to build Hamlib as the work of the GNU Build System has already been done. Most of the other packages listed below will be needed. If you tell the 'configure' script to build certain parts of Hamlib like -documentation or scripting language bindings the relavent optional packages +documentation or scripting language bindings the relevant optional packages will be needed. See 'configure --help' for more information. Here is a list of development packages needed for a complete build of the diff --git a/README.developer b/README.developer index 140c068a1..1c57945b6 100644 --- a/README.developer +++ b/README.developer @@ -181,7 +181,7 @@ the hamlib-developer mailing list. See section 8.3. One of the most powerful features of Git is its ability to make working with branches easy. It also allows the developers to "cherry pick" patches from the master development branch into stable release branches. In this manner -we can accomodate patches submitted against a stable release and merge them +we can accommodate patches submitted against a stable release and merge them into master as well. Such parallel development is a new feature for our project and there will be a learning curve! @@ -513,11 +513,11 @@ So far, Hamlib has been tested successfully under the following systems: Note: The '.' character is a Git wildcard that includes all new and modified files in your working tree. - The '-m' option may be ommitted, in which case Git will start + The '-m' option may be omitted, in which case Git will start your default editor for a longer commit message. Commit messages generally have the form of a short subject line, then a blank line, and then as much text (broken into paragraphs as - needed) as needed for a good decription of the commit. + needed) as needed for a good description of the commit. Assuming your working tree was cloned from the SF.net repository or N0NB's GitHub repository, you can now issue a pull request @@ -722,7 +722,7 @@ the rules hereunder: * Touching the frontend (files in src/ and include/hamlib) always requires discussion beforehand on the hamlib-developer list. * Announce on the hamlib-developer list if you're about to do serious - maintainance work + maintenance work Thanks for contributing and have fun! diff --git a/README.release b/README.release index acc11410d..d661fdc6a 100644 --- a/README.release +++ b/README.release @@ -69,11 +69,11 @@ remote repository, "origin"): ABI_REVISION, and ABI_AGE are set in configure.ac. ABI_VERSION should be advanced when the ABI is affected by changes in the library interface. ABI_REVISION is the revision and indicates source changes in Hamlib but no - change in ABI. ABI_AGE reflects backward compatibity to a previous version. + change in ABI. ABI_AGE reflects backward compatibility to a previous version. Per the libtool manual, this value is subtracted from ABI_VERSION to note compatible prior versions. Per the libtool manual, so long as the library interface is added to and nothing is removed or changed, backward - compatibity should exist. When the API is changed, ABI_VERSION will be + compatibility should exist. When the API is changed, ABI_VERSION will be advanced, ABI_REVISION will be reset to 0, and ABI_AGE may be advanced pending API/ABI changes. @@ -113,7 +113,7 @@ See README.build-win32 for information on prerequisites, etc. * Build Windows DLL with stdcall convention (script in progress): Ditto but with HAMLIB_API set to __stdcall in include/hamlib/rig_dll.h before re-compiling. - Subsitute cdecl by stdcall in README.txt. + Substitute cdecl by stdcall in README.txt. * Release the file(s) diff --git a/bindings/Makefile.am b/bindings/Makefile.am index 682f73857..a3b590f6a 100644 --- a/bindings/Makefile.am +++ b/bindings/Makefile.am @@ -157,7 +157,7 @@ hamlibtcl_la_DATA = pkgIndex.tcl # set by $(hamlibtcl_ladir) hamlibtcl_la_LTLIBRARIES = $(tcl_ltlib) -# Having the first occurance of 'hamlib' capitalized seemed to cause confusion +# Having the first occurrence of 'hamlib' capitalized seemed to cause confusion # for the TCL interpreter loading the Hamlib module. pkgIndex.tcl: Makefile $(AM_V_at)echo 'package ifneeded hamlib $(PKG_VER) [list load [file join $$dir $(DLL)] Hamlib]' > pkgIndex.tcl diff --git a/bindings/README.python b/bindings/README.python index 10f36e280..38fe157b7 100644 --- a/bindings/README.python +++ b/bindings/README.python @@ -31,7 +31,7 @@ the main source directory. Adjust your paths accordingly. Adjust your --prefix option as needed (installation to the user's home directory is shown to avoid root privileges). -Asssuming that Python2 is the default installed Python interpreter, build +Assuming that Python2 is the default installed Python interpreter, build its bindings first: ../hamlib/configure --with-python-binding --prefix=$HOME/local @@ -154,7 +154,7 @@ paths separated by colons. In this case, if PYTHONPATH was already set the new path is prepended to its prior setting. While setting the environment variable is good for a one-off run, a more -permanent solution can be acheived by placing a file that ends in .pth in a +permanent solution can be achieved by placing a file that ends in .pth in a directory that Python will process when starting. The special place is: ~/.local/lib64/python3.6/site-packages diff --git a/configure.ac b/configure.ac index e650f08d4..05098a62f 100644 --- a/configure.ac +++ b/configure.ac @@ -307,7 +307,7 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[struct{char a;int b;}s[8]={[3]={.b=5}};]])], [AC_MSG_RESULT(yes)], [AC_MSG_ERROR(["" -"You need a C99 compliant C compiler that supports struct/array intializers." +"You need a C99 compliant C compiler that supports struct/array initializers." "Have you considered GCC lately?."]) ]) diff --git a/cppcheck.sh b/cppcheck.sh index a73f6fbdf..ef58eb4e1 100755 --- a/cppcheck.sh +++ b/cppcheck.sh @@ -2,7 +2,7 @@ # Author Michael Black W9MDB # This SUPPRESS setting results in no warnings as of 2020-01-14 -# There are things that could still be done...especialy in the C++ area +# There are things that could still be done...especially in the C++ area echo "See cppcheck.log when done" echo "There should be no errors or warnings" echo "This takes several hours to run" diff --git a/doc/README.man-pages b/doc/README.man-pages index 88434b3d2..cfd5eec57 100644 --- a/doc/README.man-pages +++ b/doc/README.man-pages @@ -12,7 +12,7 @@ make up the roff system. Documentation written in roff can be transformed into a number of formats for final publication. For the Hamlib project, the output formats are the classic man(1) format to a terminal screen, HTML, and PDF. While groff includes a -number of macro pacakges suitable for a variety of document styles, Hamlib +number of macro packages suitable for a variety of document styles, Hamlib source files are written using the man(7) macro package. The layout of Hamlib man pages generally follow the format specified in man-pages(7). The macros used in the man pages format is specified in groff_man(7). diff --git a/doc/man1/rigctld.1 b/doc/man1/rigctld.1 index 9007909dc..5813636a0 100644 --- a/doc/man1/rigctld.1 +++ b/doc/man1/rigctld.1 @@ -313,7 +313,7 @@ below). . .TP .BR \-X ", " \-\-twiddle = \fIseconds\fP -Enables timeout when VFO twiddling is detected. Some functons will be ignored. +Enables timeout when VFO twiddling is detected. Some functions will be ignored. .IP Should only be needed when controlling software should be "paused" .B -v diff --git a/dummy/netrigctl.c b/dummy/netrigctl.c index 89a5dd327..b51a62c10 100644 --- a/dummy/netrigctl.c +++ b/dummy/netrigctl.c @@ -548,7 +548,7 @@ static int netrigctl_open(RIG *rig) } else { - // not an error -- just a warning for backward compatibily + // not an error -- just a warning for backward compatibility rig_debug(RIG_DEBUG_ERR, "%s: unknown setting='%s'\n", __func__, buf); } } @@ -625,7 +625,7 @@ static int netrigctl_get_freq(RIG *rig, vfo_t vfo, freq_t *freq) char cmd[CMD_MAX]; char buf[BUF_MAX]; char vfostr[6] = ""; -#if 0 // disable until we figure out if we can do this without breaking backwards compability +#if 0 // disable until we figure out if we can do this without breaking backwards compatibility char vfotmp[16]; #endif @@ -2231,7 +2231,7 @@ struct rig_caps netrigctl_caps = .timeout = 1000, /* enough for the worst rig we have */ .retry = 5, /* 5 seconds total */ - /* following fields updated in rig_state at openning time */ + /* following fields updated in rig_state at opening time */ .has_get_func = RIG_FUNC_NONE, .has_set_func = RIG_FUNC_NONE, .has_get_level = RIG_LEVEL_NONE, diff --git a/dummy/trxmanager.c b/dummy/trxmanager.c index d6c6baeb0..51fa9d0e3 100644 --- a/dummy/trxmanager.c +++ b/dummy/trxmanager.c @@ -67,7 +67,7 @@ #define FLRIG_MODE_PKTFM 'E' #define FLRIG_MODE_PKTAM 'F' // Hamlib doesn't support D2/D3 modes in hamlib yet -// So we define them here but they aren't implmented +// So we define them here but they aren't implemented #define FLRIG_MODE_PKTLSB2 'G' #define FLRIG_MODE_PKTUSB2 'H' #define FLRIG_MODE_PKTFM2 'I' diff --git a/extra/gnuradio/gnuradio.cc b/extra/gnuradio/gnuradio.cc index dc3f4d4e2..5fdc97ae9 100644 --- a/extra/gnuradio/gnuradio.cc +++ b/extra/gnuradio/gnuradio.cc @@ -220,7 +220,7 @@ static void *gnuradio_process(void *arg) priv = (struct gnuradio_priv_data*)rig->state.priv; - /* the mutex lock is not to gurantee reentrancy of rig_debug, + /* the mutex lock is not to guarantee reentrancy of rig_debug, * this is just to know when backend want us start running */ pthread_mutex_lock(&priv->mutex_process); diff --git a/extra/kylix/HamlibComponents.pas b/extra/kylix/HamlibComponents.pas index 1ad1286f1..9e029bd0c 100644 --- a/extra/kylix/HamlibComponents.pas +++ b/extra/kylix/HamlibComponents.pas @@ -115,7 +115,7 @@ constructor TRotatorComponent.CreateRotator(AOwner: TComponent; AModel: rot_mode begin inherited Create(AOwner); - {* Initialize the library for the spesified model *} + {* Initialize the library for the specified model *} FRot := rot_init(AModel); if (FRot = nil) then raise ERotatorException.Create('Rig initialization error'); @@ -291,7 +291,7 @@ constructor TRigComponent.CreateRig(AOwner: TComponent; AModel: integer); begin inherited Create(AOwner); - {* Initialize the library for the spesified model *} + {* Initialize the library for the specified model *} FRig := rig_init(AModel); if (FRig = nil) then raise ERigException.Create('Rig initialization error'); diff --git a/extra/kylix/hamlib_rigapi.pas b/extra/kylix/hamlib_rigapi.pas index 4db8471ef..4a42bc2bb 100644 --- a/extra/kylix/hamlib_rigapi.pas +++ b/extra/kylix/hamlib_rigapi.pas @@ -25,7 +25,7 @@ const {* * Error codes that can be returned by the Hamlib functions *} - RIG_OK = 0; {* completed sucessfully *} + RIG_OK = 0; {* completed successfully *} RIG_EINVAL = 1; {* invalid parameter *} RIG_ECONF = 2; {* invalid configuration (serial,..) *} RIG_ENOMEM = 3; {* memory shortage *} @@ -81,7 +81,7 @@ type * Basic rig type, can store some useful * info about different radios. Each lib must * be able to populate this structure, so we can make - * useful enquiries about capablilities. + * useful enquiries about capabilities. *} rig_port_e = ( RIG_PORT_NONE = 0, {* as bizarre as it could be :) *} @@ -663,7 +663,7 @@ type {* Basic rig type, can store some useful * info about different radios. Each lib must * be able to populate this structure, so we can make - * useful enquiries about capablilities. + * useful enquiries about capabilities. *} {* diff --git a/extra/kylix/hamlib_rotapi.pas b/extra/kylix/hamlib_rotapi.pas index 4d04be8f7..c94d0be6f 100644 --- a/extra/kylix/hamlib_rotapi.pas +++ b/extra/kylix/hamlib_rotapi.pas @@ -31,7 +31,7 @@ type rot_model_t = integer; rot_reset_t = integer; - PRot = ^TRot; // forward decleration + PRot = ^TRot; // forward declaration rot_caps = packed record rot_model : rot_model_t; diff --git a/extra/kylix/tests/HamlibRadioForm.pas b/extra/kylix/tests/HamlibRadioForm.pas index 3e5ce1b56..ef72f85bb 100644 --- a/extra/kylix/tests/HamlibRadioForm.pas +++ b/extra/kylix/tests/HamlibRadioForm.pas @@ -69,7 +69,7 @@ begin except on e: ERigException do begin - ShowMessage('Error occured while using the rig: %s', [e.Message]); + ShowMessage('Error occurred while using the rig: %s', [e.Message]); FRigComponent.CloseRig; FRigComponent.Free; end; @@ -114,7 +114,7 @@ end; procedure TRadioForm.MagicCheckButtonClick(Sender: TObject); begin if FRigComponent.checkMagic - then ShowMessage('Magic check succeded.') + then ShowMessage('Magic check succeeded.') else ShowMessage('Magic check FAILED!!!'); end; diff --git a/include/hamlib/amplifier.h b/include/hamlib/amplifier.h index 990df1573..7d61cea86 100644 --- a/include/hamlib/amplifier.h +++ b/include/hamlib/amplifier.h @@ -136,7 +136,7 @@ enum amp_level_e /* Basic amp type, can store some useful info about different amplifiers. Each * lib must be able to populate this structure, so we can make useful - * enquiries about capablilities. + * enquiries about capabilities. */ /** diff --git a/include/hamlib/amplist.h b/include/hamlib/amplist.h index 8f1544d7b..42808d83a 100644 --- a/include/hamlib/amplist.h +++ b/include/hamlib/amplist.h @@ -61,7 +61,7 @@ * * The dummy backend, as the name suggests, is a backend which performs * no hardware operations and always behaves as one would expect. It can - * be thought of as a hardware simulator and is very usefull for testing + * be thought of as a hardware simulator and is very useful for testing * client applications. */ /** diff --git a/include/hamlib/rig.h b/include/hamlib/rig.h index b6d1a8d8f..e919aa884 100644 --- a/include/hamlib/rig.h +++ b/include/hamlib/rig.h @@ -533,7 +533,7 @@ typedef enum { * \brief PTT status */ typedef enum { - RIG_PTT_OFF = 0, /*!< PTT desactivated */ + RIG_PTT_OFF = 0, /*!< PTT deactivated */ RIG_PTT_ON, /*!< PTT activated */ RIG_PTT_ON_MIC, /*!< PTT Mic only, fallbacks on RIG_PTT_ON if unavailable */ RIG_PTT_ON_DATA /*!< PTT Data (Mic-muted), fallbacks on RIG_PTT_ON if unavailable */ @@ -1920,13 +1920,13 @@ struct rig_cache { int timeout_ms; // the cache timeout for invalidating itself vfo_t vfo; freq_t freq; // to be deprecated - // othe abstraction here is based on dual vfo rigs and mapped to all others + // other abstraction here is based on dual vfo rigs and mapped to all others // So we have four possible states of rig // MainA, MainB, SubA, SubB // Main is the Main VFO and Sub is for the 2nd VFO // Most rigs have MainA and MainB // Dual VFO rigs can have SubA and SubB too - // For dual VFO rigs simplex opeations are all done on MainA/MainB -- ergo this abstraction + // For dual VFO rigs simplex operations are all done on MainA/MainB -- ergo this abstraction freq_t freqMainA; // VFO_A, VFO_MAIN, and VFO_MAINA freq_t freqMainB; // VFO_B, VFO_SUB, and VFO_MAINB freq_t freqSubA; // VFO_SUBA diff --git a/include/hamlib/riglist.h b/include/hamlib/riglist.h index 559aa1607..6f1e8327b 100644 --- a/include/hamlib/riglist.h +++ b/include/hamlib/riglist.h @@ -56,7 +56,7 @@ * * The dummy backend, as the name suggests, is a backend which performs no * hardware operations and always behaves as one would expect. It can be - * thought of as a hardware simulator and is very usefull for testing client + * thought of as a hardware simulator and is very useful for testing client * applications. * * It has also been expanded to provide support to "virtual" type of rigs @@ -327,7 +327,7 @@ /* * Radio Shack - * Actualy, they might be either Icom or Uniden. TBC --SF + * Actually, they might be either Icom or Uniden. TBC --SF */ #define RIG_RADIOSHACK 7 #define RIG_BACKEND_RADIOSHACK "radioshack" diff --git a/include/hamlib/rotator.h b/include/hamlib/rotator.h index 9258b2570..b577a4773 100644 --- a/include/hamlib/rotator.h +++ b/include/hamlib/rotator.h @@ -186,7 +186,7 @@ typedef enum { * \def ROT_MOVE_CW * \brief A macro that returns the flag for the \b clockwise direction. * - * This macro defines the value of the \b clockwise direction wich can be + * This macro defines the value of the \b clockwise direction which can be * used with the rot_move() function. This value is equivalent to * ROT_MOVE_RIGHT . * @@ -198,7 +198,7 @@ typedef enum { /* Basic rot type, can store some useful info about different rotators. Each * lib must be able to populate this structure, so we can make useful - * enquiries about capablilities. + * enquiries about capabilities. */ /** diff --git a/include/hamlib/rotlist.h b/include/hamlib/rotlist.h index b629ed6b6..4481c22f6 100644 --- a/include/hamlib/rotlist.h +++ b/include/hamlib/rotlist.h @@ -66,7 +66,7 @@ * * The dummy backend, as the name suggests, is a backend which performs * no hardware operations and always behaves as one would expect. It can - * be thought of as a hardware simulator and is very usefull for testing + * be thought of as a hardware simulator and is very useful for testing * client applications. */ /** diff --git a/macros/ax_lua.m4 b/macros/ax_lua.m4 index 9feb35225..7607c5fe2 100644 --- a/macros/ax_lua.m4 +++ b/macros/ax_lua.m4 @@ -82,7 +82,7 @@ # appropriate Automake primary, e.g. lua_SCRIPS or luaexec_LIBRARIES. # # If an acceptable Lua interpreter is found, then ACTION-IF-FOUND is -# performed, otherwise ACTION-IF-NOT-FOUND is preformed. If ACTION-IF-NOT- +# performed, otherwise ACTION-IF-NOT-FOUND is performed. If ACTION-IF-NOT- # FOUND is blank, then it will default to printing an error. To prevent # the default behavior, give ':' as an action. # diff --git a/rigs/adat/adat.c b/rigs/adat/adat.c index 098f47c11..1e96dce76 100644 --- a/rigs/adat/adat.c +++ b/rigs/adat/adat.c @@ -567,7 +567,7 @@ static adat_cmd_list_t adat_cmd_list_recover_from_error = // --------------------------------------------------------------------------- -// IMPLEMEMTATION +// IMPLEMENTATION // --------------------------------------------------------------------------- // --------------------------------------------------------------------------- diff --git a/rigs/alinco/dx77.c b/rigs/alinco/dx77.c index fb2ebc0c3..97ab9bac3 100644 --- a/rigs/alinco/dx77.c +++ b/rigs/alinco/dx77.c @@ -83,7 +83,7 @@ #define CMD_RDATA "3H" /* Current Data read */ #define CMD_RSPLT "3I" /* Split read */ #define CMD_RPOWER "3J" /* Transmitter Output read */ -#define CMD_RSELECT "3K" /* SELECT Postion read */ +#define CMD_RSELECT "3K" /* SELECT Position read */ #define DX77_ALL_MODES (RIG_MODE_AM|RIG_MODE_CW|RIG_MODE_SSB|RIG_MODE_FM) diff --git a/rigs/aor/ar7030.c b/rigs/aor/ar7030.c index 2a5c8953a..a10a6a226 100644 --- a/rigs/aor/ar7030.c +++ b/rigs/aor/ar7030.c @@ -154,19 +154,19 @@ static void setMemPtr(RIG *rig, int page, int address) { rxr_writeByte(rig, 0x50 + page); //Set Page - if (address <= 0xFF) //*** <= 8 Bit Adresse *** + if (address <= 0xFF) //*** <= 8 Bit Address *** { rxr_writeByte(rig, 0x30 + (address >> 4)); //Set H-Register 4 Bits rxr_writeByte(rig, 0x40 + (address & - 0x0F)); //Set Adress(12 Bits = (4 Bit H Register) + 8 Bit) + 0x0F)); //Set Address(12 Bits = (4 Bit H Register) + 8 Bit) } - else //*** > 8 Bit Adresse *** + else //*** > 8 Bit Address *** { rxr_writeByte(rig, 0x30 + ((address >> 4) & 0x0F)) ;//Set H-Register 4 Bits rxr_writeByte(rig, 0x40 + (address & - 0x0F)); //Set Adress(12 Bits = (4 Bit H Register) + 8 Bit) + 0x0F)); //Set Address(12 Bits = (4 Bit H Register) + 8 Bit) rxr_writeByte(rig, 0x10 + (address >> - 8)); //Set Adress high(12 Bits=(4 Bit H Register)+8 Bit) + 8)); //Set Address high(12 Bits=(4 Bit H Register)+8 Bit) } } diff --git a/rigs/aor/ar7030p_utils.c b/rigs/aor/ar7030p_utils.c index 702099b2b..aafce3c55 100644 --- a/rigs/aor/ar7030p_utils.c +++ b/rigs/aor/ar7030p_utils.c @@ -954,7 +954,7 @@ int bcd2Int(const unsigned char bcd) * * \param int Integer value (0-99) * - * \return 2 digit BCD equvalent (0-99), 0xff on failure + * \return 2 digit BCD equivalent (0-99), 0xff on failure */ unsigned char int2BCD(const unsigned int val) { @@ -1042,7 +1042,7 @@ int getCalLevel(RIG *rig, unsigned char rawAgc, int *dbm) } else { - step = 20; /* HACK - try and fix mimimum AGC readings */ + step = 20; /* HACK - try and fix minimum AGC readings */ } rig_debug(RIG_DEBUG_VERBOSE, "%s: got step size %d\n", __func__, step); diff --git a/rigs/barrett/barrett.c b/rigs/barrett/barrett.c index c251a425b..cf4c8d3b1 100644 --- a/rigs/barrett/barrett.c +++ b/rigs/barrett/barrett.c @@ -429,7 +429,7 @@ int barrett_set_freq(RIG *rig, vfo_t vfo, freq_t freq) rig_debug(RIG_DEBUG_VERBOSE, "%s: vfo=%s freq=%.0f\n", __func__, rig_strvfo(vfo), freq); - // If we are not explicity asking for VFO_B then we'll set the receive side also + // If we are not explicitly asking for VFO_B then we'll set the receive side also if (vfo != RIG_VFO_B) { char *response = NULL; @@ -765,7 +765,7 @@ int barrett_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val) } else { - rig_debug(RIG_DEBUG_ERR, "%s: unable to parse STRENGHT from %s\n", + rig_debug(RIG_DEBUG_ERR, "%s: unable to parse STRENGTH from %s\n", __func__, response); return -RIG_EPROTO; } diff --git a/rigs/drake/drake.c b/rigs/drake/drake.c index 0fc86fa0d..c86fb152d 100644 --- a/rigs/drake/drake.c +++ b/rigs/drake/drake.c @@ -722,7 +722,7 @@ int drake_get_chan(RIG *rig, channel_t *chan, int read_only) return RIG_OK; } - //now decypher it + //now decipher it retval = drake_transaction(rig, "RA" EOM, 3, mdbuf, &mdbuf_len); if (retval != RIG_OK) diff --git a/rigs/drake/r8a.c b/rigs/drake/r8a.c index 581b262bc..56a65060c 100644 --- a/rigs/drake/r8a.c +++ b/rigs/drake/r8a.c @@ -121,7 +121,7 @@ const struct rig_caps r8a_caps = .max_xit = Hz(0), .max_ifshift = Hz(0), .targetable_vfo = 0, - .transceive = RIG_TRN_OFF, /* TODO: acutally has RIG_TRN_RIG */ + .transceive = RIG_TRN_OFF, /* TODO: actually has RIG_TRN_RIG */ .bank_qty = 0, .chan_desc_sz = 7, .vfo_ops = R8A_VFO_OPS, diff --git a/rigs/drake/r8b.c b/rigs/drake/r8b.c index 178a10ccb..65d3710ab 100644 --- a/rigs/drake/r8b.c +++ b/rigs/drake/r8b.c @@ -121,7 +121,7 @@ const struct rig_caps r8b_caps = .max_xit = Hz(0), .max_ifshift = Hz(0), .targetable_vfo = 0, - .transceive = RIG_TRN_OFF, /* TODO: acutally has RIG_TRN_RIG */ + .transceive = RIG_TRN_OFF, /* TODO: actually has RIG_TRN_RIG */ .bank_qty = 0, .chan_desc_sz = 7, .vfo_ops = R8B_VFO_OPS, diff --git a/rigs/elad/elad.c b/rigs/elad/elad.c index 5173fed60..b6d46d540 100644 --- a/rigs/elad/elad.c +++ b/rigs/elad/elad.c @@ -160,7 +160,7 @@ const struct confparams elad_cfg_params[] = * * returns: * RIG_OK - if no error occurred. - * RIG_EIO - if an I/O error occured while sending/receiving data. + * RIG_EIO - if an I/O error occurred while sending/receiving data. * RIG_ETIMEOUT - if timeout expires without any characters received. * RIG_REJECTED - if a negative acknowledge was received or command not * recognized by rig. @@ -431,7 +431,7 @@ transaction_quit: * expected Value of expected string length * * Returns: - * RIG_OK - if no error occured. + * RIG_OK - if no error occurred. * RIG_EPROTO if returned string and expected are not equal * Error from elad_transaction() if any * diff --git a/rigs/elad/elad.h b/rigs/elad/elad.h index 171831b84..f55f0cfb6 100644 --- a/rigs/elad/elad.h +++ b/rigs/elad/elad.h @@ -77,7 +77,7 @@ struct elad_priv_data { int k2_md_rtty; /* K2 RTTY mode available flag, 1 = RTTY, 0 = N/A */ char *fw_rev; /* firmware revision level */ int trn_state; /* AI state discovered at startup */ - unsigned fw_rev_uint; /* firmware revison as a number 1.07 -> 107 */ + unsigned fw_rev_uint; /* firmware revision as a number 1.07 -> 107 */ char verify_cmd[4]; /* command used to verify set commands */ int is_emulation; /* flag for TS-2000 emulations */ void * data; /* model specific data */ diff --git a/rigs/flexradio/dttsp.c b/rigs/flexradio/dttsp.c index 6c42bbef2..84ac41962 100644 --- a/rigs/flexradio/dttsp.c +++ b/rigs/flexradio/dttsp.c @@ -192,7 +192,7 @@ const struct rig_caps dttsp_rig_caps = .transceive = RIG_TRN_OFF, .attenuator = { RIG_DBLST_END, }, .preamp = { RIG_DBLST_END, }, - /* In fact, RX and TX ranges are dependant on the tuner */ + /* In fact, RX and TX ranges are dependent on the tuner */ .rx_range_list1 = { { .startf = kHz(150), .endf = MHz(1500), .modes = DTTSP_MODES, .low_power = -1, .high_power = -1, DTTSP_VFO @@ -276,7 +276,7 @@ const struct rig_caps dttsp_udp_rig_caps = .transceive = RIG_TRN_OFF, .attenuator = { RIG_DBLST_END, }, .preamp = { RIG_DBLST_END, }, - /* In fact, RX and TX ranges are dependant on the tuner */ + /* In fact, RX and TX ranges are dependent on the tuner */ .rx_range_list1 = { { .startf = kHz(150), .endf = MHz(1500), .modes = DTTSP_MODES, .low_power = -1, .high_power = -1, DTTSP_VFO diff --git a/rigs/icmarine/icmarine.c b/rigs/icmarine/icmarine.c index d56a01e4a..0d0233edf 100644 --- a/rigs/icmarine/icmarine.c +++ b/rigs/icmarine/icmarine.c @@ -234,7 +234,7 @@ int icmarine_get_conf(RIG *rig, token_t token, char *val) * We assume that rig!=NULL, rig->state!= NULL, data!=NULL, data_len!=NULL * * cmd: mandatory - * param: only 1 optional NMEA paramter, NULL for none (=query) + * param: only 1 optional NMEA parameter, NULL for none (=query) * response: optional (holding BUFSZ bytes) */ int icmarine_transaction(RIG *rig, const char *cmd, const char *param, @@ -258,7 +258,7 @@ int icmarine_transaction(RIG *rig, const char *cmd, const char *param, rig_flush(&rs->rigport); - /* command formating */ + /* command formatting */ cmd_len = snprintf(cmdbuf, BUFSZ, "$PICOA,%02d,%02u,%s", CONTROLLER_ID, priv->remote_id, diff --git a/rigs/icom/frame.c b/rigs/icom/frame.c index bb91b2f9c..4165206da 100644 --- a/rigs/icom/frame.c +++ b/rigs/icom/frame.c @@ -149,7 +149,7 @@ int icom_one_transaction(RIG *rig, int cmd, int subcmd, * read what we just sent, because TX and RX are looped, * and discard it... * - if what we read is not what we sent, then it means - * a collision on the CI-V bus occured! + * a collision on the CI-V bus occurred! * - if we get a timeout, then retry to send the frame, * up to rs->retry times. */ @@ -158,7 +158,7 @@ int icom_one_transaction(RIG *rig, int cmd, int subcmd, if (retval == -RIG_ETIMEOUT || retval == 0) { - /* Nothing recieved, CI-V interface is not echoing */ + /* Nothing received, CI-V interface is not echoing */ // cppcheck-suppress * Unhold_Decode(rig); return -RIG_BUSERROR; @@ -230,7 +230,7 @@ int icom_one_transaction(RIG *rig, int cmd, int subcmd, /* * wait for ACK ... - * FIXME: handle pading/collisions + * FIXME: handle padding/collisions * ACKFRMLEN is the smallest frame we can expect from the rig */ buf[0] = 0; diff --git a/rigs/icom/ic271.c b/rigs/icom/ic271.c index 7ad42b6e9..751705c62 100644 --- a/rigs/icom/ic271.c +++ b/rigs/icom/ic271.c @@ -39,7 +39,7 @@ * IC-271 A/E * IC-271 H is high power (75W) * - * Independant transmit/receive + * Independent transmit/receive * * specs: http://www.qsl.net/sm7vhs/radio/icom/Ic271/specs.htm * diff --git a/rigs/icom/ic703.c b/rigs/icom/ic703.c index d47f90e96..95ff4a26a 100644 --- a/rigs/icom/ic703.c +++ b/rigs/icom/ic703.c @@ -177,11 +177,11 @@ const struct rig_caps ic703_caps = }, /* mode/filter list, remember: order matters! */ .filters = { - {RIG_MODE_SSB | RIG_MODE_CW | RIG_MODE_RTTY | RIG_MODE_CWR | RIG_MODE_RTTYR, kHz(2.4)}, /* bultin FL-272 */ - {RIG_MODE_AM, kHz(9)}, /* mid w/ bultin FL-94 */ - {RIG_MODE_AM, kHz(2.4)}, /* narrow w/ bultin FL-272 */ - {RIG_MODE_FM, kHz(15)}, /* ?? TBC, mid w/ bultin FL-23+SFPC455E */ - {RIG_MODE_FM, kHz(9)}, /* narrow w/ bultin FL-94 */ + {RIG_MODE_SSB | RIG_MODE_CW | RIG_MODE_RTTY | RIG_MODE_CWR | RIG_MODE_RTTYR, kHz(2.4)}, /* builtin FL-272 */ + {RIG_MODE_AM, kHz(9)}, /* mid w/ builtin FL-94 */ + {RIG_MODE_AM, kHz(2.4)}, /* narrow w/ builtin FL-272 */ + {RIG_MODE_FM, kHz(15)}, /* ?? TBC, mid w/ builtin FL-23+SFPC455E */ + {RIG_MODE_FM, kHz(9)}, /* narrow w/ builtin FL-94 */ RIG_FLT_END, }, .str_cal = IC703_STR_CAL, diff --git a/rigs/icom/ic706.c b/rigs/icom/ic706.c index 07701ae0f..f9a6f25de 100644 --- a/rigs/icom/ic706.c +++ b/rigs/icom/ic706.c @@ -238,11 +238,11 @@ const struct rig_caps ic706_caps = /* mode/filter list, remember: order matters! */ .filters = { - {RIG_MODE_SSB | RIG_MODE_CW | RIG_MODE_RTTY, kHz(2.4)}, /* bultin FL-272 */ - {RIG_MODE_AM, kHz(8)}, /* mid w/ bultin FL-94 */ - {RIG_MODE_AM, kHz(2.4)}, /* narrow w/ bultin FL-272 */ - {RIG_MODE_FM, kHz(15)}, /* ?? TBC, mid w/ bultin FL-23+SFPC455E */ - {RIG_MODE_FM, kHz(8)}, /* narrow w/ bultin FL-94 */ + {RIG_MODE_SSB | RIG_MODE_CW | RIG_MODE_RTTY, kHz(2.4)}, /* builtin FL-272 */ + {RIG_MODE_AM, kHz(8)}, /* mid w/ builtin FL-94 */ + {RIG_MODE_AM, kHz(2.4)}, /* narrow w/ builtin FL-272 */ + {RIG_MODE_FM, kHz(15)}, /* ?? TBC, mid w/ builtin FL-23+SFPC455E */ + {RIG_MODE_FM, kHz(8)}, /* narrow w/ builtin FL-94 */ {RIG_MODE_WFM, kHz(230)}, /* WideFM, filter FL?? */ RIG_FLT_END, }, @@ -379,11 +379,11 @@ const struct rig_caps ic706mkii_caps = /* mode/filter list, remember: order matters! */ .filters = { - {RIG_MODE_SSB | RIG_MODE_CW | RIG_MODE_RTTY, kHz(2.4)}, /* bultin FL-272 */ - {RIG_MODE_AM, kHz(8)}, /* mid w/ bultin FL-94 */ - {RIG_MODE_AM, kHz(2.4)}, /* narrow w/ bultin FL-272 */ - {RIG_MODE_FM, kHz(15)}, /* ?? TBC, mid w/ bultin FL-23+SFPC455E */ - {RIG_MODE_FM, kHz(8)}, /* narrow w/ bultin FL-94 */ + {RIG_MODE_SSB | RIG_MODE_CW | RIG_MODE_RTTY, kHz(2.4)}, /* builtin FL-272 */ + {RIG_MODE_AM, kHz(8)}, /* mid w/ builtin FL-94 */ + {RIG_MODE_AM, kHz(2.4)}, /* narrow w/ builtin FL-272 */ + {RIG_MODE_FM, kHz(15)}, /* ?? TBC, mid w/ builtin FL-23+SFPC455E */ + {RIG_MODE_FM, kHz(8)}, /* narrow w/ builtin FL-94 */ {RIG_MODE_WFM, kHz(230)}, /* WideFM, filter FL?? */ RIG_FLT_END, }, @@ -565,11 +565,11 @@ const struct rig_caps ic706mkiig_caps = }, /* mode/filter list, remember: order matters! */ .filters = { - {RIG_MODE_SSB | RIG_MODE_CW | RIG_MODE_RTTY, kHz(2.4)}, /* bultin FL-272 */ - {RIG_MODE_AM, kHz(8)}, /* mid w/ bultin FL-94 */ - {RIG_MODE_AM, kHz(2.4)}, /* narrow w/ bultin FL-272 */ - {RIG_MODE_FM, kHz(15)}, /* ?? TBC, mid w/ bultin FL-23+SFPC455E */ - {RIG_MODE_FM, kHz(8)}, /* narrow w/ bultin FL-94 */ + {RIG_MODE_SSB | RIG_MODE_CW | RIG_MODE_RTTY, kHz(2.4)}, /* builtin FL-272 */ + {RIG_MODE_AM, kHz(8)}, /* mid w/ builtin FL-94 */ + {RIG_MODE_AM, kHz(2.4)}, /* narrow w/ builtin FL-272 */ + {RIG_MODE_FM, kHz(15)}, /* ?? TBC, mid w/ builtin FL-23+SFPC455E */ + {RIG_MODE_FM, kHz(8)}, /* narrow w/ builtin FL-94 */ {RIG_MODE_WFM, kHz(230)}, /* WideFM, filter FL?? */ RIG_FLT_END, }, diff --git a/rigs/icom/ic7100.c b/rigs/icom/ic7100.c index 79f590bde..d0d8f8164 100644 --- a/rigs/icom/ic7100.c +++ b/rigs/icom/ic7100.c @@ -1,5 +1,5 @@ /* - * Hamlib CI-V backend - description of IC-9100 (HF/VHF/UHF All-Mode Tranceiver) + * Hamlib CI-V backend - description of IC-9100 (HF/VHF/UHF All-Mode Transceiver) * Copyright (c) 2000-2011 by Stephane Fillod * * diff --git a/rigs/icom/ic718.c b/rigs/icom/ic718.c index 620daa4a8..5583694e7 100644 --- a/rigs/icom/ic718.c +++ b/rigs/icom/ic718.c @@ -160,13 +160,13 @@ const struct rig_caps ic718_caps = }, /* mode/filter list, remember: order matters! */ .filters = { - {RIG_MODE_SSB | RIG_MODE_CW | RIG_MODE_RTTY, kHz(2.1)}, /* bultin */ + {RIG_MODE_SSB | RIG_MODE_CW | RIG_MODE_RTTY, kHz(2.1)}, /* builtin */ {RIG_MODE_CW | RIG_MODE_RTTY, Hz(500)}, /* FL-52A */ {RIG_MODE_CW | RIG_MODE_RTTY, Hz(250)}, /* FL-53A */ {RIG_MODE_SSB, kHz(2.8)}, /* FL-96 */ {RIG_MODE_SSB | RIG_MODE_CW | RIG_MODE_CWR | RIG_MODE_RTTY | RIG_MODE_RTTYR, kHz(1.8)}, /* FL-222 */ - {RIG_MODE_AM, kHz(6)}, /* mid w/ bultin FL-94 */ - {RIG_MODE_AM, kHz(2.4)}, /* narrow w/ bultin FL-272 */ + {RIG_MODE_AM, kHz(6)}, /* mid w/ builtin FL-94 */ + {RIG_MODE_AM, kHz(2.4)}, /* narrow w/ builtin FL-272 */ RIG_FLT_END, }, diff --git a/rigs/icom/ic746.c b/rigs/icom/ic746.c index 63b8b1fe0..1037e8987 100644 --- a/rigs/icom/ic746.c +++ b/rigs/icom/ic746.c @@ -513,7 +513,7 @@ const struct rig_caps ic746pro_caps = {RIG_MODE_FM, kHz(15)}, {RIG_MODE_FM, kHz(7)}, - /* There are 5 rtty filters when rtty filter mode is set (default condition) { 1k, 500, 350, 300, 250 }. These are fixed. If rtty filter mode is unset there are 3 general IF filters { 2.4k, 500, 250 are the defaults }. These can be changed. There is a "twin-peak" filter mode as well. It boosts the 2125 and 2295 recieve frequency reponse. The S_FUNC_RF (rtty filter) turns the rtty filter mode on and off. */ + /* There are 5 rtty filters when rtty filter mode is set (default condition) { 1k, 500, 350, 300, 250 }. These are fixed. If rtty filter mode is unset there are 3 general IF filters { 2.4k, 500, 250 are the defaults }. These can be changed. There is a "twin-peak" filter mode as well. It boosts the 2125 and 2295 receive frequency response. The S_FUNC_RF (rtty filter) turns the rtty filter mode on and off. */ {RIG_MODE_CW | RIG_MODE_CWR | RIG_MODE_RTTY | RIG_MODE_RTTYR, Hz(500)}, /* RTTY & "normal" IF Filters */ {RIG_MODE_CW | RIG_MODE_CWR | RIG_MODE_RTTY | RIG_MODE_RTTYR, Hz(250)}, /* RTTY & "narrow" IF Filters */ diff --git a/rigs/icom/ic775.c b/rigs/icom/ic775.c index fd78ddda0..99aa1d736 100644 --- a/rigs/icom/ic775.c +++ b/rigs/icom/ic775.c @@ -155,11 +155,11 @@ const struct rig_caps ic775_caps = }, /* mode/filter list, remember: order matters! */ .filters = { - {RIG_MODE_SSB | RIG_MODE_CW | RIG_MODE_RTTY, kHz(2.4)}, /* bultin FL-272 */ - {RIG_MODE_AM, kHz(8)}, /* mid w/ bultin FL-94 */ - {RIG_MODE_AM, kHz(2.4)}, /* narrow w/ bultin FL-272 */ - {RIG_MODE_FM, kHz(15)}, /* ?? TBC, mid w/ bultin FL-23+SFPC455E */ - {RIG_MODE_FM, kHz(8)}, /* narrow w/ bultin FL-94 */ + {RIG_MODE_SSB | RIG_MODE_CW | RIG_MODE_RTTY, kHz(2.4)}, /* builtin FL-272 */ + {RIG_MODE_AM, kHz(8)}, /* mid w/ builtin FL-94 */ + {RIG_MODE_AM, kHz(2.4)}, /* narrow w/ builtin FL-272 */ + {RIG_MODE_FM, kHz(15)}, /* ?? TBC, mid w/ builtin FL-23+SFPC455E */ + {RIG_MODE_FM, kHz(8)}, /* narrow w/ builtin FL-94 */ RIG_FLT_END, }, diff --git a/rigs/icom/ic820h.c b/rigs/icom/ic820h.c index 0609077b4..f31752205 100644 --- a/rigs/icom/ic820h.c +++ b/rigs/icom/ic820h.c @@ -1,5 +1,5 @@ /* - * Hamlib CI-V backend - description of IC-820H (VHF/UHF All-Mode Tranceiver) + * Hamlib CI-V backend - description of IC-820H (VHF/UHF All-Mode Transceiver) * Contributed by Francois Retief * Copyright (c) 2000-2010 by Stephane Fillod * diff --git a/rigs/icom/ic821h.c b/rigs/icom/ic821h.c index 442ca217c..39b0597ba 100644 --- a/rigs/icom/ic821h.c +++ b/rigs/icom/ic821h.c @@ -1,5 +1,5 @@ /* - * Hamlib CI-V backend - description of IC-821H (VHF/UHF All-Mode Tranceiver) + * Hamlib CI-V backend - description of IC-821H (VHF/UHF All-Mode Transceiver) * Contributed by Francois Retief * Copyright (c) 2000-2010 by Stephane Fillod * diff --git a/rigs/icom/ic9100.c b/rigs/icom/ic9100.c index 165c27494..4ac8da141 100644 --- a/rigs/icom/ic9100.c +++ b/rigs/icom/ic9100.c @@ -1,5 +1,5 @@ /* - * Hamlib CI-V backend - description of IC-9100 (HF/VHF/UHF All-Mode Tranceiver) + * Hamlib CI-V backend - description of IC-9100 (HF/VHF/UHF All-Mode Transceiver) * Copyright (c) 2000-2011 by Stephane Fillod * * diff --git a/rigs/icom/icom.c b/rigs/icom/icom.c index f79773c60..66a1eb6c3 100644 --- a/rigs/icom/icom.c +++ b/rigs/icom/icom.c @@ -1578,7 +1578,7 @@ int icom_set_mode_with_data(RIG *rig, vfo_t vfo, rmode_t mode, switch (mode) { case RIG_MODE_PKTUSB: - // xFE xFE x6E xE0 x1A x06 x01 xFD switchs mod input from MIC to ACC + // xFE xFE x6E xE0 x1A x06 x01 xFD switches mod input from MIC to ACC // This apparently works for IC-756ProIII but nobody has asked for it yet icom_mode = RIG_MODE_USB; break; @@ -4716,7 +4716,7 @@ int icom_set_split_vfo(RIG *rig, vfo_t vfo, split_t split, vfo_t tx_vfo) vfo = rig->state.current_vfo; } - // This should automaticaly switch between satmode on/off based on the requested split vfo + // This should automatically switch between satmode on/off based on the requested split vfo if (rig->caps->has_get_func & RIG_FUNC_SATMODE) { if ((tx_vfo == RIG_VFO_SUB || tx_vfo == RIG_VFO_MAIN) @@ -6406,7 +6406,7 @@ int icom_set_ant(RIG *rig, vfo_t vfo, ant_t ant, value_t option) /* * icom_get_ant * Assumes rig!=NULL, rig->state.priv!=NULL - * only meaningfull for HF + * only meaningful for HF */ int icom_get_ant(RIG *rig, vfo_t vfo, ant_t ant, value_t *option, ant_t *ant_curr, ant_t *ant_tx, ant_t *ant_rx) @@ -7272,7 +7272,7 @@ DECLARE_PROBERIG_BACKEND(icom) /* * try all possible addresses on the CI-V bus - * FIXME: actualy, old rigs do not support C_RD_TRXID cmd! + * FIXME: actually, old rigs do not support C_RD_TRXID cmd! * Try to be smart, and deduce model depending * on freq range, return address, and * available commands. diff --git a/rigs/icom/icom_defs.h b/rigs/icom/icom_defs.h index 840419e3a..529f6fd09 100644 --- a/rigs/icom/icom_defs.h +++ b/rigs/icom/icom_defs.h @@ -526,7 +526,7 @@ /* * Tokens for Extra Level and Parameters common to multiple rigs. Use token # > 99. Defined here so they * will be available in ICOM name space. They have different internal commands primarily in dsp rigs. These - * tokens are used ext_lvl and ext_parm funtions in the individual rig files. + * tokens are used ext_lvl and ext_parm functions in the individual rig files. * Extra parameters which are rig specific should be coded in the individual rig files and token #s < 100. */ diff --git a/rigs/icom/icr7000.c b/rigs/icom/icr7000.c index 1f0f777f6..dbc5ca8cb 100644 --- a/rigs/icom/icr7000.c +++ b/rigs/icom/icr7000.c @@ -309,7 +309,7 @@ static int r7000_set_freq(RIG *rig, vfo_t vfo, freq_t freq) long long f = (long long)freq; /* - * The R7000 cannot set freqencies higher than 1GHz, + * The R7000 cannot set frequencies higher than 1GHz, * this is done by flipping a switch on the front panel and * stripping the most significant digit. * This is the only change with the common icom_set_freq diff --git a/rigs/jrc/jrc.c b/rigs/jrc/jrc.c index 3f665ccfd..c4bf4e11b 100644 --- a/rigs/jrc/jrc.c +++ b/rigs/jrc/jrc.c @@ -1358,7 +1358,7 @@ int jrc_set_mem(RIG *rig, vfo_t vfo, int ch) cmd_len = sprintf(cmdbuf, "C%03d" EOM, ch); - /* don't care about the Automatic reponse from receiver */ + /* don't care about the Automatic response from receiver */ return jrc_transaction(rig, cmdbuf, cmd_len, membuf, &mem_len); } diff --git a/rigs/kenwood/README.ts2k b/rigs/kenwood/README.ts2k index 6dc392408..cbc92a6db 100644 --- a/rigs/kenwood/README.ts2k +++ b/rigs/kenwood/README.ts2k @@ -36,7 +36,7 @@ File change summary: (Hopefully, I'll keep this updated...) (Currently every menu item number and text is entered but the menu default is not set. For example, grig can't be expected to know every rig's menu's. in work!) - It just occured to me that it would be very nice to + It just occurred to me that it would be very nice to have a default hamlib menu. If a rig don't have any or no menu functions yet, the levels and other items can be presented as a default menu. diff --git a/rigs/kenwood/ic10.c b/rigs/kenwood/ic10.c index 5039ebcfa..3f2763559 100644 --- a/rigs/kenwood/ic10.c +++ b/rigs/kenwood/ic10.c @@ -121,7 +121,7 @@ transaction: if (strncmp("ID", buffer, 2)) { - rig_debug(RIG_DEBUG_ERR, "%s: expected ID reponse and got %s\n", __func__, + rig_debug(RIG_DEBUG_ERR, "%s: expected ID response and got %s\n", __func__, buffer); return retval; } @@ -147,7 +147,7 @@ transaction: } /* - * Get the anwser of IF command, with retry handling + * Get the answer of IF command, with retry handling */ static int get_ic10_if(RIG *rig, char *data) { diff --git a/rigs/kenwood/kenwood.c b/rigs/kenwood/kenwood.c index a2c6fc86d..b4636c887 100644 --- a/rigs/kenwood/kenwood.c +++ b/rigs/kenwood/kenwood.c @@ -221,7 +221,7 @@ const struct confparams kenwood_cfg_params[] = * * returns: * RIG_OK - if no error occurred. - * RIG_EIO - if an I/O error occured while sending/receiving data. + * RIG_EIO - if an I/O error occurred while sending/receiving data. * RIG_ETIMEOUT - if timeout expires without any characters received. * RIG_REJECTED - if a negative acknowledge was received or command not * recognized by rig. @@ -566,7 +566,7 @@ transaction_quit: * expected Value of expected string length * * Returns: - * RIG_OK - if no error occured. + * RIG_OK - if no error occurred. * RIG_EPROTO if returned string and expected are not equal * Error from kenwood_transaction() if any * diff --git a/rigs/kenwood/kenwood.h b/rigs/kenwood/kenwood.h index 16fb01c72..879e2cd4b 100644 --- a/rigs/kenwood/kenwood.h +++ b/rigs/kenwood/kenwood.h @@ -116,7 +116,7 @@ struct kenwood_priv_data int k2_md_rtty; /* K2 RTTY mode available flag, 1 = RTTY, 0 = N/A */ char *fw_rev; /* firmware revision level */ int trn_state; /* AI state discovered at startup */ - unsigned fw_rev_uint; /* firmware revison as a number 1.07 -> 107 */ + unsigned fw_rev_uint; /* firmware revision as a number 1.07 -> 107 */ char verify_cmd[4]; /* command used to verify set commands */ int is_emulation; /* flag for TS-2000 emulations */ void *data; /* model specific data */ diff --git a/rigs/kenwood/pihpsdr.c b/rigs/kenwood/pihpsdr.c index a7a3cebee..5c1b38385 100644 --- a/rigs/kenwood/pihpsdr.c +++ b/rigs/kenwood/pihpsdr.c @@ -388,7 +388,7 @@ int pihspdr_get_channel(RIG *rig, channel_t *chan, int read_only) /* Memory group no */ chan->scan_group = buf[ 40 ] - '0'; - /* Fileds 38-39 contain tuning step as a number 00 - 09. + /* Fields 38-39 contain tuning step as a number 00 - 09. Tuning step depends on this number and the mode, just save it for now */ buf[ 40 ] = '\0'; @@ -633,7 +633,7 @@ int pihspdr_set_channel(RIG *rig, const channel_t *chan) } else { - tone = -1; /* -1 because we will add 1 when outputing; this is necessary as CTCSS codes are numbered from 1 */ + tone = -1; /* -1 because we will add 1 when outputting; this is necessary as CTCSS codes are numbered from 1 */ } /* find CTCSS code */ diff --git a/rigs/kenwood/th.c b/rigs/kenwood/th.c index 942018dfd..1a352e59d 100644 --- a/rigs/kenwood/th.c +++ b/rigs/kenwood/th.c @@ -1418,7 +1418,7 @@ th_set_ctcss_tone(RIG *rig, vfo_t vfo, tone_t tone) return -RIG_EINVAL; } - i += (i == 0) ? 1 : 2; /* Correct for TH-D7A index anomally */ + i += (i == 0) ? 1 : 2; /* Correct for TH-D7A index anomaly */ snprintf(tonebuf, sizeof tonebuf, "TN %02d", i); return kenwood_transaction(rig, tonebuf, tonebuf, sizeof tonebuf); } @@ -1496,7 +1496,7 @@ th_set_ctcss_sql(RIG *rig, vfo_t vfo, tone_t tone) return -RIG_EINVAL; } - i += (i == 0) ? 1 : 2; /* Correct for TH-D7A index anomally */ + i += (i == 0) ? 1 : 2; /* Correct for TH-D7A index anomaly */ snprintf(tonebuf, sizeof tonebuf, "CTN %02d", i); return kenwood_transaction(rig, tonebuf, tonebuf, sizeof tonebuf); } diff --git a/rigs/kenwood/thd74.c b/rigs/kenwood/thd74.c index 616496721..2605b7211 100644 --- a/rigs/kenwood/thd74.c +++ b/rigs/kenwood/thd74.c @@ -1108,7 +1108,7 @@ static int thd74_set_parm(RIG *rig, setting_t parm, value_t val) switch (parm) { - case RIG_PARM_TIME: // FIXME check val, send formated via RT + case RIG_PARM_TIME: // FIXME check val, send formatted via RT default: return -RIG_EINVAL; } diff --git a/rigs/kenwood/ts2000.c b/rigs/kenwood/ts2000.c index 1be085de9..2cef024ca 100644 --- a/rigs/kenwood/ts2000.c +++ b/rigs/kenwood/ts2000.c @@ -415,7 +415,7 @@ int ts2000_get_channel(RIG *rig, channel_t *chan, int read_only) /* Memory group no */ chan->scan_group = buf[ 40 ] - '0'; - /* Fileds 38-39 contain tuning step as a number 00 - 09. + /* Fields 38-39 contain tuning step as a number 00 - 09. Tuning step depends on this number and the mode, just save it for now */ buf[ 40 ] = '\0'; @@ -665,7 +665,7 @@ int ts2000_set_channel(RIG *rig, const channel_t *chan) } else { - tone = -1; /* -1 because we will add 1 when outputing; this is necessary as CTCSS codes are numbered from 1 */ + tone = -1; /* -1 because we will add 1 when outputting; this is necessary as CTCSS codes are numbered from 1 */ } /* find CTCSS code */ diff --git a/rigs/kenwood/ts2000.txt b/rigs/kenwood/ts2000.txt index e98b737f6..132e60275 100644 --- a/rigs/kenwood/ts2000.txt +++ b/rigs/kenwood/ts2000.txt @@ -3,7 +3,7 @@ Version: June 6, 2002 This document provides some data on translating commands from the TS-2000 to/from hamlib. It shows the sequence that should be used - to acheive a particular function result. Sometimes a particular + to achieve a particular function result. Sometimes a particular sequence should be called. --D. Edmons, kd7eni @@ -52,7 +52,7 @@ rig_init() "id;" ts2000_init() "?;" If this occurs, one of the above may be the cause. Also, the user may have a menu currently selected using the rig front panel. I currently don't know any way to get - this info from the rig. I highly reccomend that a + this info from the rig. I highly recommend that a message be sent to the user if "?;" occurs on more than one retry, that he/she must deselect this manually. There is no other way. (I've enabled "ai2;" and no @@ -67,13 +67,13 @@ rig_cleanup() none rig_get_freq() Independent of PTT/CTRL rig_set_freq() "fa...;", "fb...;" main receiver only - "fc...;" sub reciever only + "fc...;" sub receiver only rig_get_mode() rig_set_mode() "if...;" CTRL receiver only - Reads multiple paramaters at once. + Reads multiple parameters at once. "oi...;" !CTRL receiver only - Reads multiple paramaters at once. + Reads multiple parameters at once. "md...;" Changes the operating mod of the current receiver (main or sub) ts2000_sub_pwr() @@ -92,7 +92,7 @@ rig_set_vfo() "fr...;", "ft...;" These can force split mode if not driven These should be set in rig_set_vfo() unless split frequency is being changed. *Sub* only - Both "ft...;" and "fr...;" alway match + Both "ft...;" and "fr...;" always match and split not available. Setting vfo_b is not an error but reads back as vfo_a which would be an error. @@ -151,7 +151,7 @@ rig_set_xit() "dc;" to determine which transceiver has CTRL selected at any given moment! - Proceedure: As far as I can tell, do as follows: + Procedure: As far as I can tell, do as follows: 1) turn on xit or rit "rt1;" or "xt;" 2) read current offset ("if;") @@ -246,14 +246,14 @@ rig_mv_ctl() "fa...;", "fb...;", "fc...;" vfo freq rig_set_bank() none (only 300 memories) Note: There is a related function: "pm...;". There are five - of these "programable memories". The manual barely even + of these "programmable memories". The manual barely even mentions it. I don't know of any way to access these other than with the "pm...;" As far as I have been able to determine, the menu A/B settings etc get saved but *not* the channel memories! These may be related or similar to the five or ten satellite memories etc?? - To set the programable memory use "pi...;" and use + To set the programmable memory use "pi...;" and use "pm...;" to recall it. Values are 0-5. "pi0;" is not valid, but "pm0;" is. @@ -306,7 +306,7 @@ End of functions documented in hamlib-1.1.0.pdf. 1) TNC on sub 2) sub freq set to station sending packet clusters 3) "cm1;" sent to rig - Sending "pk;" to the receiver retreives the PCT data. If you + Sending "pk;" to the receiver retrieves the PCT data. If you send the ";" again, the rig sends the data again. Up to 10 are saved in temporary memory pushing out the oldest. But, true to form, there is a bug. When PCT is active "qr...;" @@ -321,7 +321,7 @@ End of functions documented in hamlib-1.1.0.pdf. Kenwood isn't telling us! TNC summary: - "pk...;" retreive last PCT data + "pk...;" retrieve last PCT data "cm...;" enable/disable PCT "tc ..;" (note space) TNC ext/int (sortof) "ex055...;" enable (*cannot* disable) TNC diff --git a/rigs/kit/elektor507.c b/rigs/kit/elektor507.c index 7598d5385..8237830a3 100644 --- a/rigs/kit/elektor507.c +++ b/rigs/kit/elektor507.c @@ -550,7 +550,7 @@ int elektor507_ftdi_write_data(RIG *rig, void *FTOutBuf, * This kit is a QSD based on a CY27EE16ZE PLL. * The receiver is controlled via USB (through FTDI FT232R). * - * Original artical: + * Original article: * http://www.elektor.com/magazines/2007/may/software-defined-radio.91527.lynkx * * Author (Burkhard Kainka) page, in german: diff --git a/rigs/kit/rs_hfiq.c b/rigs/kit/rs_hfiq.c index 2ba78adfa..42921180e 100644 --- a/rigs/kit/rs_hfiq.c +++ b/rigs/kit/rs_hfiq.c @@ -20,7 +20,7 @@ */ /* * - * For informations about the controls see + * For information about the controls see * https://sites.google.com/site/rshfiqtransceiver/home/technical-data/interface-commands * */ diff --git a/rigs/kit/si570avrusb.c b/rigs/kit/si570avrusb.c index 131181b3a..a971bf3b8 100644 --- a/rigs/kit/si570avrusb.c +++ b/rigs/kit/si570avrusb.c @@ -968,7 +968,7 @@ static int setBPF(RIG *rig, int enable) unsigned short FilterCrossOver[16]; int nBytes; - // Does FilterCrossOver needs endianess ordering ? + // Does FilterCrossOver needs endianness ordering ? // first find out how may cross over points there are for the 1st bank, use 255 for index nBytes = libusb_control_transfer(udh, REQUEST_TYPE_IN, diff --git a/rigs/rs/gp2000.c b/rigs/rs/gp2000.c index ac69e3b43..cfc34e3bb 100644 --- a/rigs/rs/gp2000.c +++ b/rigs/rs/gp2000.c @@ -23,7 +23,7 @@ /* * Looks like the GP2000 could be reused in other rigs so - * we implmenet that and then the XK2100 uses this interface + * we implement that and then the XK2100 uses this interface */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -345,7 +345,7 @@ gp2000_get_func(RIG *rig, vfo_t vfo, setting_t func, int *status) return retval; } - // we expecte LF+"X" where X is the status + // we expected LF+"X" where X is the status *status = buf[2] == 1 ? 1 : 0; return retval; diff --git a/rigs/tentec/omnivii.c b/rigs/tentec/omnivii.c index a2f495f3c..4082ffbe4 100644 --- a/rigs/tentec/omnivii.c +++ b/rigs/tentec/omnivii.c @@ -271,7 +271,7 @@ static int tt588_transaction(RIG *rig, const char *cmd, int cmd_len, char *data, rig_flush(&rs->rigport); // We add 1 to data_len here for the null byte inserted by read_string eventually - // That way all the callers can use the expected response length for the cmd_len paramter here + // That way all the callers can use the expected response length for the cmd_len parameter here // Callers all need to ensure they have enough room in data for this retval = write_block(&rs->rigport, cmd, cmd_len); diff --git a/rigs/tentec/orion.c b/rigs/tentec/orion.c index 7a0a42082..560a228f8 100644 --- a/rigs/tentec/orion.c +++ b/rigs/tentec/orion.c @@ -182,7 +182,7 @@ static int tt565_transaction(RIG *rig, const char *cmd, int cmd_len, char *data, } else // Yes, it was a 'read', phew! { - if (!strncmp(data + 1, cmd + 1, cmd_len - 2)) //reponse matches cmd? + if (!strncmp(data + 1, cmd + 1, cmd_len - 2)) //response matches cmd? { return RIG_OK; // all is well, normal exit } diff --git a/rigs/tentec/paragon.c b/rigs/tentec/paragon.c index 807c817f6..6365d9c99 100644 --- a/rigs/tentec/paragon.c +++ b/rigs/tentec/paragon.c @@ -584,7 +584,7 @@ int tt585_get_status_data(RIG *rig) rig_flush(rigport); - /* send STATUS comand to fetch data*/ + /* send STATUS command to fetch data*/ ret = write_block(rigport, "\\", 1); @@ -622,7 +622,7 @@ int tt585_set_parm(RIG *rig, setting_t parm, value_t val) return ret; } - /* exact addional delay TBC */ + /* exact additional delay TBC */ sleep(1); return RIG_OK; diff --git a/rigs/tentec/rx350.c b/rigs/tentec/rx350.c index b90937d5d..8d187f678 100644 --- a/rigs/tentec/rx350.c +++ b/rigs/tentec/rx350.c @@ -56,7 +56,7 @@ * http://www.rfsquared.com/ * * Only set_freq is supposed to work. - * This is a skelton. + * This is a skeleton. */ const struct rig_caps rx350_caps = { diff --git a/rigs/tentec/tt550.c b/rigs/tentec/tt550.c index 20215f5cb..d910683d7 100644 --- a/rigs/tentec/tt550.c +++ b/rigs/tentec/tt550.c @@ -1417,7 +1417,7 @@ tt550_get_ptt(RIG *rig, vfo_t vfo, ptt_t *ptt) } /* - * buf should contain either Sxx for Receive Signal strenth + * buf should contain either Sxx for Receive Signal strength * or Txx for Transmit power/reflected power */ diff --git a/rigs/tuner/videodev.h b/rigs/tuner/videodev.h index 6032b52ed..cf6b90cf8 100644 --- a/rigs/tuner/videodev.h +++ b/rigs/tuner/videodev.h @@ -217,7 +217,7 @@ struct video_info { uint32_t frame_count; /* frames output since decode/encode began */ uint32_t h_size; /* current unscaled horizontal size */ - uint32_t v_size; /* current unscaled veritcal size */ + uint32_t v_size; /* current unscaled vertical size */ uint32_t smpte_timecode; /* current SMPTE timecode (for current GOP) */ uint32_t picture_type; /* current picture type */ uint32_t temporal_reference; /* current temporal reference */ diff --git a/rigs/tuner/videodev2.h b/rigs/tuner/videodev2.h index c4d5b1a3f..43bc41401 100644 --- a/rigs/tuner/videodev2.h +++ b/rigs/tuner/videodev2.h @@ -483,7 +483,7 @@ struct v4l2_jpegcompression { __u32 jpeg_markers; /* Which markers should go into the JPEG * output. Unless you exactly know what * you do, leave them untouched. - * Inluding less markers will make the + * Including less markers will make the * resulting code smaller, but there will * be fewer applications which can read it. * The presence of the APP and COM marker @@ -495,7 +495,7 @@ struct v4l2_jpegcompression { #define V4L2_JPEG_MARKER_DRI (1<<5) /* Define Restart Interval */ #define V4L2_JPEG_MARKER_COM (1<<6) /* Comment segment */ #define V4L2_JPEG_MARKER_APP (1<<7) /* App segment, driver will - * allways use APP0 */ + * always use APP0 */ }; /* diff --git a/rigs/uniden/uniden.c b/rigs/uniden/uniden.c index 7d50f91b9..377e328c8 100644 --- a/rigs/uniden/uniden.c +++ b/rigs/uniden/uniden.c @@ -110,8 +110,8 @@ const tone_t uniden_dcs_list[] = * out: location where to store number of bytes read. * * returns: - * RIG_OK - if no error occured. - * RIG_EIO - if an I/O error occured while sending/receiving data. + * RIG_OK - if no error occurred. + * RIG_EIO - if an I/O error occurred while sending/receiving data. * RIG_ETIMEOUT - if timeout expires without any characters received. * RIG_REJECTED - if a negative acknowledge was received or command not * recognized by rig. diff --git a/rigs/uniden/uniden_digital.c b/rigs/uniden/uniden_digital.c index 9c770fa80..912f68499 100644 --- a/rigs/uniden/uniden_digital.c +++ b/rigs/uniden/uniden_digital.c @@ -68,7 +68,7 @@ uniden_id_string_list[] = }; #endif -/* EOM is not consistant with this BCD996T! +/* EOM is not consistent with this BCD996T! * Some commands return newline while others carriage return. * Some commands return nothing special for End of Line char. */ #define EOM "\r" /* end of message */ @@ -92,8 +92,8 @@ uniden_id_string_list[] = * out: location where to store number of bytes read. * * returns: - * RIG_OK - if no error occured. - * RIG_EIO - if an I/O error occured while sending/receiving data. + * RIG_OK - if no error occurred. + * RIG_EIO - if an I/O error occurred while sending/receiving data. * RIG_ETIMEOUT - if timeout expires without any characters received. * RIG_REJECTED - if a negative acknowledge was received or command not * recognized by rig. @@ -156,7 +156,7 @@ transaction_write: /* Check that command termination is correct * FIXME: Sometimes the BCD996T DOES NOT return a - * consistant carriage return or newline. + * consistent carriage return or newline. * ie: STS command will not return either "\r" or "\n"! */ /*if (strchr(EOM, data[strlen(data)-1])==NULL) { rig_debug(RIG_DEBUG_ERR, "%s: Command is not correctly terminated '%s'\n", __func__, data); diff --git a/rigs/yaesu/ft1000mp.c b/rigs/yaesu/ft1000mp.c index d5d344791..e7ab1097b 100644 --- a/rigs/yaesu/ft1000mp.c +++ b/rigs/yaesu/ft1000mp.c @@ -820,7 +820,7 @@ int ft1000mp_get_freq(RIG *rig, vfo_t vfo, freq_t *freq) rig_debug(RIG_DEBUG_TRACE, "ft1000mp: freq = %"PRIfreq" Hz for VFO [%x]\n", f, vfo); - *freq = f; /* return diplayed frequency */ + *freq = f; /* return displayed frequency */ return RIG_OK; } @@ -1244,7 +1244,7 @@ int ft1000mp_get_rit(RIG *rig, vfo_t vfo, shortfreq_t *rit) rig_debug(RIG_DEBUG_TRACE, "%s: freq = %d Hz for VFO [%s]\n", __func__, (int)f, rig_strvfo(vfo)); - *rit = f; /* return diplayed frequency */ + *rit = f; /* return displayed frequency */ return RIG_OK; } @@ -1348,7 +1348,7 @@ int ft1000mp_get_xit(RIG *rig, vfo_t vfo, shortfreq_t *xit) rig_debug(RIG_DEBUG_TRACE, "%s: freq = %d Hz for VFO [%s]\n", __func__, (int)f, rig_strvfo(vfo)); - *xit = f; /* return diplayed frequency */ + *xit = f; /* return displayed frequency */ return RIG_OK; } @@ -1496,7 +1496,7 @@ static int ft1000mp_get_update_data(RIG *rig, unsigned char ci, do { - /* send UPDATE comand to fetch data*/ + /* send UPDATE command to fetch data*/ ft1000mp_send_priv_cmd(rig, ci); n = read_block(&rig_s->rigport, (char *) p->update_data, rl); diff --git a/rigs/yaesu/ft747.c b/rigs/yaesu/ft747.c index 5f36bc27c..7793420c5 100644 --- a/rigs/yaesu/ft747.c +++ b/rigs/yaesu/ft747.c @@ -482,7 +482,7 @@ int ft747_get_freq(RIG *rig, vfo_t vfo, freq_t *freq) rig_debug(RIG_DEBUG_VERBOSE, "ft747: freq = %"PRIfreq" Hz for VFO = %s\n", f, rig_strvfo(vfo)); - (*freq) = f; /* return diplayed frequency */ + (*freq) = f; /* return displayed frequency */ return RIG_OK; } @@ -871,7 +871,7 @@ static int ft747_get_update_data(RIG *rig) int port_timeout; rig_flush(rigport); - /* send UPDATE comand to fetch data*/ + /* send UPDATE command to fetch data*/ ret = ft747_send_priv_cmd(rig, FT_747_NATIVE_UPDATE); diff --git a/rigs/yaesu/ft747.h b/rigs/yaesu/ft747.h index 1514b21f5..85b3b27be 100644 --- a/rigs/yaesu/ft747.h +++ b/rigs/yaesu/ft747.h @@ -129,7 +129,7 @@ typedef enum ft747_native_cmd_e ft747_native_cmd_t; #define MODE_LSB 0x10 #define MODE_NAR 0x80 -/* All relevent bits */ +/* All relevant bits */ #define MODE_MASK 0x9f diff --git a/rigs/yaesu/ft757gx.h b/rigs/yaesu/ft757gx.h index 2cdc4df7c..7f02245ab 100644 --- a/rigs/yaesu/ft757gx.h +++ b/rigs/yaesu/ft757gx.h @@ -89,7 +89,7 @@ #define FT757GX_ALL_TX_MODES (RIG_MODE_AM|RIG_MODE_CW|RIG_MODE_SSB|RIG_MODE_FM) -/* Backend fucntion prototypes. These map to frontend functions. */ +/* Backend function prototypes. These map to frontend functions. */ static int ft757_init(RIG *rig); static int ft757_cleanup(RIG *rig); static int ft757_open(RIG *rig); diff --git a/rigs/yaesu/ft840.h b/rigs/yaesu/ft840.h index 0316cf939..4ebcabd38 100644 --- a/rigs/yaesu/ft840.h +++ b/rigs/yaesu/ft840.h @@ -219,7 +219,7 @@ typedef enum ft840_native_cmd_e ft840_native_cmd_t; /* * Offsets for VFO record retrieved via 0x10 P1 = 02, 03, 04 * - * The FT-840 returns frequency and mode data via three seperate commands. + * The FT-840 returns frequency and mode data via three separate commands. * CAT command 0x10, P1 = 02 returns the current main and sub displays' data (19 bytes) * CAT command 0x10, P1 = 03 returns VFO A & B data (18 bytes) * CAT command 0x10, P1 = 04, P4 = 0x01-0x20 returns memory channel data (19 bytes) diff --git a/rigs/yaesu/ft847.c b/rigs/yaesu/ft847.c index 121bf38c4..d20127331 100644 --- a/rigs/yaesu/ft847.c +++ b/rigs/yaesu/ft847.c @@ -652,7 +652,7 @@ static int ft847_send_priv_cmd(RIG *rig, int cmd_index) /* * opcode_vfo() copy into cmd the 5 byte command designated by cmd_index, - * and patch the opcode with VFO targetting (MAIN 0x0-, SAT RX 0x1-, SAT TX 0x2-) + * and patch the opcode with VFO targeting (MAIN 0x0-, SAT RX 0x1-, SAT TX 0x2-) */ static int opcode_vfo(RIG *rig, unsigned char *cmd, int cmd_index, vfo_t vfo) { diff --git a/rigs/yaesu/ft890.h b/rigs/yaesu/ft890.h index 46b1e33f4..5251b57f7 100644 --- a/rigs/yaesu/ft890.h +++ b/rigs/yaesu/ft890.h @@ -219,7 +219,7 @@ typedef enum ft890_native_cmd_e ft890_native_cmd_t; /* * Offsets for VFO record retrieved via 0x10 P1 = 02, 03, 04 * - * The FT-890 returns frequency and mode data via three seperate commands. + * The FT-890 returns frequency and mode data via three separate commands. * CAT command 0x10, P1 = 02 returns the current main and sub displays' data (19 bytes) * CAT command 0x10, P1 = 03 returns VFO A & B data (18 bytes) * CAT command 0x10, P1 = 04, P4 = 0x01-0x20 returns memory channel data (19 bytes) diff --git a/rigs/yaesu/ft900.h b/rigs/yaesu/ft900.h index 1c37e96ab..3079fc7d8 100644 --- a/rigs/yaesu/ft900.h +++ b/rigs/yaesu/ft900.h @@ -218,7 +218,7 @@ typedef enum ft900_native_cmd_e ft900_native_cmd_t; /* * Offsets for VFO record retrieved via 0x10 P1 = 02, 03, 04 * - * The FT-900 returns frequency and mode data via three seperate commands. + * The FT-900 returns frequency and mode data via three separate commands. * CAT command 0x10, P1 = 02 returns the current main and sub displays' data (19 bytes) * CAT command 0x10, P1 = 03 returns VFO A & B data (18 bytes) * CAT command 0x10, P1 = 04, P4 = 0x01-0x20 returns memory channel data (19 bytes) diff --git a/rigs/yaesu/ft920.h b/rigs/yaesu/ft920.h index d0c832223..0f4aab7d2 100644 --- a/rigs/yaesu/ft920.h +++ b/rigs/yaesu/ft920.h @@ -240,7 +240,7 @@ typedef enum ft920_native_cmd_e ft920_native_cmd_t; /* * Offsets for VFO record retrieved via 0x10 P1 = 02, 03 * - * The FT-920 returns frequency and mode data via three seperate commands. + * The FT-920 returns frequency and mode data via three separate commands. * CAT command 0x10, P1 = 02 returns the current main and sub displays' data (28 bytes) * CAT command 0x10, P1 = 03 returns VFO A data and the sub display data (sub display is always VFO B) (28 bytes) * CAT command 0x10, P1 = 04, P4 = 0x00-0x89 returns memory channel data (14 bytes) @@ -301,7 +301,7 @@ typedef enum ft920_native_cmd_e ft920_native_cmd_t; #define MODE_USBN 0xc0 /* Not sure this actually exists */ #define MODE_CW_UN 0xc1 -/* All relevent bits */ +/* All relevant bits */ #define MODE_MASK 0xc7 diff --git a/rigs/yaesu/newcat.c b/rigs/yaesu/newcat.c index cd1337037..cfe405773 100644 --- a/rigs/yaesu/newcat.c +++ b/rigs/yaesu/newcat.c @@ -254,7 +254,7 @@ int valid_commands_count = sizeof(valid_commands) / sizeof( const struct confparams newcat_cfg_params[] = { { - TOK_FAST_SET_CMD, "fast_commands_token", "High troughput of commands", "Enabled high throughput of >200 messages/sec by not waiting for ACK/NAK of messages", "0", RIG_CONF_NUMERIC, { .n = { 0, 1, 1 } } + TOK_FAST_SET_CMD, "fast_commands_token", "High throughput of commands", "Enabled high throughput of >200 messages/sec by not waiting for ACK/NAK of messages", "0", RIG_CONF_NUMERIC, { .n = { 0, 1, 1 } } }, { RIG_CONF_END, NULL, } }; @@ -4008,7 +4008,7 @@ int newcat_set_mem(RIG *rig, vfo_t vfo, int ch) break; case RIG_VFO_MEM: - /* Jump from channel to channel in memmory mode */ + /* Jump from channel to channel in memory mode */ restore_vfo = FALSE; break; @@ -4300,7 +4300,7 @@ int newcat_set_channel(RIG *rig, const channel_t *chan) break; case RIG_VFO_MEM: - /* Jump from channel to channel in memmory mode */ + /* Jump from channel to channel in memory mode */ restore_vfo = FALSE; break; @@ -4936,7 +4936,7 @@ int newcat_set_vfo_from_alias(RIG *rig, vfo_t *vfo) * Using rigctl on FT950 I was trying to set RIG_LEVEL_COMP to 12 * I kept setting it to 11. I wrote some test software and * found out that 0.12 * 100 = 11 with my setup. - * Compilier is gcc 4.2.4, CPU is AMD X2 + * Compiler is gcc 4.2.4, CPU is AMD X2 * This works somewhat but Find a better way. * The newcat_get_level() seems to work correctly. * Terry KJ4EED @@ -6321,7 +6321,7 @@ int newcat_get_vfo_mode(RIG *rig, vfo_t *vfo_mode) /* - * Writed data and waits for responce + * Writed data and waits for response * input: complete CAT command string including termination in cmd_str * output: complete CAT command answer string in ret_data * return: RIG_OK or error diff --git a/rigs/yaesu/vr5000.c b/rigs/yaesu/vr5000.c index eeb403cfa..0fa335f89 100644 --- a/rigs/yaesu/vr5000.c +++ b/rigs/yaesu/vr5000.c @@ -42,10 +42,10 @@ * The vr5000 has no CAT commands for reading the frequency, ts nor mode. * These function are emulated, because the vr5000 thunkates the input * frequency. Secondly when changing the mode, ts will change, and since - * ts it the one that desides how the frequency is thunkated, the frequency + * ts it the one that decides how the frequency is thunkated, the frequency * will change. * - * True reciever range was not specified correctly in manual. No all + * True receiver range was not specified correctly in manual. No all * mode allow to go down to 100 Khz. Therefore the minimum frequency * which will be allowed is 101.5 kKz. Maximum is 2599.99 Mhz. * @@ -569,7 +569,7 @@ void correct_frequency(RIG *rig, vfo_t vfo, freq_t curr_freq, freq_t *freq) /* * Set mode and ts, then frequency. Both mode/ts and frequency are set - * everytime one of them changes. + * every time one of them changes. */ int set_vr5000(RIG *rig, vfo_t vfo, freq_t freq, rmode_t mode, pbwidth_t width, shortfreq_t ts) diff --git a/rigs/yaesu/vx1700.c b/rigs/yaesu/vx1700.c index f99b9c767..cb59ea9d5 100644 --- a/rigs/yaesu/vx1700.c +++ b/rigs/yaesu/vx1700.c @@ -352,7 +352,7 @@ static int vx1700_do_freq_cmd(RIG *rig, unsigned char ci, freq_t freq) if ((ci != VX1700_NATIVE_FREQ_SET) && (ci != VX1700_NATIVE_TX_FREQ_SET)) { rig_debug(RIG_DEBUG_TRACE, - "%s: Attempt to use non freqency sequence\n", __func__); + "%s: Attempt to use non frequency sequence\n", __func__); return -RIG_EINVAL; } diff --git a/rotators/ars/ars.c b/rotators/ars/ars.c index 7c89691b4..9b0176704 100644 --- a/rotators/ars/ars.c +++ b/rotators/ars/ars.c @@ -164,7 +164,7 @@ ars_init(ROT *rot) priv->pp_data = 0; /* Always use 10 bit resolution, which supports also 8 bits - * at the cost of 2 potentialy wrong lsb */ + * at the cost of 2 potentially wrong lsb */ priv->adc_res = 10; /* 8 bits vs. 10 bits ADC */ priv->brake_off = 0; /* i.e. brake is ON */ priv->curr_move = 0; @@ -319,7 +319,7 @@ ars_move(ROT *rot, int direction, int speed) if (ars_has_el(rot)) { // RCI Model Azim & Elev - // Desactivated CCW/CW relays + // Deactivated CCW/CW relays CHKPPRET(ars_clear_ctrl_pin(rot, CTL_PIN17 | CTL_PIN16)); // Relay Aux CHKPPRET(ars_set_data_pin(rot, DTA_PIN02 | DTA_PIN04 | DTA_PIN06 | DTA_PIN08)); @@ -328,7 +328,7 @@ ars_move(ROT *rot, int direction, int speed) else { // RCI Model Azimuth only - // Desactivated CCW/CW relays + // Deactivated CCW/CW relays CHKPPRET(ars_clear_ctrl_pin(rot, CTL_PIN17 | CTL_PIN16)); // Relay Aux CHKPPRET(ars_set_data_pin(rot, diff --git a/rotators/celestron/celestron.c b/rotators/celestron/celestron.c index f095b6fe5..1491050e0 100644 --- a/rotators/celestron/celestron.c +++ b/rotators/celestron/celestron.c @@ -50,8 +50,8 @@ * a large enough buffer for all possible replies for a command. * * returns: - * RIG_OK - if no error occured. - * RIG_EIO - if an I/O error occured while sending/receiving data. + * RIG_OK - if no error occurred. + * RIG_EIO - if an I/O error occurred while sending/receiving data. * RIG_ETIMEOUT - if timeout expires without any characters received. */ static int diff --git a/rotators/easycomm/easycomm.txt b/rotators/easycomm/easycomm.txt index 05ad36773..c62795778 100644 --- a/rotators/easycomm/easycomm.txt +++ b/rotators/easycomm/easycomm.txt @@ -7,7 +7,7 @@ EASYCOMM I Standard ------------------- The EasyComm 1 standard is a simple ASCII character based standard for -controling antennas and rotators. +controlling antennas and rotators. The host PC issues a single line command as follows -: diff --git a/rotators/fodtrack/fodtrack.c b/rotators/fodtrack/fodtrack.c index cab6f246b..57c17537b 100644 --- a/rotators/fodtrack/fodtrack.c +++ b/rotators/fodtrack/fodtrack.c @@ -58,7 +58,7 @@ static int setDirection(hamlib_port_t *port, unsigned char outputvalue, // set the data bits par_write_data(port, outputvalue); - // autofd=true --> azimuth otherwhise elevation + // autofd=true --> azimuth otherwise elevation if (direction) { outputstatus = PARPORT_CONTROL_AUTOFD; diff --git a/rotators/gs232a/gs232.c b/rotators/gs232a/gs232.c index b179b116b..a860cc100 100644 --- a/rotators/gs232a/gs232.c +++ b/rotators/gs232a/gs232.c @@ -51,8 +51,8 @@ * a large enough buffer for all possible replies for a command. * * returns: - * RIG_OK - if no error occured. - * RIG_EIO - if an I/O error occured while sending/receiving data. + * RIG_OK - if no error occurred. + * RIG_EIO - if an I/O error occurred while sending/receiving data. * RIG_ETIMEOUT - if timeout expires without any characters received. * RIG_REJECTED - if a negative acknowledge was received or command not * recognized by rig. @@ -235,7 +235,7 @@ gs232_rot_stop(ROT *rot) /* ************************************************************************* */ /* - * Generic GS232 Protocol (including those not correctly implmented) rotator capabilities. + * Generic GS232 Protocol (including those not correctly implemented) rotator capabilities. */ const struct rot_caps gs232_generic_rot_caps = diff --git a/rotators/gs232a/gs232a.c b/rotators/gs232a/gs232a.c index f0718eee1..d94299199 100644 --- a/rotators/gs232a/gs232a.c +++ b/rotators/gs232a/gs232a.c @@ -56,8 +56,8 @@ * a large enough buffer for all possible replies for a command. * * returns: - * RIG_OK - if no error occured. - * RIG_EIO - if an I/O error occured while sending/receiving data. + * RIG_OK - if no error occurred. + * RIG_EIO - if an I/O error occurred while sending/receiving data. * RIG_ETIMEOUT - if timeout expires without any characters received. * RIG_REJECTED - if a negative acknowledge was received or command not * recognized by rig. diff --git a/rotators/gs232a/gs232b.c b/rotators/gs232a/gs232b.c index 97e51ad68..399467974 100644 --- a/rotators/gs232a/gs232b.c +++ b/rotators/gs232a/gs232b.c @@ -57,8 +57,8 @@ * a large enough buffer for all possible replies for a command. * * returns: - * RIG_OK - if no error occured. - * RIG_EIO - if an I/O error occured while sending/receiving data. + * RIG_OK - if no error occurred. + * RIG_EIO - if an I/O error occurred while sending/receiving data. * RIG_ETIMEOUT - if timeout expires without any characters received. * RIG_REJECTED - if a negative acknowledge was received or command not * recognized by rig. diff --git a/rotators/ioptron/rot_ioptron.c b/rotators/ioptron/rot_ioptron.c index 137d99162..59df9252e 100644 --- a/rotators/ioptron/rot_ioptron.c +++ b/rotators/ioptron/rot_ioptron.c @@ -55,7 +55,7 @@ * COMMANDS note: as of 12/2018 a mixture of V2 and V3 * | TTTTTTTT(T) .01 arc seconds * | alt- sign with 8 digits, az - 9 digits | - * | Command | Atribute | Return value | Description | + * | Command | Attribute | Return value | Description | * -------------------------------------------------------------------| * | :GAC# | .01 arcsec | sTTTTTTTTTTTTTTTTT# | gets alt(s8), az(9) | * | :SzTTTTTTTTT# | .01 arcsec | '1' == OK | Set Target azimuth | @@ -65,8 +65,8 @@ * | :MS# | - | '1' == OK | GoTo Target | * | * returns: - * RIG_OK - if no error occured. - * RIG_EIO - if an I/O error occured while sending/receiving data. + * RIG_OK - if no error occurred. + * RIG_EIO - if an I/O error occurred while sending/receiving data. * RIG_ETIMEOUT - if timeout expires without any characters received. */ @@ -134,7 +134,7 @@ transaction_quit: } /** - * Opens the Port and sets all needed parametes for operation + * Opens the Port and sets all needed parameters for operation * as of 12/2018 initiates mount with V3 :MountInfo# */ static int ioptron_open(ROT *rot) diff --git a/rotators/m2/rc2800.c b/rotators/m2/rc2800.c index b2cd43790..8697a4119 100644 --- a/rotators/m2/rc2800.c +++ b/rotators/m2/rc2800.c @@ -162,8 +162,8 @@ int testmain() * a large enough buffer for all possible replies for a command. * * returns: - * RIG_OK - if no error occured. - * RIG_EIO - if an I/O error occured while sending/receiving data. + * RIG_OK - if no error occurred. + * RIG_EIO - if an I/O error occurred while sending/receiving data. * RIG_ETIMEOUT - if timeout expires without any characters received. */ static int diff --git a/rotators/meade/meade.c b/rotators/meade/meade.c index 0aaa9341f..03bab0980 100644 --- a/rotators/meade/meade.c +++ b/rotators/meade/meade.c @@ -67,7 +67,7 @@ struct meade_priv_data * Serial cable. But should also work with other AutoStars and the regular * Serial Cable. * - * | Command | Atribute | Return value | Description | + * | Command | Attribute | Return value | Description | * -------------------------------------------------------------------- * | :Me# | - | - | Moves telescope east | * | :Mn# | - | - | Moves telescope north | @@ -204,7 +204,7 @@ static int meade_cleanup(ROT *rot) } /* - * Opens the Port and sets all needed parametes for operation + * Opens the Port and sets all needed parameters for operation */ static int meade_open(ROT *rot) { diff --git a/rotators/sartek/sartek.c b/rotators/sartek/sartek.c index 11c52cf36..259fc036c 100644 --- a/rotators/sartek/sartek.c +++ b/rotators/sartek/sartek.c @@ -38,7 +38,7 @@ /* ************************************* * - * Seperate model capabilities + * Separate model capabilities * * ************************************* */ diff --git a/rotators/ts7400/include/peekpoke.c b/rotators/ts7400/include/peekpoke.c index a72dc1b0e..7ddb08383 100644 --- a/rotators/ts7400/include/peekpoke.c +++ b/rotators/ts7400/include/peekpoke.c @@ -67,7 +67,7 @@ int main(int argc, char **argv) if (argc < 3 || argc > 5) { fprintf(stderr, "Usage: peekpoke BIT_WIDTH ADDRESS >\n"); - fprintf(stderr, " can be anything; supresses read-back on write\n"); + fprintf(stderr, " can be anything; suppresses read-back on write\n"); return 0; } diff --git a/rotators/ts7400/include/readADC.c b/rotators/ts7400/include/readADC.c index 87551397b..932a603c9 100644 --- a/rotators/ts7400/include/readADC.c +++ b/rotators/ts7400/include/readADC.c @@ -21,8 +21,8 @@ char *dr_page; double el, az; /*Calculate the adc value corresponding to 0V*/ -//val1 is the ADC val coresponding to 0.833V -//val2 is the ADC val corresponging to 2.5V +//val1 is the ADC val corresponding to 0.833V +//val2 is the ADC val corresponding to 2.5V int calcZeroVal(int val1, int val2) { val2 += 0x10000; diff --git a/rotators/ts7400/include/test7400ADC.c b/rotators/ts7400/include/test7400ADC.c index efea91015..4e7bc4f4e 100644 --- a/rotators/ts7400/include/test7400ADC.c +++ b/rotators/ts7400/include/test7400ADC.c @@ -19,8 +19,8 @@ static unsigned long adc_page, syscon_page; char *dr_page; /*Calculate the adc value corresponding to 0V*/ -//val1 is the ADC val coresponding to 0.833V -//val2 is the ADC val corresponging to 2.5V +//val1 is the ADC val corresponding to 0.833V +//val2 is the ADC val corresponding to 2.5V int calcZeroVal(int val1, int val2) { val2 += 0x10000; diff --git a/scripts/build-VB.NET.sh b/scripts/build-VB.NET.sh index 09c75fbd8..68e3ac222 100644 --- a/scripts/build-VB.NET.sh +++ b/scripts/build-VB.NET.sh @@ -99,11 +99,11 @@ Covered are: - get Riginfo -rig_debug_level_e not verified (Function is Void, VB Dokumentation -sais 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 accapting this) To get access to the Class you have to add something like this in your Main Class - Dim RigLib As RigControll = New RigControll 'get Acces to RigLib Klass + Dim RigLib As RigControll = New RigControll 'get Access to RigLib Klass diff --git a/src/amp_conf.c b/src/amp_conf.c index bd22176bd..21c898475 100644 --- a/src/amp_conf.c +++ b/src/amp_conf.c @@ -575,8 +575,8 @@ token_t HAMLIB_API amp_token_lookup(AMP *amp, const char *name) * * Sets a configuration parameter. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa amp_get_conf() @@ -625,10 +625,10 @@ int HAMLIB_API amp_set_conf(AMP *amp, token_t token, const char *val) * \param token The parameter * \param val The location where to store the value of config \a token * - * Retrieves the value of a configuration paramter associated with \a token. + * Retrieves the value of a configuration parameter associated with \a token. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa amp_set_conf() diff --git a/src/amplifier.c b/src/amplifier.c index 1ddc8d0a2..a618a78a7 100644 --- a/src/amplifier.c +++ b/src/amplifier.c @@ -137,7 +137,7 @@ static int remove_opened_amp(AMP *amp) * * Calls cfunc() function for each opened amp. The contents of the opened * amp table is processed in random order according to a function pointed to - * by \a cfunc, whic is called with two arguments, the first pointing to the + * by \a cfunc, which is called with two arguments, the first pointing to the * #AMP handle, the second to a data pointer \a data. * * If \a data is not needed, then it can be set to NULL. The processing of @@ -282,11 +282,11 @@ AMP *HAMLIB_API amp_init(amp_model_t amp_model) * Opens communication to a amplifier which \a AMP handle has been passed * by argument. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * - * \retval RIG_EINVAL \a amp is NULL or unconsistent. + * \retval RIG_EINVAL \a amp is NULL or inconsistent. * * \sa amp_init(), amp_close() */ @@ -416,8 +416,8 @@ int HAMLIB_API amp_open(AMP *amp) * Closes communication to a amplifier which \a AMP handle has been passed * by argument that was previously open with amp_open(). * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa amp_cleanup(), amp_open() @@ -492,11 +492,11 @@ int HAMLIB_API amp_close(AMP *amp) * \brief release a amp handle and free associated memory * \param amp The #AMP handle of the radio to be closed * - * Releases a amp struct which port has eventualy been closed already + * Releases a amp struct which port has eventually been closed already * with amp_close(). * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa amp_init(), amp_close() @@ -538,8 +538,8 @@ int HAMLIB_API amp_cleanup(AMP *amp) * * Resets the amplifier. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * */ @@ -619,7 +619,7 @@ int HAMLIB_API amp_set_freq(AMP *amp, freq_t freq) * This can include firmware revision, exact model name, or just nothing. * * \return a pointer to static memory containing the ASCIIZ string - * if the operation has been sucessful, otherwise NULL if an error occured + * if the operation has been successful, otherwise NULL if an error occurred * or get_info not part of capabilities. */ const char *HAMLIB_API amp_get_info(AMP *amp) @@ -686,8 +686,8 @@ int HAMLIB_API amp_get_ext_level(AMP *amp, token_t level, value_t *val) * See #RIG_POWER_ON, #RIG_POWER_OFF and #RIG_POWER_STANDBY #RIG_POWER_OPERATE defines * for the \a status. * - * \return RIG_OK if the operation has been sucessful, ortherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, ortherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa amp_get_powerstat() diff --git a/src/conf.c b/src/conf.c index e9e859103..f4d9a5bec 100644 --- a/src/conf.c +++ b/src/conf.c @@ -918,8 +918,8 @@ static int frontend_get_conf(RIG *rig, token_t token, char *val) * rig_token_foreach starts first with backend conf table, then finish * with frontend table. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). */ int HAMLIB_API rig_token_foreach(RIG *rig, @@ -1057,8 +1057,8 @@ token_t HAMLIB_API rig_token_lookup(RIG *rig, const char *name) * * Sets a configuration parameter. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_get_conf() @@ -1107,11 +1107,11 @@ int HAMLIB_API rig_set_conf(RIG *rig, token_t token, const char *val) * \param token The parameter * \param val The location where to store the value of config \a token * - * Retrieves the value of a configuration paramter associated with \a token. + * Retrieves the value of a configuration parameter associated with \a token. * The location pointed to by val must be large enough to hold the value of the config. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_set_conf() diff --git a/src/debug.c b/src/debug.c index edf941120..e1f5fc887 100644 --- a/src/debug.c +++ b/src/debug.c @@ -271,8 +271,8 @@ rig_message_cb(enum rig_debug_level_e debug_level, rig_set_debug_callback (rig_message_cb, (rig_ptr_t)cookie); \endcode * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause * is set appropriately). * * \sa rig_debug() diff --git a/src/event.c b/src/event.c index 8c359376b..03f4e76bd 100644 --- a/src/event.c +++ b/src/event.c @@ -517,8 +517,8 @@ static void sa_sigalrmhandler(int signum) * * Install a callback for freq events, to be called when in transceive mode. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_set_trn() @@ -547,8 +547,8 @@ int HAMLIB_API rig_set_freq_callback(RIG *rig, freq_cb_t cb, rig_ptr_t arg) * * Install a callback for mode events, to be called when in transceive mode. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_set_trn() @@ -577,8 +577,8 @@ int HAMLIB_API rig_set_mode_callback(RIG *rig, mode_cb_t cb, rig_ptr_t arg) * * Install a callback for vfo events, to be called when in transceive mode. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_set_trn() @@ -607,8 +607,8 @@ int HAMLIB_API rig_set_vfo_callback(RIG *rig, vfo_cb_t cb, rig_ptr_t arg) * * Install a callback for ptt events, to be called when in transceive mode. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_set_trn() @@ -637,8 +637,8 @@ int HAMLIB_API rig_set_ptt_callback(RIG *rig, ptt_cb_t cb, rig_ptr_t arg) * * Install a callback for dcd events, to be called when in transceive mode. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_set_trn() @@ -669,8 +669,8 @@ int HAMLIB_API rig_set_dcd_callback(RIG *rig, dcd_cb_t cb, rig_ptr_t arg) * Install a callback for pipelined tuning module, to be called when the * rig_scan( SCAN_PLT ) loop needs a new frequency, mode and width. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_set_trn() @@ -698,8 +698,8 @@ int HAMLIB_API rig_set_pltune_callback(RIG *rig, pltune_cb_t cb, rig_ptr_t arg) * * Enable/disable the transceive handling of a rig and kick off async mode. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_get_trn() @@ -730,7 +730,7 @@ int HAMLIB_API rig_set_trn(RIG *rig, int trn) } else { - /* when going POLL<->RIG, transtition to OFF */ + /* when going POLL<->RIG, transition to OFF */ retcode = rig_set_trn(rig, RIG_TRN_OFF); if (retcode != RIG_OK) @@ -846,8 +846,8 @@ int HAMLIB_API rig_set_trn(RIG *rig, int trn) * Retrieves the current status of the transceive mode, i.e. if radio * sends new status automatically when some changes happened on the radio. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_set_trn() diff --git a/src/iofunc.c b/src/iofunc.c index 3b1e66e8e..2aef03dc9 100644 --- a/src/iofunc.c +++ b/src/iofunc.c @@ -566,7 +566,7 @@ int HAMLIB_API read_block(hamlib_port_t *p, char *rxbuffer, size_t count) if (retval == 0) { - /* Record timeout time and caculate elapsed time */ + /* Record timeout time and calculate elapsed time */ gettimeofday(&end_time, NULL); timersub(&end_time, &start_time, &elapsed_time); @@ -637,8 +637,8 @@ int HAMLIB_API read_block(hamlib_port_t *p, char *rxbuffer, size_t count) * \param rxmax maximum string size + 1 * \param stopset string of recognized end of string characters * \param stopset_len length of stopset - * \return number of characters read if the operation has been sucessful, - * otherwise a negative value if an error occured (in which case, cause is + * \return number of characters read if the operation has been successful, + * otherwise a negative value if an error occurred (in which case, cause is * set appropriately). * * Read a string from "fd" and put result into @@ -707,7 +707,7 @@ int HAMLIB_API read_string(hamlib_port_t *p, { if (0 == total_count) { - /* Record timeout time and caculate elapsed time */ + /* Record timeout time and calculate elapsed time */ gettimeofday(&end_time, NULL); timersub(&end_time, &start_time, &elapsed_time); diff --git a/src/mem.c b/src/mem.c index 7c3b96c07..cd3e82fb2 100644 --- a/src/mem.c +++ b/src/mem.c @@ -63,8 +63,8 @@ * It is not mandatory for the radio to be in memory mode. Actually * it depends on rigs. YMMV. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_get_mem() @@ -126,8 +126,8 @@ int HAMLIB_API rig_set_mem(RIG *rig, vfo_t vfo, int ch) * It is not mandatory for the radio to be in memory mode. Actually * it depends on rigs. YMMV. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_set_mem() @@ -189,8 +189,8 @@ int HAMLIB_API rig_get_mem(RIG *rig, vfo_t vfo, int *ch) * It is not mandatory for the radio to be in memory mode. Actually * it depends on rigs. YMMV. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_set_mem() @@ -679,8 +679,8 @@ static int generic_restore_channel(RIG *rig, const channel_t *chan) * and memory number selected. Depending on backend and rig capabilities, * the chan struct may not be set completely. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_get_channel() @@ -820,11 +820,11 @@ int HAMLIB_API rig_set_channel(RIG *rig, const channel_t *chan) * the chan struct may not be filled in completely. * * Note: chan->ext_levels is a pointer to a newly mallocated memory. - * This is the responsability of the caller to manage and eventually + * This is the responsibility of the caller to manage and eventually * free it. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_set_channel() @@ -1070,8 +1070,8 @@ static int map_chan(RIG *rig, * Write the data associated with a all the memory channels. * This is the preferred method to support clonable rigs. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_set_chan_all(), rig_get_chan_all_cb() @@ -1116,8 +1116,8 @@ int HAMLIB_API rig_set_chan_all_cb(RIG *rig, chan_cb_t chan_cb, rig_ptr_t arg) * future data for channel channel_num. If channel_num == chan->channel_num, * the application does not need to provide a new allocated structure. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_get_chan_all(), rig_set_chan_all_cb() @@ -1156,8 +1156,8 @@ int HAMLIB_API rig_get_chan_all_cb(RIG *rig, chan_cb_t chan_cb, rig_ptr_t arg) * * Write the data associated with all the memory channels. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_set_chan_all_cb(), rig_get_chan_all() @@ -1198,8 +1198,8 @@ int HAMLIB_API rig_set_chan_all(RIG *rig, const channel_t chans[]) * * Retrieves the data associated with all the memory channels. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_get_chan_all_cb(), rig_set_chan_all() @@ -1244,8 +1244,8 @@ int HAMLIB_API rig_get_chan_all(RIG *rig, channel_t chans[]) * * Copies the data associated with one channel structure to another * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_get_chan_all_cb(), rig_set_chan_all() @@ -1310,8 +1310,8 @@ int set_parm_all_cb_generic(RIG *rig, confval_cb_t parm_cb, rig_ptr_t cfgps, * and rigs memory parameters, by callback. * This is the preferred method to support clonable rigs. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_get_mem_all_cb(), rig_set_mem_all() @@ -1375,8 +1375,8 @@ int HAMLIB_API rig_set_mem_all_cb(RIG *rig, * and rigs memory parameters, by callback. * This is the preferred method to support clonable rigs. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_get_mem_all_cb(), rig_set_mem_all() @@ -1440,8 +1440,8 @@ int HAMLIB_API rig_get_mem_all_cb(RIG *rig, * Writes the data associated with all the memory channels, * and rigs memory parameters. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_get_mem_all(), rig_set_mem_all_cb() @@ -1509,8 +1509,8 @@ int HAMLIB_API rig_set_mem_all(RIG *rig, * and rigs memory parameters. * This is the preferred method to support clonable rigs. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_get_mem_all(), rig_set_mem_all_cb() @@ -1570,7 +1570,7 @@ int HAMLIB_API rig_get_mem_all(RIG *rig, * If \a ch equals RIG_MEM_CAPS_ALL, then a union of all the mem_caps sets * is returned (pointer to static memory). * - * \return a pointer to a chan_t structure if the operation has been sucessful, + * \return a pointer to a chan_t structure if the operation has been successful, * otherwise a NULL pointer, most probably because of incorrect channel number * or buggy backend. */ diff --git a/src/microham.c b/src/microham.c index 41f27f76d..6d5a0953d 100644 --- a/src/microham.c +++ b/src/microham.c @@ -383,7 +383,7 @@ static void finddevices() TRACE("SerialPort opened: %s fd=%d\n", uh_device_path, fd); uh_device_fd = fd; - // The first time we were successfull, we skip all what might come + // The first time we were successful, we skip all what might come return; } } @@ -1171,7 +1171,7 @@ int uh_open_wkey() // Number of stop bits must be 1 or 2. // Number of data bits can be 5,6,7,8 // Hardware handshake (rtscts) can be on of off. -// microHam devices ALWAY use "no parity". +// microHam devices ALWAYS use "no parity". // int uh_open_radio(int baud, int databits, int stopbits, int rtscts) { diff --git a/src/misc.h b/src/misc.h index 75b09fd06..24aa869f3 100644 --- a/src/misc.h +++ b/src/misc.h @@ -26,7 +26,7 @@ /* - * Carefull!! These macros are NOT reentrant! + * Careful!! These macros are NOT reentrant! * ie. they may not be executed atomically, * thus not ensure mutual exclusion. * Fix it when making Hamlib reentrant! --SF @@ -49,7 +49,7 @@ void dump_hex(const unsigned char ptr[], size_t size); * and return a pointer to this array. * * from_bcd() converts a little endian BCD array to long long int - * reprensentation, and return it. + * representation, and return it. * * bcd_len is the number of digits in the BCD array. */ diff --git a/src/rig.c b/src/rig.c index be6dcefdf..0df350a1a 100644 --- a/src/rig.c +++ b/src/rig.c @@ -248,7 +248,7 @@ static int remove_opened_rig(RIG *rig) * Calls cfunc() function for each opened rig. * The contents of the opened rig table * is processed in random order according to a function - * pointed to by \a cfunc, whic is called with two arguments, + * pointed to by \a cfunc, which is called with two arguments, * the first pointing to the RIG handle, the second * to a data pointer \a data. * If \a data is not needed, then it can be set to NULL. @@ -541,11 +541,11 @@ RIG *HAMLIB_API rig_init(rig_model_t rig_model) * Opens communication to a radio which \a RIG handle has been passed * by argument. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * - * \retval RIG_EINVAL \a rig is NULL or unconsistent. + * \retval RIG_EINVAL \a rig is NULL or inconsistent. * \retval RIG_ENIMPL port type communication is not implemented yet. * * \sa rig_init(), rig_close() @@ -961,8 +961,8 @@ int HAMLIB_API rig_open(RIG *rig) * Closes communication to a radio which \a RIG handle has been passed * by argument that was previously open with rig_open(). * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_cleanup(), rig_open() @@ -1113,11 +1113,11 @@ int HAMLIB_API rig_close(RIG *rig) * \brief release a rig handle and free associated memory * \param rig The #RIG handle of the radio to be closed * - * Releases a rig struct which port has eventualy been closed already + * Releases a rig struct which port has eventually been closed already * with rig_close(). * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_init(), rig_close() @@ -1160,8 +1160,8 @@ int HAMLIB_API rig_cleanup(RIG *rig) * timeout seconds to stop rigctld when VFO is manually changed * turns on/off the radio. * - * \return RIG_OK if the operation has been sucessful, ortherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, ortherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_get_twiddle() @@ -1185,8 +1185,8 @@ int HAMLIB_API rig_set_twiddle(RIG *rig, int seconds) * \param rig The rig handle * \param seconds The timeout value * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_set_twiddle() @@ -1260,8 +1260,8 @@ int twiddling(RIG *rig) * * Sets the frequency of the target VFO. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_get_freq() @@ -1407,8 +1407,8 @@ int HAMLIB_API rig_set_freq(RIG *rig, vfo_t vfo, freq_t freq) * The value stored at \a freq location equals RIG_FREQ_NONE when the current * frequency of the VFO is not defined (e.g. blank memory). * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_set_freq() @@ -1606,8 +1606,8 @@ int HAMLIB_API rig_get_freq(RIG *rig, vfo_t vfo, freq_t *freq) * unchanged from the current value or default for the mode determined * by the rig. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_get_mode() @@ -1694,8 +1694,8 @@ int HAMLIB_API rig_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width) * The value stored at \a mode location equals RIG_MODE_NONE when the current * mode of the VFO is not defined (e.g. blank memory). * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_set_mode() @@ -1801,8 +1801,8 @@ int HAMLIB_API rig_get_mode(RIG *rig, * * Returns the normal (default) passband for the given \a mode. * - * \return the passband in Hz if the operation has been sucessful, - * or a 0 if an error occured (passband not found, whatever). + * \return the passband in Hz if the operation has been successful, + * or a 0 if an error occurred (passband not found, whatever). * * \sa rig_passband_narrow(), rig_passband_wide() */ @@ -1841,8 +1841,8 @@ pbwidth_t HAMLIB_API rig_passband_normal(RIG *rig, rmode_t mode) * EXAMPLE: rig_set_mode(my_rig, RIG_MODE_LSB, * rig_passband_narrow(my_rig, RIG_MODE_LSB) ); * - * \return the passband in Hz if the operation has been sucessful, - * or a 0 if an error occured (passband not found, whatever). + * \return the passband in Hz if the operation has been successful, + * or a 0 if an error occurred (passband not found, whatever). * * \sa rig_passband_normal(), rig_passband_wide() */ @@ -1893,8 +1893,8 @@ pbwidth_t HAMLIB_API rig_passband_narrow(RIG *rig, rmode_t mode) * EXAMPLE: rig_set_mode(my_rig, RIG_MODE_AM, * rig_passband_wide(my_rig, RIG_MODE_AM) ); * - * \return the passband in Hz if the operation has been sucessful, - * or a 0 if an error occured (passband not found, whatever). + * \return the passband in Hz if the operation has been successful, + * or a 0 if an error occurred (passband not found, whatever). * * \sa rig_passband_narrow(), rig_passband_normal() */ @@ -1945,8 +1945,8 @@ pbwidth_t HAMLIB_API rig_passband_wide(RIG *rig, rmode_t mode) * for VFOA, VFOB, VFOC respectively or RIG_VFO_MEM for Memory mode. * Supported VFOs depends on rig capabilities. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_get_vfo() @@ -2041,8 +2041,8 @@ int HAMLIB_API rig_set_vfo(RIG *rig, vfo_t vfo) * for VFOA, VFOB, VFOC respectively or RIG_VFO_MEM for Memory mode. * Supported VFOs depends on rig capabilities. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_set_vfo() @@ -2115,8 +2115,8 @@ int HAMLIB_API rig_get_vfo(RIG *rig, vfo_t *vfo) * * Sets "Push-To-Talk" on/off. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_get_ptt() @@ -2318,8 +2318,8 @@ int HAMLIB_API rig_set_ptt(RIG *rig, vfo_t vfo, ptt_t ptt) * * Retrieves the status of PTT (are we on the air?). * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_set_ptt() @@ -2556,8 +2556,8 @@ int HAMLIB_API rig_get_ptt(RIG *rig, vfo_t vfo, ptt_t *ptt) * * Retrieves the status of DCD (is squelch open?). * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * */ @@ -2660,8 +2660,8 @@ int HAMLIB_API rig_get_dcd(RIG *rig, vfo_t vfo, dcd_t *dcd) * * Sets the current repeater shift. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_get_rptr_shift() @@ -2728,8 +2728,8 @@ int HAMLIB_API rig_set_rptr_shift(RIG *rig, vfo_t vfo, rptr_shift_t rptr_shift) * * Retrieves the current repeater shift. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_set_rptr_shift() @@ -2796,8 +2796,8 @@ int HAMLIB_API rig_get_rptr_shift(RIG *rig, vfo_t vfo, rptr_shift_t *rptr_shift) * * Sets the current repeater offset. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_get_rptr_offs() @@ -2864,8 +2864,8 @@ int HAMLIB_API rig_set_rptr_offs(RIG *rig, vfo_t vfo, shortfreq_t rptr_offs) * * Retrieves the current repeater offset. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_set_rptr_offs() @@ -2932,8 +2932,8 @@ int HAMLIB_API rig_get_rptr_offs(RIG *rig, vfo_t vfo, shortfreq_t *rptr_offs) * * Sets the split(TX) frequency. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_get_split_freq(), rig_set_split_vfo() @@ -3040,8 +3040,8 @@ int HAMLIB_API rig_set_split_freq(RIG *rig, vfo_t vfo, freq_t tx_freq) * * Retrieves the current split(TX) frequency. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_set_split_freq() @@ -3135,7 +3135,7 @@ int HAMLIB_API rig_get_split_freq(RIG *rig, vfo_t vfo, freq_t *tx_freq) save_vfo = VFO_HAS_A_B_ONLY ? RIG_VFO_A : RIG_VFO_MAIN; } - rig_debug(RIG_DEBUG_TRACE, "%s: retoring vfo=%s\n", __func__, + rig_debug(RIG_DEBUG_TRACE, "%s: restoring vfo=%s\n", __func__, rig_strvfo(save_vfo)); rc2 = caps->set_vfo(rig, save_vfo); } @@ -3168,8 +3168,8 @@ int HAMLIB_API rig_get_split_freq(RIG *rig, vfo_t vfo, freq_t *tx_freq) * * Sets the split(TX) mode. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_get_split_mode() @@ -3280,8 +3280,8 @@ int HAMLIB_API rig_set_split_mode(RIG *rig, * The value stored at \a tx_mode location equals RIG_MODE_NONE * when the current mode of the VFO is not defined (e.g. blank memory). * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_set_split_mode() @@ -3400,8 +3400,8 @@ int HAMLIB_API rig_get_split_mode(RIG *rig, vfo_t vfo, rmode_t *tx_mode, * the rig VFOs have to be exchanged or swapped to complete this * combined function. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_set_split_freq(), rig_set_split_mode(), rig_get_split_freq_mode() @@ -3459,8 +3459,8 @@ int HAMLIB_API rig_set_split_freq_mode(RIG *rig, * the rig VFOs have to be exchanged or swapped to complete this * combined function. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_get_split_freq(), rig_get_split_mode(), rig_set_split_freq_mode() @@ -3508,8 +3508,8 @@ int HAMLIB_API rig_get_split_freq_mode(RIG *rig, * * Sets the current split mode. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_get_split_vfo() @@ -3601,8 +3601,8 @@ int HAMLIB_API rig_set_split_vfo(RIG *rig, * * Retrieves the current split mode. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_set_split_vfo() @@ -3652,7 +3652,7 @@ int HAMLIB_API rig_get_split_vfo(RIG *rig, rig_debug(RIG_DEBUG_TRACE, "%s: cache miss age=%dms\n", __func__, cache_ms); } - /* overidden by backend at will */ + /* overridden by backend at will */ *tx_vfo = rig->state.tx_vfo; if ((caps->targetable_vfo & RIG_TARGETABLE_PURE) @@ -3714,8 +3714,8 @@ int HAMLIB_API rig_get_split_vfo(RIG *rig, * * Sets the current RIT offset. A value of 0 for \a rit disables RIT. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_get_rit() @@ -3782,8 +3782,8 @@ int HAMLIB_API rig_set_rit(RIG *rig, vfo_t vfo, shortfreq_t rit) * * Retrieves the current RIT offset. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_set_rit() @@ -3850,8 +3850,8 @@ int HAMLIB_API rig_get_rit(RIG *rig, vfo_t vfo, shortfreq_t *rit) * * Sets the current XIT offset. A value of 0 for \a xit disables XIT. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_get_xit() @@ -3918,8 +3918,8 @@ int HAMLIB_API rig_set_xit(RIG *rig, vfo_t vfo, shortfreq_t xit) * * Retrieves the current XIT offset. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_set_xit() @@ -3986,8 +3986,8 @@ int HAMLIB_API rig_get_xit(RIG *rig, vfo_t vfo, shortfreq_t *xit) * * Sets the Tuning Step. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_get_ts() @@ -4054,8 +4054,8 @@ int HAMLIB_API rig_set_ts(RIG *rig, vfo_t vfo, shortfreq_t ts) * * Retrieves the current tuning step. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_set_ts() @@ -4119,7 +4119,7 @@ int HAMLIB_API rig_get_ts(RIG *rig, vfo_t vfo, shortfreq_t *ts) * \param rig The rig handle * \param vfo The target VFO * \param ant The anntena to select - * \param option An optoin that the ant command for the rig recognizes + * \param option An option that the ant command for the rig recognizes * * Select the antenna connector. \code @@ -4127,8 +4127,8 @@ int HAMLIB_API rig_get_ts(RIG *rig, vfo_t vfo, shortfreq_t *ts) rig_set_ant(rig, RIG_VFO_RX, RIG_ANT_2); \endcode * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_get_ant() @@ -4199,8 +4199,8 @@ int HAMLIB_API rig_set_ant(RIG *rig, vfo_t vfo, ant_t ant, value_t option) * * Retrieves the current antenna. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_set_ant() @@ -4276,8 +4276,8 @@ int HAMLIB_API rig_get_ant(RIG *rig, vfo_t vfo, ant_t ant, value_t *option, * also provided since the relative power is peculiar to a specific * freq and mode range of the radio. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_mW2power() @@ -4332,8 +4332,8 @@ int HAMLIB_API rig_power2mW(RIG *rig, * also provided since the relative power is peculiar to a specific * freq and mode range of the radio. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_power2mW() @@ -4393,7 +4393,7 @@ int HAMLIB_API rig_mW2power(RIG *rig, * Returns the best frequency resolution of the rig, for a given \a mode. * * \return the frequency resolution in Hertz if the operation h - * has been sucessful, otherwise a negative value if an error occured. + * has been successful, otherwise a negative value if an error occurred. * */ shortfreq_t HAMLIB_API rig_get_resolution(RIG *rig, rmode_t mode) @@ -4431,8 +4431,8 @@ shortfreq_t HAMLIB_API rig_get_resolution(RIG *rig, rmode_t mode) * See #RIG_POWER_ON, #RIG_POWER_OFF and #RIG_POWER_STANDBY defines * for the \a status. * - * \return RIG_OK if the operation has been sucessful, ortherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, ortherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_get_powerstat() @@ -4464,8 +4464,8 @@ int HAMLIB_API rig_set_powerstat(RIG *rig, powerstat_t status) * Retrieve the status of the radio. See RIG_POWER_ON, RIG_POWER_OFF and * RIG_POWER_STANDBY defines for the \a status. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_set_powerstat() @@ -4497,8 +4497,8 @@ int HAMLIB_API rig_get_powerstat(RIG *rig, powerstat_t *status) * See RIG_RESET_NONE, RIG_RESET_SOFT and RIG_RESET_MCALL defines * for the \a reset. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * */ @@ -4569,8 +4569,8 @@ rig_model_t HAMLIB_API rig_probe(hamlib_port_t *port) * \warning this is really Experimental, It has been tested only * with IC-706MkIIG. any feedback welcome! --SF * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). */ int HAMLIB_API rig_probe_all(hamlib_port_t *port, @@ -4626,8 +4626,8 @@ vfo_op_t HAMLIB_API rig_has_vfo_op(RIG *rig, vfo_op_t op) * Performs Memory/VFO operation. * See #vfo_op_t for more information. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_has_vfo_op() @@ -4725,8 +4725,8 @@ scan_t HAMLIB_API rig_has_scan(RIG *rig, scan_t scan) * Performs scanning operation. * See #scan_t for more information. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_has_scan() @@ -4795,8 +4795,8 @@ int HAMLIB_API rig_scan(RIG *rig, vfo_t vfo, scan_t scan, int ch) * Sends DTMF digits. * See DTMF change speed, etc. (TODO). * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * */ @@ -4864,8 +4864,8 @@ int HAMLIB_API rig_send_dtmf(RIG *rig, vfo_t vfo, const char *digits) * Receives DTMF digits (not blocking). * See DTMF change speed, etc. (TODO). * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * */ @@ -4932,8 +4932,8 @@ int HAMLIB_API rig_recv_dtmf(RIG *rig, vfo_t vfo, char *digits, int *length) * Sends morse message. * See keyer change speed, etc. (TODO). * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * */ @@ -4999,8 +4999,8 @@ int HAMLIB_API rig_send_morse(RIG *rig, vfo_t vfo, const char *msg) * * Sends voice memory content. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * */ @@ -5127,7 +5127,7 @@ int HAMLIB_API rig_set_vfo_opt(RIG *rig, int status) * This can include firmware revision, exact model name, or just nothing. * * \return a pointer to freshly allocated memory containing the ASCIIZ string - * if the operation has been sucessful, otherwise NULL if an error occured + * if the operation has been successful, otherwise NULL if an error occurred * or get_info not part of capabilities. */ const char *HAMLIB_API rig_get_info(RIG *rig) diff --git a/src/rot_conf.c b/src/rot_conf.c index 8e5de8dc5..874bbc8d8 100644 --- a/src/rot_conf.c +++ b/src/rot_conf.c @@ -623,8 +623,8 @@ token_t HAMLIB_API rot_token_lookup(ROT *rot, const char *name) * * Sets a configuration parameter. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rot_get_conf() @@ -673,10 +673,10 @@ int HAMLIB_API rot_set_conf(ROT *rot, token_t token, const char *val) * \param token The parameter * \param val The location where to store the value of config \a token * - * Retrieves the value of a configuration paramter associated with \a token. + * Retrieves the value of a configuration parameter associated with \a token. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rot_set_conf() diff --git a/src/rotator.c b/src/rotator.c index 9b668805f..ff3ec8ca0 100644 --- a/src/rotator.c +++ b/src/rotator.c @@ -155,7 +155,7 @@ static int remove_opened_rot(ROT *rot) * * Calls cfunc() function for each opened rot. The contents of the opened * rot table is processed in random order according to a function pointed to - * by \a cfunc, whic is called with two arguments, the first pointing to the + * by \a cfunc, which is called with two arguments, the first pointing to the * #ROT handle, the second to a data pointer \a data. * * If \a data is not needed, then it can be set to NULL. The processing of @@ -306,11 +306,11 @@ ROT *HAMLIB_API rot_init(rot_model_t rot_model) * Opens communication to a rotator which \a ROT handle has been passed * by argument. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * - * \retval RIG_EINVAL \a rot is NULL or unconsistent. + * \retval RIG_EINVAL \a rot is NULL or inconsistent. * \retval RIG_ENIMPL port type communication is not implemented yet. * * \sa rot_init(), rot_close() @@ -441,8 +441,8 @@ int HAMLIB_API rot_open(ROT *rot) * Closes communication to a rotator which \a ROT handle has been passed * by argument that was previously open with rot_open(). * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rot_cleanup(), rot_open() @@ -517,11 +517,11 @@ int HAMLIB_API rot_close(ROT *rot) * \brief release a rot handle and free associated memory * \param rot The #ROT handle of the radio to be closed * - * Releases a rot struct which port has eventualy been closed already + * Releases a rot struct which port has eventually been closed already * with rot_close(). * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rot_init(), rot_close() @@ -565,8 +565,8 @@ int HAMLIB_API rot_cleanup(ROT *rot) * * Sets the azimuth and elevation of the rotator. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rot_get_position() @@ -625,8 +625,8 @@ int HAMLIB_API rot_set_position(ROT *rot, * * Retrieves the current azimuth and elevation of the rotator. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rot_set_position() @@ -677,8 +677,8 @@ int HAMLIB_API rot_get_position(ROT *rot, * * Park the antenna. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * */ @@ -710,8 +710,8 @@ int HAMLIB_API rot_park(ROT *rot) * * Stop the rotator. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * */ @@ -744,8 +744,8 @@ int HAMLIB_API rot_stop(ROT *rot) * * Resets the rotator. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * */ @@ -810,7 +810,7 @@ int HAMLIB_API rot_move(ROT *rot, int direction, int speed) * This can include firmware revision, exact model name, or just nothing. * * \return a pointer to static memory containing the ASCIIZ string - * if the operation has been sucessful, otherwise NULL if an error occured + * if the operation has been successful, otherwise NULL if an error occurred * or get_info not part of capabilities. */ const char *HAMLIB_API rot_get_info(ROT *rot) diff --git a/src/serial.c b/src/serial.c index 72c7402ea..7824d563a 100644 --- a/src/serial.c +++ b/src/serial.c @@ -505,7 +505,7 @@ int HAMLIB_API serial_setup(hamlib_port_t *rp) #endif /* - * VTIME in deciseconds, rp->timeout in miliseconds + * VTIME in deciseconds, rp->timeout in milliseconds */ options.c_cc[VTIME] = (rp->timeout + 99) / 100; options.c_cc[VMIN] = 1; diff --git a/src/settings.c b/src/settings.c index 9f1a2eaab..c0861f918 100644 --- a/src/settings.c +++ b/src/settings.c @@ -68,8 +68,8 @@ * The level value \a val can be a float or an integer. See #value_t * for more information. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_has_set_level(), rig_get_level() @@ -135,11 +135,11 @@ int HAMLIB_API rig_set_level(RIG *rig, vfo_t vfo, setting_t level, value_t val) * level in dB relative to S9, according to the ideal S Meter scale. * The ideal S Meter scale is as follow: S0=-54, S1=-48, S2=-42, S3=-36, * S4=-30, S5=-24, S6=-18, S7=-12, S8=-6, S9=0, +10=10, +20=20, - * +30=30, +40=40, +50=50 and +60=60. This is the responsability + * +30=30, +40=40, +50=50 and +60=60. This is the responsibility * of the backend to return values calibrated for this scale. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_has_get_level(), rig_set_level() @@ -225,8 +225,8 @@ int HAMLIB_API rig_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val) * The parameter value \a val can be a float or an integer. See #value_t * for more information. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_has_set_parm(), rig_get_parm() @@ -259,8 +259,8 @@ int HAMLIB_API rig_set_parm(RIG *rig, setting_t parm, value_t val) * The parameter value \a val can be a float or an integer. See #value_t * for more information. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_has_get_parm(), rig_set_parm() @@ -501,8 +501,8 @@ setting_t HAMLIB_API rig_has_set_func(RIG *rig, setting_t func) * The \a status argument is a non null value for "activate", * "de-activate" otherwise, much as TRUE/FALSE definitions in C language. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_get_func() @@ -568,8 +568,8 @@ int HAMLIB_API rig_set_func(RIG *rig, vfo_t vfo, setting_t func, int status) * value for "on", "off" otherwise, much as TRUE/FALSE * definitions in C language. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_set_func() @@ -632,8 +632,8 @@ int HAMLIB_API rig_get_func(RIG *rig, vfo_t vfo, setting_t func, int *status) * * Sets an level extra parameter. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_get_ext_level() @@ -698,8 +698,8 @@ int HAMLIB_API rig_set_ext_level(RIG *rig, * * Retrieves the value of a level extra parameter associated with \a token. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_set_ext_level() @@ -763,8 +763,8 @@ int HAMLIB_API rig_get_ext_level(RIG *rig, * * Sets a function extra parameter. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_get_ext_func() @@ -829,8 +829,8 @@ int HAMLIB_API rig_set_ext_func(RIG *rig, * * Retrieves the value of a function extra parameter associated with \a token. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_set_ext_func() @@ -894,8 +894,8 @@ int HAMLIB_API rig_get_ext_func(RIG *rig, * * Sets an parm extra parameter. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_get_ext_parm() @@ -926,8 +926,8 @@ int HAMLIB_API rig_set_ext_parm(RIG *rig, token_t token, value_t val) * * Retrieves the value of a parm extra parameter associated with \a token. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_set_ext_parm() diff --git a/src/tones.c b/src/tones.c index 857bfc68d..bb3ec0096 100644 --- a/src/tones.c +++ b/src/tones.c @@ -91,8 +91,8 @@ const tone_t full_dcs_list[] = { FULL_DCS_LIST }; * a call to rig_set_func() with arg RIG_FUNC_TONE, unless it is * unavailable and the \a tone arg has to be set to 0. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_get_ctcss_tone(), rig_set_ctcss_sql() @@ -158,8 +158,8 @@ int HAMLIB_API rig_set_ctcss_tone(RIG *rig, vfo_t vfo, tone_t tone) * for example, then the real tone is 88.5 Hz. * Also, a value of 0 for \a *tone means the Tone encoding is disabled. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_set_ctcss_tone(), rig_get_ctcss_sql() @@ -220,8 +220,8 @@ int HAMLIB_API rig_get_ctcss_tone(RIG *rig, vfo_t vfo, tone_t *tone) * * Sets the current encoding Digitally-Coded Squelch code. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_get_dcs_code(), rig_set_dcs_sql() @@ -283,8 +283,8 @@ int HAMLIB_API rig_set_dcs_code(RIG *rig, vfo_t vfo, tone_t code) * * Retrieves the current encoding Digitally-Coded Squelch code. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_set_dcs_code(), rig_get_dcs_sql() @@ -353,8 +353,8 @@ int HAMLIB_API rig_get_dcs_code(RIG *rig, vfo_t vfo, tone_t *code) * a call to rig_set_func() with arg RIG_FUNC_TSQL, unless it is * unavailable and the \a tone arg has to be set to 0. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_get_ctcss_sql(), rig_set_ctcss_tone() @@ -420,8 +420,8 @@ int HAMLIB_API rig_set_ctcss_sql(RIG *rig, vfo_t vfo, tone_t tone) * for example, then the real tone is 88.5 Hz. * Also, a value of 0 for \a tone means the Tone squelch is disabled. * - * \return RIG_OK if the operation has been sucessful, otherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, otherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_set_ctcss_sql(), rig_get_ctcss_tone() @@ -482,8 +482,8 @@ int HAMLIB_API rig_get_ctcss_sql(RIG *rig, vfo_t vfo, tone_t *tone) * * Sets the current Digitally-Coded *Squelch* code. * - * \return returns RIG_OK if the operation has been sucessful, ortherwise - * a negative value if an error occured (in which case, cause is set + * \return returns RIG_OK if the operation has been successful, ortherwise + * a negative value if an error occurred (in which case, cause is set * appropriately). * * \sa rig_get_dcs_sql(), rig_set_dcs_code() @@ -544,8 +544,8 @@ int HAMLIB_API rig_set_dcs_sql(RIG *rig, vfo_t vfo, tone_t code) * * Retrieves the current Digitally-Coded *Squelch* code. * - * \return RIG_OK if the operation has been sucessful, ortherwise - * a negative value if an error occured (in which case, cause is + * \return RIG_OK if the operation has been successful, ortherwise + * a negative value if an error occurred (in which case, cause is * set appropriately). * * \sa rig_set_dcs_sql(), rig_get_dcs_code() diff --git a/src/usb_port.c b/src/usb_port.c index 99715cf82..ab4af6ae1 100644 --- a/src/usb_port.c +++ b/src/usb_port.c @@ -227,7 +227,7 @@ int usb_port_open(hamlib_port_t *port) rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__); - /* init defaut libusb-1.0 library contexte, if needed */ + /* init default libusb-1.0 library contexte, if needed */ r = libusb_init(NULL); if (r < 0) diff --git a/tests/README b/tests/README index 8c2262b5f..9279069ea 100644 --- a/tests/README +++ b/tests/README @@ -16,7 +16,7 @@ If you don't know the number, listrigs can give it to you, [etc.] In any case, you are encouraged to check for correct initialization -by reading the source code, at the begining of the main(). Check also +by reading the source code, at the beginning of the main(). Check also that the program is setup for your rig path strncpy(my_rig->state.rig_path... dumpcaps - Output the caps contents of a rig diff --git a/tests/ampctl_parse.c b/tests/ampctl_parse.c index 521301ba0..0cbf5a34b 100644 --- a/tests/ampctl_parse.c +++ b/tests/ampctl_parse.c @@ -204,7 +204,7 @@ struct test_table *find_cmd_entry(int cmd) /* Structure for hash table provided by uthash.h * - * Structure and hash funtions patterned after/copied from example.c + * Structure and hash functions patterned after/copied from example.c * distributed with the uthash package. See: http://uthash.sourceforge.net/ */ struct mod_lst @@ -971,14 +971,14 @@ int ampctl_parse(AMP *my_amp, FILE *fin, FILE *fout, char *argv[], int argc) snprintf(cmd_name, sizeof(cmd_name), "%s", parsed_input[0] + 1); /* Sanity check as valid multiple character commands consist of - * alpha-numeric characters and the underscore ('_') character. + * alphanumeric characters and the underscore ('_') character. */ for (j = 0; cmd_name[j] != '\0'; j++) { if (!(isalnum((int)cmd_name[j]) || cmd_name[j] == '_')) { fprintf(stderr, - "Valid multiple character command names contain alpha-numeric characters plus '_'\n"); + "Valid multiple character command names contain alphanumeric characters plus '_'\n"); return 0; } } diff --git a/tests/dumpcaps_amp.c b/tests/dumpcaps_amp.c index 74ebf9e6d..9450edd6a 100644 --- a/tests/dumpcaps_amp.c +++ b/tests/dumpcaps_amp.c @@ -35,7 +35,7 @@ /* - * the amp may be in amp_init state, but not openned + * the amp may be in amp_init state, but not opened */ int dumpcaps_amp(AMP *amp, FILE *fout) { diff --git a/tests/dumpcaps_rot.c b/tests/dumpcaps_rot.c index f6b2ee103..bc0b98b94 100644 --- a/tests/dumpcaps_rot.c +++ b/tests/dumpcaps_rot.c @@ -35,7 +35,7 @@ /* - * the rot may be in rot_init state, but not openned + * the rot may be in rot_init state, but not opened */ int dumpcaps_rot(ROT *rot, FILE *fout) { diff --git a/tests/memcsv.c b/tests/memcsv.c index ddd149b23..8e27088f0 100644 --- a/tests/memcsv.c +++ b/tests/memcsv.c @@ -204,7 +204,7 @@ int csv_load(RIG *rig, const char *infilename) \param line (input) - a line to be tokenized, the line will be modified! \param token_list (output) - a resulting table containing pointers to tokens, or NULLs (the table will be initially nulled ) - all the pointers schould point to addresses within the line + all the pointers should point to addresses within the line \param siz (input) - size of the table \param delim (input) - delimiter character \return number of tokens on success, 0 if \param token_list is too small to contain all the tokens, @@ -754,7 +754,7 @@ int set_channel_data(RIG *rig, n = chan->channel_num = atoi(line_data_list[ i ]); - /* find chanel caps of appropriate memory group? */ + /* find channel caps of appropriate memory group? */ for (j = 0; j < CHANLSTSIZ; j++) { if (rig->state.chan_list[j].startc <= n && rig->state.chan_list[j].endc >= n) diff --git a/tests/rig_bench.c b/tests/rig_bench.c index d05bb1038..ca2ebd885 100644 --- a/tests/rig_bench.c +++ b/tests/rig_bench.c @@ -33,7 +33,7 @@ int main(int argc, char *argv[]) if (argc < 2) { hamlib_port_t myport; - /* may be overriden by backend probe */ + /* may be overridden by backend probe */ myport.type.rig = RIG_PORT_SERIAL; myport.parm.serial.rate = 9600; myport.parm.serial.data_bits = 8; diff --git a/tests/rigctl_parse.c b/tests/rigctl_parse.c index f3b791e93..708205a4c 100644 --- a/tests/rigctl_parse.c +++ b/tests/rigctl_parse.c @@ -353,7 +353,7 @@ static struct test_table *find_cmd_entry(int cmd) /* Structure for hash table provided by uthash.h * - * Structure and hash funtions patterned after/copied from example.c + * Structure and hash functions patterned after/copied from example.c * distributed with the uthash package. See: http://uthash.sourceforge.net/ */ struct mod_lst @@ -1193,14 +1193,14 @@ int rigctl_parse(RIG *my_rig, FILE *fin, FILE *fout, char *argv[], int argc, snprintf(cmd_name, sizeof(cmd_name), "%s", parsed_input[0] + 1); /* Sanity check as valid multiple character commands consist of - * alpha-numeric characters and the underscore ('_') character. + * alphanumeric characters and the underscore ('_') character. */ for (j = 0; cmd_name[j] != '\0'; j++) { if (!(isalnum((int)cmd_name[j]) || cmd_name[j] == '_')) { fprintf(stderr, - "Valid multiple character command names contain alpha-numeric characters plus '_'\n"); + "Valid multiple character command names contain alphanumeric characters plus '_'\n"); return 0; } } @@ -4465,7 +4465,7 @@ declare_proto_rig(send_cmd) binary = hasbinary((char *)buf); } - if (binary) // convert our buf to a hex representaion + if (binary) // convert our buf to a hex representation { int i; char hex[8]; diff --git a/tests/rigmatrix.c b/tests/rigmatrix.c index 628750460..a8bb27fa2 100644 --- a/tests/rigmatrix.c +++ b/tests/rigmatrix.c @@ -218,7 +218,7 @@ int print_caps_parameters(const struct rig_caps *caps, void *data) #define print_yn(fn) printf("%c", (fn) ? 'Y':'N') /* - * backend functions definied + * backend functions defined * * TODO: add new API calls! */ diff --git a/tests/rigsmtr.c b/tests/rigsmtr.c index c27cb7c81..814355173 100644 --- a/tests/rigsmtr.c +++ b/tests/rigsmtr.c @@ -290,7 +290,7 @@ int main(int argc, char *argv[]) { fprintf(stderr, "rig backend for %s could not get S-Meter" - "or has unsufficient capability\nSorry\n", + "or has insufficient capability\nSorry\n", rig->caps->model_name); exit(3); } diff --git a/tests/rigswr.c b/tests/rigswr.c index 62bb949e5..ce8deac60 100644 --- a/tests/rigswr.c +++ b/tests/rigswr.c @@ -294,7 +294,7 @@ int main(int argc, char *argv[]) fprintf(stderr, "rig backend for %s could not get SWR" - "or has unsufficient capability\nSorry\n", + "or has insufficient capability\nSorry\n", rig->caps->model_name); exit(3); diff --git a/tests/rotctl_parse.c b/tests/rotctl_parse.c index 876ce2715..b660ccc98 100644 --- a/tests/rotctl_parse.c +++ b/tests/rotctl_parse.c @@ -248,7 +248,7 @@ struct test_table *find_cmd_entry(int cmd) /* Structure for hash table provided by uthash.h * - * Structure and hash funtions patterned after/copied from example.c + * Structure and hash functions patterned after/copied from example.c * distributed with the uthash package. See: http://uthash.sourceforge.net/ */ struct mod_lst @@ -1018,14 +1018,14 @@ int rotctl_parse(ROT *my_rot, FILE *fin, FILE *fout, char *argv[], int argc, snprintf(cmd_name, sizeof(cmd_name), "%s", parsed_input[0] + 1); /* Sanity check as valid multiple character commands consist of - * alpha-numeric characters and the underscore ('_') character. + * alphanumeric characters and the underscore ('_') character. */ for (j = 0; cmd_name[j] != '\0'; j++) { if (!(isalnum((int)cmd_name[j]) || cmd_name[j] == '_')) { fprintf(stderr, - "Valid multiple character command names contain alpha-numeric characters plus '_'\n"); + "Valid multiple character command names contain alphanumeric characters plus '_'\n"); return 0; } } diff --git a/tests/testbcd.c b/tests/testbcd.c index 9e4393887..86a325dfd 100644 --- a/tests/testbcd.c +++ b/tests/testbcd.c @@ -1,6 +1,6 @@ /* - * Very simple test program to check BCD convertion against some other --SF + * Very simple test program to check BCD conversion against some other --SF * This is mainly to test freq2bcd and bcd2freq functions. */ diff --git a/tests/testctld.pl b/tests/testctld.pl index 4d67bac00..e2dde0204 100755 --- a/tests/testctld.pl +++ b/tests/testctld.pl @@ -656,7 +656,7 @@ sub chk_opt { last if $_ =~ /^$_[0]/; } - # The CHK* line will have a space separated interger of 0 or 1 + # The CHK* line will have a space separated integer of 0 or 1 # for 'rigctld' invocation without and with -b|--block or # -o|--vfo options respectively foreach (@lines) { @@ -736,7 +736,7 @@ which should resolve to 127.0.0.1 if I is configured correctly. =item B<--port> -TCP port of the target I process. Default is 4532. Mutliple instances +TCP port of the target I process. Default is 4532. Multiple instances of I will require unique port numbers. =item B<--help> diff --git a/tests/testfreq.c b/tests/testfreq.c index c40c91763..b4632d1f1 100644 --- a/tests/testfreq.c +++ b/tests/testfreq.c @@ -1,6 +1,6 @@ /* - * Very simple test program to check freq convertion --SF + * Very simple test program to check freq conversion --SF * This is mainly to test kHz, MHz, GHz macros and int64_t support. */ diff --git a/tests/testloc.c b/tests/testloc.c index 5c4bac7df..82bd8614b 100644 --- a/tests/testloc.c +++ b/tests/testloc.c @@ -1,6 +1,6 @@ /* - * Very simple test program to check locator convertion against some other --SF + * Very simple test program to check locator conversion against some other --SF * This is mainly to test longlat2locator and locator2longlat functions. * * Takes at least two arguments, which is a locator and desired locater @@ -52,7 +52,7 @@ int main(int argc, char *argv[]) if (retcode != RIG_OK) { - fprintf(stderr, "dec2dms() failed, invalid paramter address.\n"); + fprintf(stderr, "dec2dms() failed, invalid parameter address.\n"); exit(2); } @@ -76,7 +76,7 @@ int main(int argc, char *argv[]) if (retcode != RIG_OK) { - fprintf(stderr, "dec2dmmm() failed, invalid paramter address.\n"); + fprintf(stderr, "dec2dmmm() failed, invalid parameter address.\n"); exit(2); } @@ -100,7 +100,7 @@ int main(int argc, char *argv[]) if (retcode != RIG_OK) { - fprintf(stderr, "dec2dms() failed, invalid paramter address.\n"); + fprintf(stderr, "dec2dms() failed, invalid parameter address.\n"); exit(2); } @@ -124,7 +124,7 @@ int main(int argc, char *argv[]) if (retcode != RIG_OK) { - fprintf(stderr, "dec2dmmm() failed, invalid paramter address.\n"); + fprintf(stderr, "dec2dmmm() failed, invalid parameter address.\n"); exit(2); } @@ -175,7 +175,7 @@ int main(int argc, char *argv[]) if (retcode != RIG_OK) { - fprintf(stderr, "dec2dms() failed, invalid paramter address.\n"); + fprintf(stderr, "dec2dms() failed, invalid parameter address.\n"); exit(2); } @@ -199,7 +199,7 @@ int main(int argc, char *argv[]) if (retcode != RIG_OK) { - fprintf(stderr, "dec2dmmm() failed, invalid paramter address.\n"); + fprintf(stderr, "dec2dmmm() failed, invalid parameter address.\n"); exit(2); } @@ -223,7 +223,7 @@ int main(int argc, char *argv[]) if (retcode != RIG_OK) { - fprintf(stderr, "dec2dms() failed, invalid paramter address.\n"); + fprintf(stderr, "dec2dms() failed, invalid parameter address.\n"); exit(2); } @@ -247,7 +247,7 @@ int main(int argc, char *argv[]) if (retcode != RIG_OK) { - fprintf(stderr, "dec2dmmm() failed, invalid paramter address.\n"); + fprintf(stderr, "dec2dmmm() failed, invalid parameter address.\n"); exit(2); } diff --git a/tests/testrig.c b/tests/testrig.c index e28c2f908..b7b9ab972 100644 --- a/tests/testrig.c +++ b/tests/testrig.c @@ -35,7 +35,7 @@ int main(int argc, char *argv[]) printf("testrig: Hello, I am your main() !\n"); - /* Turn off backend debugging ouput */ + /* Turn off backend debugging output */ rig_set_debug_level(RIG_DEBUG_NONE); /* @@ -45,7 +45,7 @@ int main(int argc, char *argv[]) if (argc < 2) { hamlib_port_t myport; - /* may be overriden by backend probe */ + /* may be overridden by backend probe */ myport.type.rig = RIG_PORT_SERIAL; myport.parm.serial.rate = 9600; myport.parm.serial.data_bits = 8; diff --git a/tests/testrotctld.pl b/tests/testrotctld.pl index 994afff58..094ba5ea6 100755 --- a/tests/testrotctld.pl +++ b/tests/testrotctld.pl @@ -629,7 +629,7 @@ which should resolve to 127.0.0.1 if I is configured correctly. =item B<--port> -TCP port of the target I process. Default is 4533. Mutliple instances +TCP port of the target I process. Default is 4533. Multiple instances of I will require unique port numbers. =item B<--help>