[Gpredict-svn] SF.net SVN: gpredict: [33] trunk
Real time satellite tracking and orbit prediction
Status: Beta
Brought to you by:
csete
|
From: <cs...@us...> - 2008-04-20 13:39:31
|
Revision: 33
http://gpredict.svn.sourceforge.net/gpredict/?rev=33&view=rev
Author: csete
Date: 2008-04-20 06:28:01 -0700 (Sun, 20 Apr 2008)
Log Message:
-----------
Added generic interface to hardware drivers.
Modified Paths:
--------------
trunk/ChangeLog
trunk/po/POTFILES.in
trunk/src/Makefile.am
trunk/win32/Makefile
Added Paths:
-----------
trunk/src/rig-io.c
trunk/src/rig-io.h
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2008-04-09 21:55:53 UTC (rev 32)
+++ trunk/ChangeLog 2008-04-20 13:28:01 UTC (rev 33)
@@ -1,3 +1,9 @@
+2008-04-20; Alexandru Csete <oz...@gm...>
+
+ * src/rig-io.[ch]:
+ Added generic interface to hardware drivers.
+
+
2008-03-30; Alexandru Csete <oz...@gm...>
* src/gtk-freq-ctrl.c, gtk-freq-ctrl.h:
Modified: trunk/po/POTFILES.in
===================================================================
--- trunk/po/POTFILES.in 2008-04-09 21:55:53 UTC (rev 32)
+++ trunk/po/POTFILES.in 2008-04-20 13:28:01 UTC (rev 33)
@@ -30,6 +30,7 @@
src/predict-tools.c
src/radio-conf.c
src/rdv.c
+src/rig-io.c
src/rotor-conf.c
src/sat-cfg.c
src/sat-log.c
Modified: trunk/src/Makefile.am
===================================================================
--- trunk/src/Makefile.am 2008-04-09 21:55:53 UTC (rev 32)
+++ trunk/src/Makefile.am 2008-04-20 13:28:01 UTC (rev 33)
@@ -68,6 +68,7 @@
predict-tools.c predict-tools.h \
qth-editor.c qth-editor.h \
radio-conf.c radio-conf.h \
+ rig-io.c rig-io.h \
rotor-conf.c rotor-conf.h \
rdv.c rdv.h \
sat-cfg.c sat-cfg.h \
Added: trunk/src/rig-io.c
===================================================================
--- trunk/src/rig-io.c (rev 0)
+++ trunk/src/rig-io.c 2008-04-20 13:28:01 UTC (rev 33)
@@ -0,0 +1,97 @@
+/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ Gpredict: Real-time satellite tracking and orbit prediction program
+
+ Copyright (C) 2001-2007 Alexandru Csete.
+
+ Authors: Alexandru Csete <oz...@gm...>
+
+ Comments, questions and bugreports should be submitted via
+ http://sourceforge.net/projects/groundstation/
+ More details can be found at the project home page:
+
+ http://groundstation.sourceforge.net/
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, visit http://www.fsf.org/
+
+
+*/
+/** \brief Hardware driver wrapper
+ *
+ * The purpose of this module is to provide a generic interace to the
+ * hardware driver, regardless of whether it is a single/dual rig hamlib,
+ * or any other interface.
+ */
+
+#include <glib.h>
+
+
+/** \brief Initialise hardware interface.
+ * \param uplink Name of the uplink configuration.
+ * \param downlink Name of the downlink configuration.
+ * \return 0 if successful, non-zero if an error occured
+ *
+ */
+gint rig_io_init (const gchar* uplink, const gchar *downlink)
+{
+ return 0;
+}
+
+/** \brief Shut down hardware interface.
+ *
+ */
+gint rig_io_shutdown ()
+{
+ return 0;
+}
+
+
+/** \brief Set uplink frequency.
+ * \param freq The desired uplink frequency in Hz.
+ *
+ */
+void rig_io_set_uplink_freq (gdouble freq)
+{
+}
+
+
+/** \brief Read uplink frequency.
+ * \param freq The current uplink frequency in Hz.
+ *
+ */
+void rig_io_get_uplink_freq (gdouble *freq)
+{
+ *freq = 0.0;
+}
+
+
+/** \brief Set downlink frequency
+ * \param The desired downlink frequency in Hz.
+ *
+ */
+void rig_io_set_downlink_freq (gdouble freq)
+{
+}
+
+
+/** \brief Read downlink frequency.
+ * \param freq The current downlink frequency in Hz.
+ *
+ */
+void rig_io_get_downlink_freq (gdouble *freq)
+{
+ *freq = 0.0;
+}
+
+
Added: trunk/src/rig-io.h
===================================================================
--- trunk/src/rig-io.h (rev 0)
+++ trunk/src/rig-io.h 2008-04-20 13:28:01 UTC (rev 33)
@@ -0,0 +1,45 @@
+/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ Gpredict: Real-time satellite tracking and orbit prediction program
+
+ Copyright (C) 2001-2007 Alexandru Csete.
+
+ Authors: Alexandru Csete <oz...@gm...>
+
+ Comments, questions and bugreports should be submitted via
+ http://sourceforge.net/projects/groundstation/
+ More details can be found at the project home page:
+
+ http://groundstation.sourceforge.net/
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, visit http://www.fsf.org/
+
+
+*/
+#ifndef RIG_IO_H
+#define RIG_IO_H 1
+
+#include <glib.h>
+
+
+gint rig_io_init (const gchar* uplink, const gchar *downlink);
+gint rig_io_shutdown (void);
+
+void rig_io_set_uplink_freq (gdouble freq);
+void rig_io_get_uplink_freq (gdouble *freq);
+
+void rig_io_set_downlink_freq (gdouble freq);
+void rig_io_get_downlink_freq (gdouble *freq);
+
+#endif
Modified: trunk/win32/Makefile
===================================================================
--- trunk/win32/Makefile 2008-04-09 21:55:53 UTC (rev 32)
+++ trunk/win32/Makefile 2008-04-20 13:28:01 UTC (rev 33)
@@ -118,6 +118,7 @@
predict-tools.c \
qth-editor.c \
radio-conf.c \
+ rig-io.c \
rotor-conf.c \
rdv.c \
sat-cfg.c \
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|