From ae777c64990f7f3513d4bf27ecb6ee3cbc568f00 Mon Sep 17 00:00:00 2001 From: "Frank Singleton, VK3FCS" Date: Sun, 17 Sep 2000 03:21:31 +0000 Subject: [PATCH] changing to frontend/backend style git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@117 7ae35d74-ebe9-4afe-98af-79ac388436b8 --- ft847/ft847.h | 48 ++++++++++++++++++++++++++++++++++++------------ 1 file changed, 36 insertions(+), 12 deletions(-) diff --git a/ft847/ft847.h b/ft847/ft847.h index a97e13cb9..5196cef40 100644 --- a/ft847/ft847.h +++ b/ft847/ft847.h @@ -6,7 +6,7 @@ * via serial interface to an FT-847 using the "CAT" interface. * * - * $Id: ft847.h,v 1.12 2000-09-04 17:51:35 javabear Exp $ + * $Id: ft847.h,v 1.13 2000-09-17 03:21:31 javabear Exp $ * * * This program is free software; you can redistribute it and/or @@ -25,6 +25,33 @@ * */ +#ifndef _FT847_H +#define _FT847_H 1 + +/* + * future - private data + * + */ + +struct ft847_priv_data { + int dummy; /* for test */ +}; + + +/* + * API local implementation + */ + +int ft847_init(RIG *rig); +int ft847_cleanup(RIG *rig); +int cmd_set_freq_main_vfo_hz(RIG *rig, freq_t freq, rig_mode_t mode); + + /* + int (*set_freq)(RIG *rig, freq_t freq); + int (*set_mode)(RIG *rig, rig_mode_t mode); + int (*set_vfo)(RIG *rig, rig_vfo_t vfo); + */ + /* * Allow TX commands to be disabled * @@ -77,23 +104,15 @@ const unsigned char CTCSS_ENC_DEC_OFF = 0x2a; -/* - * Visible functions in shared lib. - * - */ - -/* int rig_open(char *serial_port); */ /* return fd or -1 on error */ - -int rig_close(int fd); -struct rig_caps *rig_get_caps(); /* return ptr to capabilities */ -int rig_open(struct rig_caps *rc); /* use rig_caps struct to open */ - /* * Raw CAT command set * */ + +#if 0 + void cmd_set_cat_on(int fd); void cmd_set_cat_off(int fd); @@ -166,6 +185,11 @@ void cmd_set_freq_sat_tx_vfo_hz(int fd,long int freq, unsigned char mode); void cmd_set_repeater_offset_hz(int fd,long int freq); +#endif /* 0 */ + + + +#endif /* _FT847_H */