kopia lustrzana https://github.com/Hamlib/Hamlib
				
				
				
			move backend declaration into flexradio.c
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2231 7ae35d74-ebe9-4afe-98af-79ac388436b8Hamlib-1.2.7
							rodzic
							
								
									c1779ac703
								
							
						
					
					
						commit
						d870c37176
					
				|  | @ -0,0 +1,46 @@ | |||
| /*
 | ||||
|  *  Hamlib Flexradio backend | ||||
|  *  Copyright (c) 2003-2007 by Stephane Fillod | ||||
|  * | ||||
|  *	$Id: flexradio.c,v 1.1 2007-11-07 19:06:44 fillods Exp $ | ||||
|  * | ||||
|  *   This library is free software; you can redistribute it and/or modify | ||||
|  *   it under the terms of the GNU Library 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 Library General Public License for more details. | ||||
|  * | ||||
|  *   You should have received a copy of the GNU Library General Public | ||||
|  *   License along with this library; if not, write to the Free Software | ||||
|  *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||||
|  * | ||||
|  */ | ||||
| 
 | ||||
| #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 <math.h> | ||||
| 
 | ||||
| #include "hamlib/rig.h" | ||||
| #include "flexradio.h" | ||||
| #include "register.h" | ||||
| 
 | ||||
| DECLARE_INITRIG_BACKEND(flexradio) | ||||
| { | ||||
| 	rig_debug(RIG_DEBUG_TRACE, "%s called\n", __FUNCTION__); | ||||
| 
 | ||||
| 	rig_register(&sdr1k_rig_caps); | ||||
| 	//rig_register(&sdr1krfe_rig_caps);
 | ||||
| 	rig_register(&dttsp_rig_caps); | ||||
| 
 | ||||
| 	return RIG_OK; | ||||
| } | ||||
| 
 | ||||
|  | @ -0,0 +1,32 @@ | |||
| /*
 | ||||
|  *  Hamlib FLEXRADIO backend - main header | ||||
|  *  Copyright (c) 2004-2007 by Stephane Fillod | ||||
|  * | ||||
|  *	$Id: flexradio.h,v 1.1 2007-11-07 19:06:44 fillods Exp $ | ||||
|  * | ||||
|  *   This library is free software; you can redistribute it and/or modify | ||||
|  *   it under the terms of the GNU Library 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 Library General Public License for more details. | ||||
|  * | ||||
|  *   You should have received a copy of the GNU Library General Public | ||||
|  *   License along with this library; if not, write to the Free Software | ||||
|  *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||||
|  * | ||||
|  */ | ||||
| 
 | ||||
| #ifndef _FLEXRADIO_H | ||||
| #define _FLEXRADIO_H 1 | ||||
| 
 | ||||
| #include "hamlib/rig.h" | ||||
| 
 | ||||
| extern const struct rig_caps sdr1k_rig_caps; | ||||
| extern const struct rig_caps sdr1krfe_rig_caps; | ||||
| extern const struct rig_caps dttsp_rig_caps; | ||||
| 
 | ||||
| #endif /* _FLEXRADIO_H */ | ||||
|  | @ -1,8 +1,8 @@ | |||
| /*
 | ||||
|  *  Hamlib Rotator backend - SDR-1000 | ||||
|  *  Copyright (c) 2003-2005 by Stephane Fillod | ||||
|  *  Hamlib backend - SDR-1000 | ||||
|  *  Copyright (c) 2003-2007 by Stephane Fillod | ||||
|  * | ||||
|  *	$Id: sdr1k.c,v 1.9 2005-04-03 12:27:14 fillods Exp $ | ||||
|  *	$Id: sdr1k.c,v 1.10 2007-11-07 19:05:18 fillods Exp $ | ||||
|  * | ||||
|  *   This library is free software; you can redistribute it and/or modify | ||||
|  *   it under the terms of the GNU Library General Public License as | ||||
|  | @ -35,7 +35,7 @@ | |||
| #include "bandplan.h" | ||||
| #include "register.h" | ||||
| 
 | ||||
| #include "sdr1k.h" | ||||
| #include "flexradio.h" | ||||
| 
 | ||||
| static int sdr1k_set_freq(RIG *rig, vfo_t vfo, freq_t freq); | ||||
| static int sdr1k_get_freq(RIG *rig, vfo_t vfo, freq_t *freq); | ||||
|  | @ -184,17 +184,6 @@ const struct rig_caps sdr1k_rig_caps = { | |||
| }; | ||||
| 
 | ||||
| 
 | ||||
| /* ************************************************************************* */ | ||||
| 
 | ||||
| DECLARE_INITRIG_BACKEND(flexradio) | ||||
| { | ||||
| 	rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __FUNCTION__); | ||||
| 
 | ||||
| 	rig_register(&sdr1k_rig_caps); | ||||
| 
 | ||||
| 	return RIG_OK; | ||||
| } | ||||
| 
 | ||||
| /* ************************************************************************* */ | ||||
| 
 | ||||
| int sdr1k_init(RIG *rig) | ||||
|  |  | |||
		Ładowanie…
	
		Reference in New Issue
	
	 Stéphane Fillod, F8CFE
						Stéphane Fillod, F8CFE