2004-04-16 20:29:51 +00:00
|
|
|
/*
|
|
|
|
* Hamlib KIT backend - main file
|
2012-01-06 08:40:04 +00:00
|
|
|
* Copyright (c) 2004-2012 by Stephane Fillod
|
2004-04-16 20:29:51 +00:00
|
|
|
*
|
|
|
|
*
|
2011-08-21 02:34:44 +00:00
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
2004-04-16 20:29:51 +00:00
|
|
|
*
|
2011-08-21 02:34:44 +00:00
|
|
|
* This library is distributed in the hope that it will be useful,
|
2004-04-16 20:29:51 +00:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2011-08-21 02:34:44 +00:00
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
2004-04-16 20:29:51 +00:00
|
|
|
*
|
2011-08-21 02:34:44 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2004-04-16 20:29:51 +00:00
|
|
|
* License along with this library; if not, write to the Free Software
|
2011-08-21 02:34:44 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
2004-04-16 20:29:51 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
#include "config.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h> /* String function definitions */
|
|
|
|
#include <unistd.h> /* UNIX standard function definitions */
|
|
|
|
|
|
|
|
#include "hamlib/rig.h"
|
|
|
|
#include "register.h"
|
|
|
|
|
|
|
|
#include "kit.h"
|
2005-11-01 23:14:41 +00:00
|
|
|
#include "usrp_impl.h"
|
2004-04-16 20:29:51 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* initrigs_kit is called by rig_backend_load
|
|
|
|
*/
|
|
|
|
DECLARE_INITRIG_BACKEND(kit)
|
|
|
|
{
|
|
|
|
rig_debug(RIG_DEBUG_VERBOSE, "kit: _init called\n");
|
|
|
|
|
|
|
|
rig_register(&elektor304_caps);
|
2004-08-19 21:02:47 +00:00
|
|
|
rig_register(&drt1_caps);
|
2007-10-23 21:56:30 +00:00
|
|
|
rig_register(&dds60_caps);
|
2008-04-11 18:03:53 +00:00
|
|
|
rig_register(&miniVNA_caps);
|
2012-01-06 08:40:04 +00:00
|
|
|
rig_register(&hiqsdr_caps);
|
2004-04-16 20:29:51 +00:00
|
|
|
|
2009-11-02 19:31:27 +00:00
|
|
|
#if (defined(HAVE_LIBUSB) && defined(HAVE_USB_H))
|
|
|
|
rig_register(&si570avrusb_caps);
|
2010-11-03 20:52:25 +00:00
|
|
|
rig_register(&si570picusb_caps);
|
2013-09-20 15:54:57 +00:00
|
|
|
rig_register(&si570peaberry1_caps);
|
|
|
|
rig_register(&si570peaberry2_caps);
|
2011-01-28 00:40:45 +00:00
|
|
|
rig_register(&funcube_caps);
|
2011-02-04 23:20:09 +00:00
|
|
|
rig_register(&fifisdr_caps);
|
2012-11-25 15:27:05 +00:00
|
|
|
rig_register(&fasdr_caps);
|
2014-02-06 19:25:49 +00:00
|
|
|
rig_register(&funcubeplus_caps);
|
2009-11-02 19:31:27 +00:00
|
|
|
#endif
|
2006-01-09 21:40:17 +00:00
|
|
|
#if (defined(HAVE_LIBUSB) && defined(HAVE_USB_H)) || defined(_WIN32)
|
2009-11-02 19:31:27 +00:00
|
|
|
/* rigs with alternate DLL support on Win32 */
|
2005-11-01 23:14:41 +00:00
|
|
|
rig_register(&dwt_caps);
|
2007-10-07 20:31:24 +00:00
|
|
|
rig_register(&elektor507_caps);
|
2005-11-01 23:14:41 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef HAVE_USRP
|
|
|
|
//rig_register(&usrp0_caps);
|
|
|
|
rig_register(&usrp_caps);
|
|
|
|
#endif
|
|
|
|
|
2004-04-16 20:29:51 +00:00
|
|
|
return RIG_OK;
|
|
|
|
}
|
|
|
|
|
2008-10-31 07:45:17 +00:00
|
|
|
/*
|
|
|
|
* initrots_kit is called by rot_backend_load
|
|
|
|
*/
|
|
|
|
DECLARE_INITROT_BACKEND(kit)
|
|
|
|
{
|
|
|
|
rig_debug(RIG_DEBUG_VERBOSE, "kit: _init called\n");
|
|
|
|
|
|
|
|
rot_register(&pcrotor_caps);
|
|
|
|
|
|
|
|
return RIG_OK;
|
|
|
|
}
|
|
|
|
|
2004-04-16 20:29:51 +00:00
|
|
|
|