2007-11-07 19:06:44 +00:00
|
|
|
/*
|
|
|
|
* Hamlib Flexradio backend
|
2012-01-30 22:22:32 +00:00
|
|
|
* Copyright (c) 2003-2012 by Stephane Fillod
|
2007-11-07 19:06:44 +00:00
|
|
|
*
|
|
|
|
*
|
2011-08-20 23:53:49 +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.
|
2007-11-07 19:06:44 +00:00
|
|
|
*
|
2011-08-20 23:53:49 +00:00
|
|
|
* This library is distributed in the hope that it will be useful,
|
2007-11-07 19:06:44 +00:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2011-08-20 23:53:49 +00:00
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
2007-11-07 19:06:44 +00:00
|
|
|
*
|
2011-08-20 23:53:49 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2007-11-07 19:06:44 +00:00
|
|
|
* License along with this library; if not, write to the Free Software
|
2011-08-20 23:53:49 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
2007-11-07 19:06:44 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "hamlib/rig.h"
|
|
|
|
#include "flexradio.h"
|
|
|
|
#include "register.h"
|
|
|
|
|
2024-05-24 16:38:13 +00:00
|
|
|
#ifdef HAVE_NETINET_IN_H
|
|
|
|
# include <netinet/in.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if HAVE_NETDB_H
|
|
|
|
# include <netdb.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef HAVE_ARPA_INET_H
|
|
|
|
# include <arpa/inet.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined (HAVE_SYS_SOCKET_H) && defined (HAVE_SYS_IOCTL_H)
|
|
|
|
# include <sys/socket.h>
|
|
|
|
# include <sys/ioctl.h>
|
|
|
|
#endif
|
|
|
|
|
2007-11-07 19:06:44 +00:00
|
|
|
DECLARE_INITRIG_BACKEND(flexradio)
|
|
|
|
{
|
2019-11-30 16:19:08 +00:00
|
|
|
rig_debug(RIG_DEBUG_TRACE, "%s called\n", __func__);
|
2007-11-07 19:06:44 +00:00
|
|
|
|
2019-11-30 16:19:08 +00:00
|
|
|
rig_register(&sdr1k_rig_caps);
|
|
|
|
//rig_register(&sdr1krfe_rig_caps);
|
|
|
|
rig_register(&dttsp_rig_caps);
|
|
|
|
rig_register(&dttsp_udp_rig_caps);
|
2024-05-20 12:57:10 +00:00
|
|
|
rig_register(&smartsdr_a_rig_caps);
|
|
|
|
rig_register(&smartsdr_b_rig_caps);
|
|
|
|
rig_register(&smartsdr_c_rig_caps);
|
|
|
|
rig_register(&smartsdr_d_rig_caps);
|
|
|
|
rig_register(&smartsdr_e_rig_caps);
|
|
|
|
rig_register(&smartsdr_f_rig_caps);
|
|
|
|
rig_register(&smartsdr_g_rig_caps);
|
|
|
|
rig_register(&smartsdr_h_rig_caps);
|
2007-11-07 19:06:44 +00:00
|
|
|
|
2019-11-30 16:19:08 +00:00
|
|
|
return RIG_OK;
|
2007-11-07 19:06:44 +00:00
|
|
|
}
|
|
|
|
|