kopia lustrzana https://github.com/Hamlib/Hamlib
rig.h is in include/hamlib, added dynamic loading support and set transceive cap to off
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@201 7ae35d74-ebe9-4afe-98af-79ac388436b8Hamlib-1.1.0
rodzic
942de4b6f4
commit
e24d318059
|
@ -7,7 +7,7 @@
|
|||
* box (FIF-232C) or similar
|
||||
*
|
||||
*
|
||||
* $Id: ft747.c,v 1.14 2000-10-02 00:02:03 javabear Exp $
|
||||
* $Id: ft747.c,v 1.15 2000-10-08 21:57:39 f4cfe Exp $
|
||||
*
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
|
@ -39,8 +39,8 @@
|
|||
#include <termios.h> /* POSIX terminal control definitions */
|
||||
#include <sys/ioctl.h>
|
||||
|
||||
#include "rig.h"
|
||||
#include "riglist.h"
|
||||
#include <hamlib/rig.h>
|
||||
#include <hamlib/riglist.h>
|
||||
#include "serial.h"
|
||||
#include "ft747.h"
|
||||
|
||||
|
@ -76,7 +76,7 @@ int ft747_set_freq_main_vfo_hz(RIG *rig, freq_t freq, rmode_t mode);
|
|||
const struct rig_caps ft747_caps = {
|
||||
RIG_MODEL_FT747, "FT-747GX", "Yaesu", "0.1", RIG_STATUS_ALPHA,
|
||||
RIG_TYPE_MOBILE, RIG_PTT_NONE, 4800, 4800, 8, 2, RIG_PARITY_NONE,
|
||||
RIG_HANDSHAKE_NONE, 50, 2000, 0,FT747_FUNC_ALL,20,
|
||||
RIG_HANDSHAKE_NONE, 50, 2000, 0,FT747_FUNC_ALL,20,RIG_TRN_OFF,
|
||||
{ {100000,29999900,FT747_ALL_RX_MODES,-1,-1}, {0,0,0,0,0}, }, /* rx range */
|
||||
|
||||
{ {1500000,1999900,FT747_OTHER_TX_MODES,5000,100000}, /* 100W class */
|
||||
|
@ -475,5 +475,16 @@ void ft747_cmd_get_update_store(int fd, unsigned char *buffer) {
|
|||
|
||||
|
||||
|
||||
/*
|
||||
* init_ft747 is called by rig_backend_load
|
||||
*/
|
||||
int init_ft747(void *be_handle)
|
||||
{
|
||||
rig_debug(RIG_DEBUG_VERBOSE, "ft747: _init called\n");
|
||||
|
||||
rig_register(&ft747_caps);
|
||||
|
||||
return RIG_OK;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
* via serial interface to an FT-847 using the "CAT" interface.
|
||||
*
|
||||
*
|
||||
* $Id: ft847.c,v 1.21 2000-10-01 23:50:46 javabear Exp $
|
||||
* $Id: ft847.c,v 1.22 2000-10-08 21:57:40 f4cfe Exp $
|
||||
*
|
||||
*
|
||||
*
|
||||
|
@ -35,8 +35,8 @@
|
|||
#include <termios.h> /* POSIX terminal control definitions */
|
||||
#include <sys/ioctl.h>
|
||||
|
||||
#include "rig.h"
|
||||
#include "riglist.h"
|
||||
#include <hamlib/rig.h>
|
||||
#include <hamlib/riglist.h>
|
||||
#include "serial.h"
|
||||
#include "ft847.h"
|
||||
|
||||
|
@ -69,7 +69,7 @@ int ft847_set_freq_main_vfo_hz(RIG *rig, freq_t freq, rmode_t mode);
|
|||
const struct rig_caps ft847_caps = {
|
||||
RIG_MODEL_FT847, "FT-847", "Yaesu", "0.1", RIG_STATUS_ALPHA,
|
||||
RIG_TYPE_TRANSCEIVER,RIG_PTT_NONE, 4800, 57600, 8, 2, RIG_PARITY_NONE,
|
||||
RIG_HANDSHAKE_NONE, 50, 100, 0, FT847_FUNC_ALL, 78,
|
||||
RIG_HANDSHAKE_NONE, 50, 100, 0, FT847_FUNC_ALL, 78, RIG_TRN_OFF,
|
||||
{ {100000,76000000,FT847_ALL_RX_MODES,-1,-1}, /* rx range begin */
|
||||
{108000000,174000000,FT847_ALL_RX_MODES,-1,-1},
|
||||
{420000000,512000000,FT847_ALL_RX_MODES,-1,-1},
|
||||
|
@ -212,7 +212,6 @@ int ft847_open(RIG *rig) {
|
|||
return RIG_OK;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* ft847_close routine
|
||||
*
|
||||
|
@ -934,3 +933,17 @@ static int is_in_list(int *list, int list_length, int value) {
|
|||
|
||||
|
||||
#endif /* 0 */
|
||||
|
||||
|
||||
/*
|
||||
* init_ft847 is called by rig_backend_load
|
||||
*/
|
||||
int init_ft847(void *be_handle)
|
||||
{
|
||||
rig_debug(RIG_DEBUG_VERBOSE, "ft847: _init called\n");
|
||||
|
||||
rig_register(&ft847_caps);
|
||||
|
||||
return RIG_OK;
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue