From 987bd69bde7cbd0d3f91e4f85b797f87ad0ec708 Mon Sep 17 00:00:00 2001 From: "Frank Singleton, VK3FCS" Date: Sun, 20 Aug 2000 21:52:27 +0000 Subject: [PATCH] Updated docs to point to http://sourceforge.net/projects/hamlib/ and added a C code snippet on how to use the API. git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@74 7ae35d74-ebe9-4afe-98af-79ac388436b8 --- README | 5 +++++ README.developer | 45 +++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 48 insertions(+), 2 deletions(-) diff --git a/README b/README index c2a2b0c49..72a50bbe4 100644 --- a/README +++ b/README @@ -32,6 +32,11 @@ Initially serial (RS232) connectivity will be handled, but I expect that IP connectivity will follow afterwards. +Take a look at README.developer for more info. + +Also, take a look at http://sourceforge.net/projects/hamlib/ +Here you will find a mail list, and the latest CVS releases. + Have Fun / Frank S. 73's de vk3fcs/km5ws diff --git a/README.developer b/README.developer index 70e9df714..e555f599e 100644 --- a/README.developer +++ b/README.developer @@ -1,5 +1,9 @@ hamlib - (C) Frank Singleton 2000 (vk3fcs@ix.netcom.com) +Take a look at http://sourceforge.net/projects/hamlib/ +Here you will find a mail list, and the latest CVS releases. + + General Guidelines. ------------------- @@ -87,7 +91,7 @@ General Guidelines. excercises the API you are implementing. 6. libXXXX.so should be built to allow TX (PTT) to be disabled - if required. See ft747.[ch] for how this is done. + if required. See ft847.[ch] for how this is done. 7. The Makefile for the test suite should have a target like this to allow testing the API. @@ -109,6 +113,43 @@ General Guidelines. If this cannot be done, I may consider an "API.xxx" that decsribes the API (eg: API.ft847 ) -10. ... +10. C code examples. + An example piece of code may uses the ft847 API could + look like this.. + +A C code snippet to connect to a FT847 and set +the frequnecy of the main VFO to 439,700,000 Hz , +using FM as the required mode, would look something +like this. + + + + int fd; + + fd = rig_open(SERIAL_PORT); + printf("port %s opened ok \n",SERIAL_PORT); + + cmd_set_cat_on(fd); /* cat on */ + cmd_set_freq_main_vfo_hz(fd,439700000,MODE_FM); + cmd_set_cat_off(fd); /* cat off */ + + rig_close(fd); + printf("port %s closed ok \n",SERIAL_PORT); + + + + +11. Where are the GUI's. + + "Build it and they will come ..." + + Seriously, I am hoping the API's will provide a solid + framework for some cool GUI development. I would like + to see some GTK apps that use the hamlib API's + so they can be used by end users as a nice part of the + Ham shack. + + +