2020-10-22 21:04:43 +00:00
|
|
|
/*
|
|
|
|
* hamlib - (C) Frank Singleton 2000 (javabear at users.sourceforge.net)
|
|
|
|
*
|
|
|
|
* ftdx101.h - (C) Nate Bargmann 2007 (n0nb at arrl.net)
|
|
|
|
* (C) Stephane Fillod 2008-2010
|
|
|
|
* (C) Mikael Nousiainen 2020
|
|
|
|
*
|
|
|
|
* This shared library provides an API for communicating
|
|
|
|
* via serial interface to an FTDX101(D/MP) using the "CAT" interface
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library 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
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef _FTDX101_H
|
|
|
|
#define _FTDX101_H 1
|
|
|
|
|
2020-10-24 07:55:11 +00:00
|
|
|
#define FTDX101_VFO_ALL (RIG_VFO_MAIN|RIG_VFO_SUB|RIG_VFO_MEM)
|
2020-10-22 21:04:43 +00:00
|
|
|
|
|
|
|
/* Receiver caps */
|
|
|
|
|
2020-10-23 06:32:37 +00:00
|
|
|
#define FTDX101_ALL_RX_MODES (RIG_MODE_AM|RIG_MODE_AMN|RIG_MODE_CW|RIG_MODE_CWR|RIG_MODE_SSB|\
|
2020-10-23 06:34:08 +00:00
|
|
|
RIG_MODE_RTTY|RIG_MODE_RTTYR|RIG_MODE_PKTLSB|RIG_MODE_PKTUSB|RIG_MODE_PKTFM|\
|
2020-10-22 21:04:43 +00:00
|
|
|
RIG_MODE_FM|RIG_MODE_FMN|RIG_MODE_PKTFMN)
|
|
|
|
|
|
|
|
#define FTDX101_SSB_CW_RX_MODES (RIG_MODE_CW|RIG_MODE_CWR|RIG_MODE_SSB|\
|
2020-10-23 06:34:08 +00:00
|
|
|
RIG_MODE_RTTY|RIG_MODE_RTTYR|RIG_MODE_PKTLSB|RIG_MODE_PKTUSB)
|
2020-10-23 06:32:37 +00:00
|
|
|
#define FTDX101_AM_RX_MODES (RIG_MODE_AM|RIG_MODE_AMN)
|
2020-10-22 21:04:43 +00:00
|
|
|
#define FTDX101_FM_RX_MODES (RIG_MODE_FM|RIG_MODE_PKTFM|RIG_MODE_FMN|RIG_MODE_PKTFMN)
|
|
|
|
#define FTDX101_CW_RTTY_PKT_RX_MODES (RIG_MODE_RTTY|RIG_MODE_RTTYR|\
|
|
|
|
RIG_MODE_PKTUSB|RIG_MODE_PKTLSB|RIG_MODE_CW|RIG_MODE_CWR)
|
|
|
|
|
|
|
|
/* TRX caps */
|
|
|
|
|
2020-10-23 06:32:37 +00:00
|
|
|
#define FTDX101_OTHER_TX_MODES (RIG_MODE_AM|RIG_MODE_AMN|RIG_MODE_CW|RIG_MODE_SSB|RIG_MODE_RTTY| \
|
2020-10-23 06:34:08 +00:00
|
|
|
RIG_MODE_PKTLSB|RIG_MODE_PKTUSB|RIG_MODE_PKTFM|RIG_MODE_FM|RIG_MODE_FMN|RIG_MODE_PKTFMN) /* 100 W class */
|
2020-10-23 06:32:37 +00:00
|
|
|
#define FTDX101_AM_TX_MODES (RIG_MODE_AM|RIG_MODE_AMN) /* set 25W max */
|
2020-10-22 21:04:43 +00:00
|
|
|
|
|
|
|
#define FTDX101_LEVELS (RIG_LEVEL_ATT|RIG_LEVEL_PREAMP|\
|
2020-10-23 08:38:04 +00:00
|
|
|
RIG_LEVEL_ALC|RIG_LEVEL_RAWSTR|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
|
2020-12-11 22:12:11 +00:00
|
|
|
// Borrowed from FLRig -- Thanks to Dave W1HKJ
|
2020-12-11 18:25:01 +00:00
|
|
|
#define FTDX101D_RFPOWER_METER_CAL \
|
|
|
|
{ \
|
|
|
|
5, \
|
|
|
|
{ \
|
|
|
|
{35, 5.0f}, \
|
|
|
|
{94, 25.0f}, \
|
|
|
|
{147, 50.0f}, \
|
|
|
|
{176, 75.0f}, \
|
|
|
|
{205, 100.0f}, \
|
|
|
|
} \
|
|
|
|
}
|
|
|
|
|
2020-10-26 07:19:38 +00:00
|
|
|
// Based on testing with G3VPX Ian Sumner
|
2020-10-24 07:55:11 +00:00
|
|
|
#define FTDX101D_SWR_CAL \
|
|
|
|
{ \
|
|
|
|
8, \
|
|
|
|
{ \
|
|
|
|
{0, 1.0f}, \
|
|
|
|
{26, 1.2f}, \
|
|
|
|
{52, 1.5f}, \
|
|
|
|
{89, 2.0f}, \
|
|
|
|
{126, 3.0f}, \
|
|
|
|
{173, 4.0f}, \
|
|
|
|
{236, 5.0f}, \
|
|
|
|
{255, 25.0f}, \
|
|
|
|
} \
|
|
|
|
}
|
2020-10-22 21:04:43 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Other features (used by rig_caps)
|
|
|
|
*/
|
|
|
|
|
2020-11-05 09:05:37 +00:00
|
|
|
#define FTDX101_TX_ANTS (RIG_ANT_1|RIG_ANT_2|RIG_ANT_3)
|
2020-10-22 21:04:43 +00:00
|
|
|
|
|
|
|
#define FTDX101_MEM_CHNL_LENGTH 1 /* 0x10 P1 = 01 return size */
|
|
|
|
#define FTDX101_OP_DATA_LENGTH 19 /* 0x10 P1 = 03 return size */
|
|
|
|
#define FTDX101_VFO_DATA_LENGTH 18 /* 0x10 P1 = 03 return size -- A & B returned */
|
|
|
|
#define FTDX101_MEM_CHNL_DATA_LENGTH 19 /* 0x10 P1 = 04, P4 = 0x01-0x20 return size */
|
|
|
|
#define FTDX101_STATUS_FLAGS_LENGTH 5 /* 0xf7, 0xfa return size */
|
|
|
|
#define FTDX101_ALL_DATA_LENGTH 649 /* 0x10 P1 = 00 return size */
|
|
|
|
|
|
|
|
/* Timing values in mS */
|
|
|
|
|
|
|
|
/* Delay between bytes sent
|
|
|
|
* Should not exceed value set in CAT TOT menu (rig default is 10 mSec)
|
|
|
|
*/
|
|
|
|
#define FTDX101_WRITE_DELAY 0
|
|
|
|
|
|
|
|
|
|
|
|
/* Delay sequential fast writes */
|
|
|
|
|
|
|
|
#define FTDX101_POST_WRITE_DELAY 5
|
|
|
|
|
|
|
|
#endif /* _FTDX101_H */
|