Bill Somerville
ddb0a12403
Use correct argument type for serial control line functions
...
The serial port line control functions take a boolean argument not a
ptt_t argument. Changed usage in rig_open() to use a explicit zero
instead of RIG_PTT_OFF value which only coincidentally happens to be
zero.
2015-04-14 10:04:31 +01:00
Bill Somerville
36b8a972cf
Error checks on simulated direct VFO addressing
...
Many APIs emulate direct VFO addressing by using caps->set_vfo() or
caps->vfo_op(..., RIG_OP_TOGGLE) to simulate direct addressing of a
non-current VFO. The mirrored function call to revert back to the
original current VFO was not checking for errors. This is not
unreasonable but it turns out that some rigs can arbitarily fail doing
VFO changes or swaps (e.g. Yaesu FT-450).
I have added checks to these calls but only fail with the error if the
API call being wrapped does not fail itself. This allows the mirroring
VFO operation to be completed, if possible, even if the wrapped
function could not be completed, hence as before, making every effort
not to change the rig state unnecessarily.
2014-12-11 17:14:58 +00:00
Bill Somerville
4e2a6adf12
Move serial line control error checks to lower level routines
...
Moved in preference to introducing errno.h into rig.c.
2014-11-24 00:51:12 +00:00
Bill Somerville
0e0779877d
Add more diagnostics and error checks to serial line control
2014-11-24 00:18:48 +00:00
Bill Somerville
e1a0e9121c
Always clear serial control lines when used for PTT
...
When a serial control line (DTR or RTS) is used for PTT control the
rig_open() function clears the PTT control line after opening the
port. This is necessary on Linux because opening the port sets them
both as part of the normal RS-232 protocol. The lines were not being
cleared when the PTT port was the same port as the CAT control port.
2014-11-21 20:58:18 +00:00
Bill Somerville
cd44a8d926
Only check for serial control line conflicts if PTT shares CAT port
2014-10-14 12:51:23 +01:00
Bill Somerville
19f131b1b8
Remove redundant RIG_PTT_SERIAL_CAT enum from ptt_t
...
The Icom IC-7100 back end added this enum instead of using the extant
RIG_PTT_RIG enum. Also the rig_get_ptt() implementation didn't handle
it and errored out.
Note: RIG_PTT_SERIAL_CAT was added in commit
e9ee671149
- N0NB
2014-10-09 10:25:38 -05:00
Nate Bargmann
0fa8a5656c
Quell warning from MinGW on setting CM108 pttbitnum
...
MinGW was issuing the following warning:
CC rig.lo
rig.c: In function 'rig_init':
rig.c:330:36: warning: assignment makes integer from pointer without a cast [enabled by default]
rs->rigport.parm.cm108.ptt_bitnum = DEFAULT_CM108_PTT_BITNUM;
^
The constant DEFAULT_CM108_PTT_BITNUM was being defined as a string on
non-linux platforms. Now defined to an integer on these platforms. The
actual value may need to be corrected at some point in the future when
CM108 support is completed for those platforms.
2014-02-16 07:33:42 -06:00
mvcstroomer
e9ee671149
Add Icom IC-7100 support.
...
From Martin, CT1IQI:
"Several programs under Linux rely on Hamlib for control. I wanted to
try WSJT-X (digital modes like JT65) and found that my new IC-7100 was
not yet supported, also after having compiled the current git version of
Hamlib and having compiled WSJT-X against that.
So I added a IC-7100 by taking the ic-7200 and 7420 rig files as
example, be it without going (yet) through all of the very many commands
the ic-7100 supports.
This produced the situation where there was communication, e.g. setting
and reading frequencies, but the PTT control did not work. I debugged
that to actually the lack of a PTT mode in Hamlib that uses serial and
CAT at the same time; currently PTT per 'serial' seems equivalent to
toggling certain RS232 pins but not to any serial command level. So I
added a RIG_PTT_SERIAL_CAT mode for PTT control. Now the wsjt-x program
works nicely with the ic-7100 and controls both frequency and PTT via
the single USB cable."
Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2013-10-25 08:40:36 -05:00
Bill Somerville
efd1917e98
Fix rig_open not failing when PTT/DCD port is unavailable.
...
rig_open was giving RIG_DEBUG_ERR messsages if PTT or DCD
port was unavailable but the function was not returning an
error status.
Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2013-09-21 21:14:11 -05:00
Bill Somerville
ef28e435d8
Patch to allow same serial port for PTT and CAT.
...
Hi,
patch attached to enable the above which was partially coded but not
quite working.
73
Bill
G4WJS.
>From 9dab3a250dfad7203772df91aadf79d38c108f04 Mon Sep 17 00:00:00 2001
From: Bill Somerville <bill@classdesign.com>
Date: Fri, 6 Sep 2013 01:13:34 +0100
Subject: [PATCH] Fix using same serail port for PTT and CAT
src/rig.c was coded to allow the same serial port for PTT and
CAT but them tried to open the port twice. I have added code
to share the file descriptor in this situation.
Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2013-09-18 12:34:20 -05:00
Kamal Mostafa
3466512dbd
Fix spelling errors
2012-08-21 19:54:50 -07:00
Stephane Fillod
46033db165
CM108 GPIO PTT: do not break ABI
...
Move around the ptt_bitnum field in the union of hamlib_port_t.
Increase Hamlib frontend revision.
2012-01-11 23:28:01 +01:00
Andrew Errington
1a77ef9eb9
Initial support for CM108 GPIO contorl of PTT
...
Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2012-01-11 06:16:51 -06:00
Nate Bargmann
b31cc6ecd9
Assure NULL terminated strings in src files.
...
Various strncpy operations could result in a port pathname that is not a
NULL terminated string as the allowed string length is the same size as
the buffer per the strncpy manual page. This is corrected by assuring
that the allowed length is FILPATHLEN - 1.
2012-01-07 20:50:34 -06:00
Stephane Fillod
da80137819
Add support for RIG_PORT_UDP_NETWORK
...
Also some copyright year update,
and default serial device on MacOSX
2012-01-06 09:28:24 +01:00
Nate Bargmann
dad27d1f69
Update LGPL header in src source files.
...
TNX to Lucian Laga, YO6PLB, for the notification.
2011-08-22 21:38:37 -05:00
Stephane Fillod
421909bad2
Let set_ptt() select source, either TX mic or TX data
2011-07-20 00:09:50 +02:00
Stéphane Fillod, F8CFE
5c24ee2925
Workaround SF#3055689
...
* make sure the PTT is not set when configured as RTS/DTR at open()/close() time.
It appears the Linux kernel force their value as explained here[1] during open.
Also obvious when reading the source code[2], esp. in uart_startup()
and uart_update_termios() where uart_set_mctrl(port, TIOCM_DTR | TIOCM_RTS)
is called.
[1] http://books.google.fr/books?id=75eeBNcjcuIC&lpg=PA152&ots=Qvgi6VDLvm&pg=PA152#v=onepage&q&f=false
[2] http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=drivers/serial/serial_core.c;hb=HEAD
* don't let the OS change modem signals at close() time
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2983 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-09-17 14:46:16 +00:00
Stéphane Fillod, F8CFE
b818045a0a
- better portability check with HAVE_SIGACTION
...
- fix segfault when doing rig_set_trn(POLL->OFF->POLL)
- implement remove_trn_rig()/remove_trn_poll_rig() for rig_set_trn(TRN_OFF)
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2956 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-08-21 11:37:58 +00:00
Stéphane Fillod, F8CFE
6feb18f611
use ptt port pathname same as rig port pathname when unset and rig is type serial
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2915 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-05-17 22:20:58 +00:00
Stéphane Fillod, F8CFE
453995e7c0
fix segfault and allow mode listing in rigctl
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2865 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-04-05 10:01:09 +00:00
Kamal Mostafa, KA6MAL
5e21991a28
Hard-code length of hamlib_version and hamlib_copyright strings
...
to stay compliant with hamlib 1.2 ABI and avoid spurious "consider
relinking" warnings from dynamic loader.
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2839 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-02-27 16:09:07 +00:00
Nate Bargmann, N0NB
6763e8e750
Fixed long path calculation in azimuth_long_path() in locator.c
...
Spelling edits and removal of space at the end of lines in rig.c
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2829 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-02-14 21:47:49 +00:00
Stéphane Fillod, F8CFE
46289ed58e
convert parallel ptt to cwdaemon interface(STROBE+INIT)
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2747 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-11-01 18:48:27 +00:00
Stéphane Fillod, F8CFE
bbafe261fd
factorize port_open/port_close, fix a bug when setting RTS/DTR
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2729 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-09-14 07:49:04 +00:00
Stéphane Fillod, F8CFE
976540de77
set/get_split_{freq,mode} assisted by frontend
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2655 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-02-20 14:14:31 +00:00
Stéphane Fillod, F8CFE
b3037797c8
fix error code in rig_mW2power()
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2515 7ae35d74-ebe9-4afe-98af-79ac388436b8
2008-12-16 22:40:32 +00:00
Stéphane Fillod, F8CFE
ab24cf45e3
MinGW network fixes
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2472 7ae35d74-ebe9-4afe-98af-79ac388436b8
2008-11-05 23:02:00 +00:00
Stéphane Fillod, F8CFE
30245bf73a
resolve normal passband where available in rig_get_mode/rig_get_split_mode
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2445 7ae35d74-ebe9-4afe-98af-79ac388436b8
2008-10-31 23:08:59 +00:00
Stéphane Fillod, F8CFE
2492903ea9
accept partial 'pathname' for PORT_NETWORK
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2406 7ae35d74-ebe9-4afe-98af-79ac388436b8
2008-09-23 22:02:40 +00:00
Stéphane Fillod, F8CFE
0e7d1eacea
implementation of PORT_NETWORK
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2395 7ae35d74-ebe9-4afe-98af-79ac388436b8
2008-09-21 19:30:35 +00:00
Stéphane Fillod, F8CFE
6f4705fc20
BUG#2106524: allow backend specific override get_ptt even if RIG_PTT_SERIAL_DTR (e.g. FT757GXII)
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2379 7ae35d74-ebe9-4afe-98af-79ac388436b8
2008-09-12 11:49:32 +00:00
Stéphane Fillod, F8CFE
74495d7dfb
default serial device on BSD systems
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2343 7ae35d74-ebe9-4afe-98af-79ac388436b8
2008-05-04 15:36:23 +00:00
Nate Bargmann, N0NB
ec79e3cfb3
Documentation edits and additions for doxygen generated documentation.
...
Add missing enum to string definitions in settings.c
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2257 7ae35d74-ebe9-4afe-98af-79ac388436b8
2007-11-26 20:54:12 +00:00
Martin Ewing, AA6E
f6ddc3edad
documentation
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2145 7ae35d74-ebe9-4afe-98af-79ac388436b8
2006-10-15 00:27:52 +00:00
Alexandru Csete OZ9AEC
8798d79045
Cast constant caps to variable caps in order to avoid compiler warnings.
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2118 7ae35d74-ebe9-4afe-98af-79ac388436b8
2006-10-07 13:08:19 +00:00
Stéphane Fillod, F8CFE
f3fba54375
bump (c) date, add delay if RTS/DTR is set
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2076 7ae35d74-ebe9-4afe-98af-79ac388436b8
2006-02-26 19:28:04 +00:00
Stéphane Fillod, F8CFE
36c62542ae
added usb port type support
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2046 7ae35d74-ebe9-4afe-98af-79ac388436b8
2005-11-01 23:02:02 +00:00
Stéphane Fillod, F8CFE
15acf131b2
rig_mW2power fix reported by Brian Mury VE7NGR
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2037 7ae35d74-ebe9-4afe-98af-79ac388436b8
2005-06-20 21:15:48 +00:00
Stéphane Fillod, F8CFE
20f5e6fc3c
tab reformat
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1989 7ae35d74-ebe9-4afe-98af-79ac388436b8
2005-04-04 18:31:00 +00:00
Stéphane Fillod, F8CFE
8c5dc8e225
fix targetable all
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1984 7ae35d74-ebe9-4afe-98af-79ac388436b8
2005-04-03 22:33:08 +00:00
Stéphane Fillod, F8CFE
9fae198566
renamed port_t as hamlib_port_t
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1957 7ae35d74-ebe9-4afe-98af-79ac388436b8
2005-04-03 12:27:17 +00:00
Stéphane Fillod, F8CFE
c806c7e40c
added emulated split operation through RIG_OP_TOGGLE
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1949 7ae35d74-ebe9-4afe-98af-79ac388436b8
2005-03-26 17:57:14 +00:00
Stéphane Fillod, F8CFE
af21fced51
initial parallel port support for *BSD
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1924 7ae35d74-ebe9-4afe-98af-79ac388436b8
2005-02-20 02:38:29 +00:00
Chuck Hemker, N2POR
4270967938
Use RIG_TARGETABLE_MODE in rig_set_mode and rig_get_mode
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1897 7ae35d74-ebe9-4afe-98af-79ac388436b8
2005-01-12 01:55:38 +00:00
Stéphane Fillod, F8CFE
3e43344263
Split parallel port primitives in separate file from serial
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1862 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-10-02 20:37:24 +00:00
Stéphane Fillod, F8CFE
643fb5feae
* ser_ptt*/ser_dcd* are gone. Try to not mix low level serial stuff with
...
high level Hamlib stuff. Added ser_get_cts,ser_get_dsr,ser_get_car.
* better error code cascading
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1861 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-10-02 20:18:16 +00:00
Stéphane Fillod, F8CFE
f23efe3a7c
prepare work for Win32 systems which have 2 possible ABI: _stdcall and _cdecl
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1858 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-10-02 10:32:09 +00:00
Stéphane Fillod, F8CFE
7bac83a841
year stuff
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1781 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-08-01 23:12:58 +00:00
Stéphane Fillod, F8CFE
b1017566bc
added new error codes, as suggested by Nate
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1605 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-11-19 07:32:10 +00:00
Stéphane Fillod, F8CFE
6985ec78ca
converted RIG_LEVEL_STRENGTH to RIG_LEVEL_RAWSTR. RIG_LEVEL_STRENGTH is then derived from calibration table
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1583 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-11-16 17:14:44 +00:00
Stéphane Fillod, F8CFE
7ec6ee0b12
remove unused buffered mode stuff
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1555 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-10-01 19:44:00 +00:00
Stéphane Fillod, F8CFE
88fb6a6330
Default device name (OS dependant)
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1525 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-08-25 22:33:38 +00:00
Stéphane Fillod, F8CFE
343deb6f59
Support for pipelined tuning, including DCD on CD line.
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1510 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-08-17 22:39:07 +00:00
Stéphane Fillod, F8CFE
dc4564b4ff
fix previous commit(rig_close) and default parallel port
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1492 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-06-22 21:37:42 +00:00
Stéphane Fillod, F8CFE
73655ad83b
handle RIG_PORT_PARALLEL ports in open/close
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1484 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-06-22 19:41:59 +00:00
Stéphane Fillod, F8CFE
f8135d52df
Implemented emulation of rig transceive mode using polling (based on SIGALRM),
...
moved all transceive and event related functions from rig.c to event.c.
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1468 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-05-03 13:17:25 +00:00
Stéphane Fillod, F8CFE
484235b463
doxygen fixes
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1459 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-04-27 22:15:06 +00:00
Stéphane Fillod, F8CFE
026428e1b7
upgrade to libtool 1.5
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1447 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-04-19 13:47:57 +00:00
Stéphane Fillod, F8CFE
a07a4a336e
Adopt new split_vfo handling. Basically, rename set_split/get_split
...
to set_split_vfo/get_split_vfo, and take an extra transmit vfo arg.
Ascending compatibility is retained at the API frontend level.
NOTE: only function name has changed. The backends do not implement
necessarily the new semantic (the extra tx vfo is just ignored).
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1425 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-04-06 18:40:36 +00:00
Stéphane Fillod, F8CFE
fdabf14513
allow discovery(probe) of more than one rig attached to a port, fixes
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1405 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-03-10 08:26:09 +00:00
Stéphane Fillod, F8CFE
8d707be2a4
added support for set DTR/RTS state, useful to power external device from the serial port
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1378 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-02-23 22:38:54 +00:00
Stéphane Fillod, F8CFE
f6c7db3e03
fix a potential seg fault on backend open failure, initialize state.current_vfo appropriately
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1356 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-01-29 22:31:18 +00:00
Stéphane Fillod, F8CFE
aeb4d70336
misc update
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1299 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-11-28 22:32:42 +00:00
Stéphane Fillod, F8CFE
e2f54e9d10
split rig.c
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1242 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-11-04 22:22:30 +00:00
Stéphane Fillod, F8CFE
c69f9b4168
cleanup doxygen warnings
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1191 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-09-24 21:42:56 +00:00
Stéphane Fillod, F8CFE
a6162272fa
fixed typo
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1143 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-09-01 22:23:49 +00:00
Stéphane Fillod, F8CFE
b024552a03
fix dangerous typo in case of get_channel emulation
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1118 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-07-10 21:30:47 +00:00
Stéphane Fillod, F8CFE
7bf3972b30
- removed rig_save_channel and rig_restore_channel from API
...
- rig_set_channel and rig_get_channel can now target VFO, besides memories
- emulation of set_channel and get_channel has been kept in generic routines.
Added in these routines the support for ext_levels.
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1113 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-07-09 22:17:14 +00:00
Stéphane Fillod, F8CFE
e8403d542d
added "extra" level and "extra" parm support
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1111 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-07-09 20:40:28 +00:00
Stéphane Fillod, F8CFE
0ca66e37bb
added new error codes
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1033 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-03-18 22:59:30 +00:00
Stéphane Fillod, F8CFE
8ff300fd56
various fixes associated with get_channel and set_channel
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1028 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-03-14 23:06:02 +00:00
Stéphane Fillod, F8CFE
ce5e6a57c7
added functions to install event callbacks with its private data pointer
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@978 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-02-27 23:34:02 +00:00
Stéphane Fillod, F8CFE
9b245477da
token defines moved to token.h
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@924 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-01-27 14:55:30 +00:00
Stéphane Fillod, F8CFE
e8e8084222
check communication is opened
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@887 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-01-21 08:30:31 +00:00
Francois Retief
8803970e9b
check trn state of rig in rig_open.
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@855 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-01-07 18:18:15 +00:00
Stéphane Fillod, F8CFE
32bdc73f20
backend init time failure fix and other misc fixes
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@816 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-12-27 22:00:27 +00:00
Stéphane Fillod, F8CFE
95ac29fbdf
fix with backend open failure case, and misc update
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@806 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-12-26 23:47:07 +00:00
Stéphane Fillod, F8CFE
170644f6e5
removed useless vfo arg to set_trn/get_trn funcs
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@780 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-12-20 07:46:13 +00:00
Stéphane Fillod, F8CFE
83377f40ad
tones fixes
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@774 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-12-19 03:35:27 +00:00
Stéphane Fillod, F8CFE
3d6b1e5131
finer grained targetable vfo cap
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@746 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-12-16 11:17:42 +00:00
Stéphane Fillod, F8CFE
b75b5e6613
fix double close() issue
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@701 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-10-25 21:22:49 +00:00
Stéphane Fillod, F8CFE
39f604062f
added open/not open flag
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@690 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-10-16 21:18:02 +00:00
Stéphane Fillod, F8CFE
197d62af6b
do not export ctcss and dcs data lists if dll does not support it (eg. win32), and then, workaround this
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@682 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-10-16 19:19:46 +00:00
Stéphane Fillod, F8CFE
fe388a8784
various cleanup of old stuff (mv_ctl)
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@614 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-08-08 06:04:49 +00:00
Stéphane Fillod, F8CFE
bdfe0b969a
'path' field renamed in port_t
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@608 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-07-25 21:59:55 +00:00
Stéphane Fillod, F8CFE
99b10b1aef
added set/get_conf support
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@599 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-07-21 13:00:03 +00:00
Stéphane Fillod, F8CFE
1f01081335
converted to LGPL
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@582 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-07-13 19:08:15 +00:00
Stéphane Fillod, F8CFE
c9dc785aaa
renamed xet_ctcss to xet_ctcss_tone and xet_dcs to xet_dcs_code to make it less ambiguous in regards to the squelch functions
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@576 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-07-01 11:46:17 +00:00
Stéphane Fillod, F8CFE
f3b44939b0
converted from hamlib-doc to doxygen style API commenting
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@569 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-06-30 12:36:43 +00:00
Stéphane Fillod, F8CFE
16b77c5b31
simplified xet_split_freq/xet_split_mode, now handles only tx freq/mode
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@568 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-06-27 17:32:47 +00:00
Stéphane Fillod, F8CFE
c3be2e3aef
added scan function
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@567 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-06-26 20:55:29 +00:00
Stéphane Fillod, F8CFE
c74995b05f
further win32 porting
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@556 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-06-15 07:08:37 +00:00
Stéphane Fillod, F8CFE
9c32855611
more portability stuff
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@541 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-06-11 00:41:28 +00:00
Stéphane Fillod, F8CFE
ed6bbc95a6
better error handling in serial comm, fix a bug in stream openning
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@536 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-06-10 22:19:08 +00:00
Stéphane Fillod, F8CFE
e968f8e7be
misc update for port_t support
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@533 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-06-05 18:08:30 +00:00
Stéphane Fillod, F8CFE
c1cb77c643
new automatic backend loading and sparse rig_model scheme
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@529 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-06-04 21:17:53 +00:00
Stéphane Fillod, F8CFE
da19dd9a47
new port_t design
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@523 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-06-04 17:01:21 +00:00
Stéphane Fillod, F8CFE
7ffe3fbe22
mv_ctl replaced by vfo_op, added RIG_VFO_MEM support
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@522 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-06-03 19:54:05 +00:00
Stéphane Fillod, F8CFE
3c3d5373df
misc update
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@512 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-06-02 18:05:14 +00:00
Stéphane Fillod, F8CFE
a4b66f55e1
* misc update
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@494 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-05-24 22:24:18 +00:00
Stéphane Fillod, F8CFE
aa864ba239
* added common_ctcss_list table (50 tones)
...
* added support for XIT
* misc updates
* started work on rig_save_channel/rig_restore_channel
to emulate rig_get_channel/rig_set_channel. Seems to work on my IC706MkIIG.
see tests/dumpmem.
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@478 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-05-04 22:44:10 +00:00
Stéphane Fillod, F8CFE
5a882344e3
* added rig_set_split_mode, rig_get_split_mode, and rig_send_morse
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@470 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-04-28 12:49:12 +00:00
Stéphane Fillod, F8CFE
29166df172
* fixed a bug in rig_init
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@458 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-04-24 19:55:29 +00:00
Stéphane Fillod, F8CFE
7933f49405
* added rig_reset() support
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@444 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-03-04 23:06:30 +00:00
Stéphane Fillod, F8CFE
799b18dd8b
* misc define renamed
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@440 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-03-04 13:06:36 +00:00
Stéphane Fillod, F8CFE
cc52bc5495
* set_poweron is gone in favor of set_powerstat
...
* added send_dtmf and recv_dtmf wrappers
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@429 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-03-02 18:41:46 +00:00
Stéphane Fillod, F8CFE
8a11b41479
* added rig_set_parm/rig_get_parm and rig_has_set_parm/rig_has_get_parm
...
* added full_ctcss_list, dcs_ctcss_list, supposed to be complete (TBC)
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@412 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-03-01 00:30:58 +00:00
Stéphane Fillod, F8CFE
59ce5b695a
* misc rewrite
...
* new fields in caps: vfo_list, priv
* shadowed tuning_steps
* coded in rig_passband_normal,rig_passband_narrow and rig_passband_wide
as examples. Not activated yet.
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@407 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-02-27 23:10:12 +00:00
Stéphane Fillod, F8CFE
8e69eb6033
* added rig_get_dcd support
...
* added port_type and filters proper shadowing
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@394 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-02-14 23:59:09 +00:00
Stéphane Fillod, F8CFE
8c9880b0dd
* added RIG_PORT_NONE propoer support in rig_open
...
* added rig_set_ann/rig_get_ann and rig_set_ant/rig_get_ant wrappers
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@384 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-02-14 01:08:12 +00:00
Stéphane Fillod, F8CFE
da3ff63df3
* updated after caps changes, see rig.h changelog
...
* fixed a potential divide by zero bug in rig_mW2power
* misc updates
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@365 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-02-11 23:09:16 +00:00
Stéphane Fillod, F8CFE
f5c725c75c
* added hamlib_version constant
...
* reworked serial/parallel PTT handling. Split functions so it'll be
easier to add support for different architectures.
This has been tested, and it works at least with my IC706 and
PTT signaling on parallel port (using Data/Packet connector)
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@357 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-02-09 23:06:32 +00:00
Stéphane Fillod, F8CFE
3e910d3a3e
* added rig_get_resolution and RIG_PORT_DEVICE support in rig_open
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@345 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-02-07 23:44:08 +00:00
Stéphane Fillod, F8CFE
50576d9502
* started some work on PTT signaling through serial/parallel ports.
...
RIG_PTT_SERIAL is no more, it is replaced by RIG_PTT_SERIAL_RTS and
RIG_PTT_SERIAL_DTR.
* added comments for rig_get_level and RIG_LEVEL_STRENGTH
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@331 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-01-28 22:17:12 +00:00
Stéphane Fillod, F8CFE
327be0cce7
* added targetable_vfo support in wrappers for rigs that cannot address directly VFOs
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@318 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-01-05 18:24:20 +00:00
Frank Singleton, VK3FCS
a069fad9f8
rig_cleanup and rig_close not calling backend
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@300 7ae35d74-ebe9-4afe-98af-79ac388436b8
2000-12-22 00:56:00 +00:00
Stéphane Fillod, F8CFE
b864758580
* all the API functions are now targetted to a particular VFO.
...
This is a major change in the library interface, and the implementation
is not complete yet (especially in the backends), but the API should
be fine. Anyway, at this stage of developement, interface design
experimenting matters more than completeness.
* added new shortfreq_t type for frequencies on 31bits (up to 2GHz)
for use by offset/shifts/etc.
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@285 7ae35d74-ebe9-4afe-98af-79ac388436b8
2000-12-05 22:01:03 +00:00
Stéphane Fillod, F8CFE
d0e751257d
* removed [sg]et_passband in favor of an enhanced [sg]et_mode which
...
includes the passband, since most rigs tie these parameters together
quite often. For exemple, WFM is (RIG_MODE_FM,RIG_PASSBAND_WIDE) in Hamlib.
Another set of functions will be needed to fine tune aditional
frequency response/filters.
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@280 7ae35d74-ebe9-4afe-98af-79ac388436b8
2000-12-04 23:39:18 +00:00
Stéphane Fillod, F8CFE
b71c8da45e
* cleanup, removed "not implemented" misleading comments
...
* added added squelch primitives of DCS/CTCSS
* added set/get_RIT and rig_get_info wrappers
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@274 7ae35d74-ebe9-4afe-98af-79ac388436b8
2000-11-28 22:33:37 +00:00
Stéphane Fillod, F8CFE
0f1150cd6b
* addded wrapper for rig_set_bank
...
* misc fixups
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@252 7ae35d74-ebe9-4afe-98af-79ac388436b8
2000-10-29 16:30:43 +00:00
Stéphane Fillod, F8CFE
6c20d2ba20
* misc comments update about CTCSS & DCS
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@242 7ae35d74-ebe9-4afe-98af-79ac388436b8
2000-10-23 19:56:29 +00:00
Stéphane Fillod, F8CFE
ae3c017e4c
* Added "hamlib-doc" source comments, ala kernel-doc,gnome-doc.
...
See doc/ subdirectory for more info. The work is still in progress,
the current comments are pretty shallow rigth now, they're still
lacking the valuable information like semantics, side effects,
special cases, error definitions, etc. that makes a good API documention.
Please help commenting, fixing typos and mispellings!
* renamed rig_*_rpt_* functions to rig_*_rptr_* to be more uniform
* made use of setting_t type in *_has_* functions
* removed set_volume, get_volume, set_squelch, get_squelch,
get_squelch_status, set_ant, get_ant, int et_att, get_att,
set_preamp, get_preamp, set_power, and get_power
in favor of set_level/get_level.
* set_func takes one more arg for the status (activate or desactivate)
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@234 7ae35d74-ebe9-4afe-98af-79ac388436b8
2000-10-22 16:08:23 +00:00
Stéphane Fillod, F8CFE
6f081b5c2e
* Added rig_[sg]et_passband to [sg]et narrow/normal/wide filter. These are a good companions to rig_[sg]et_mode. Maybe they should be merged?
...
* Added rig_[sg]et_rpt_offs to set/get repeater offset
* Added rig_split functions: rig_[sg]et_split_freq (set RX and TX freq) and rig_[sg]et_split to activate split mode
* Added rig_[gs]et_level, however rig_set_preamp/rig_set_att/rig_set_ant et al. will be removed very soon.
* Added Memory/VFO handling routines (actually wrappers, like the rest)
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@219 7ae35d74-ebe9-4afe-98af-79ac388436b8
2000-10-16 22:08:51 +00:00
Stéphane Fillod, F8CFE
9a2c4dc7d0
* added support for set_trn to activate on the fly the transceive mode
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@208 7ae35d74-ebe9-4afe-98af-79ac388436b8
2000-10-10 22:11:48 +00:00
Frank Singleton, VK3FCS
a5bcaa48ca
added post_write_delay
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@204 7ae35d74-ebe9-4afe-98af-79ac388436b8
2000-10-09 01:17:20 +00:00
Stéphane Fillod, F8CFE
566ad55505
* added dynamic loading support with new data struct for known rig list,
...
* keep track of opened rigs (add_opened_rig/remove_opened_rig/foreach_opened_rig),
* misunderstanding on RIG_ENIMPL, this is RIG_ENAVAIL in most cases,
* added support for file buffered access (opt.),
* added rig_set_trn to turn on/off transceive support
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@196 7ae35d74-ebe9-4afe-98af-79ac388436b8
2000-10-08 21:45:20 +00:00
Stéphane Fillod, F8CFE
192c9dfe3e
Moved from ../common
...
Added more wrappers, coded in mW2power power2mW
Added rig_set_debug/rig_need_debug/rig_debug
Various fixes
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@166 7ae35d74-ebe9-4afe-98af-79ac388436b8
2000-10-01 12:29:12 +00:00