kopia lustrzana https://github.com/Hamlib/Hamlib
49 wiersze
1.7 KiB
C
49 wiersze
1.7 KiB
C
/*
|
|
* hamlib - (C) Frank Singleton 2000 (vk3fcs@ix.netcom.com)
|
|
*
|
|
* frame.h - Copyright (C) 2000 Stephane Fillod
|
|
* This shared library provides an API for communicating
|
|
* via serial interface to an ICOM using the "CI-V" interface.
|
|
*
|
|
*
|
|
* $Id: frame.h,v 1.2 2000-10-08 21:35:48 f4cfe Exp $
|
|
*
|
|
*
|
|
* 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, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
*
|
|
*/
|
|
|
|
#ifndef _FRAME_H
|
|
#define _FRAME_H 1
|
|
|
|
#include <hamlib/rig.h>
|
|
|
|
/*
|
|
* helper functions
|
|
*/
|
|
int make_cmd_frame(char frame[], char re_id, char cmd, int subcmd, const char *data, int data_len);
|
|
|
|
int make_cmd_frame_freq(char frame[], char re_id, char cmd, int subcmd, freq_t freq, int ic731_mode);
|
|
int make_cmd_frame_chan(char frame[], char re_id,char cmd,int subcmd,int chan);
|
|
|
|
int icom_transaction (RIG *rig, int cmd, int subcmd, const char *payload, int payload_len, char *data, int *data_len);
|
|
int read_icom_frame(FILE *stream, unsigned char rxbuffer[], int timeout);
|
|
|
|
unsigned short hamlib2icom_mode(rmode_t mode);
|
|
rmode_t icom2hamlib_mode(unsigned short icmode);
|
|
|
|
#endif /* _FRAME_H */
|
|
|