2001-07-14 16:45:40 +00:00
|
|
|
/*
|
|
|
|
* Hamlib Uniden backend - main header
|
2009-03-23 22:26:56 +00:00
|
|
|
* Copyright (c) 2001-2009 by Stephane Fillod
|
2001-07-14 16:45:40 +00:00
|
|
|
*
|
|
|
|
*
|
2011-08-23 01:59:19 +00:00
|
|
|
* 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.
|
2001-07-14 16:45:40 +00:00
|
|
|
*
|
2011-08-23 01:59:19 +00:00
|
|
|
* This library is distributed in the hope that it will be useful,
|
2001-07-14 16:45:40 +00:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2011-08-23 01:59:19 +00:00
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
2001-07-14 16:45:40 +00:00
|
|
|
*
|
2011-08-23 01:59:19 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2001-07-14 16:45:40 +00:00
|
|
|
* License along with this library; if not, write to the Free Software
|
2011-08-23 01:59:19 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
2001-07-14 16:45:40 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _UNIDEN_H
|
|
|
|
#define _UNIDEN_H 1
|
|
|
|
|
2001-12-16 11:14:47 +00:00
|
|
|
#include <hamlib/rig.h>
|
|
|
|
#include <cal.h>
|
2001-07-14 16:45:40 +00:00
|
|
|
|
2020-06-21 11:44:40 +00:00
|
|
|
#define BACKEND_VER "20200621"
|
2001-07-14 16:45:40 +00:00
|
|
|
|
2008-05-04 14:23:54 +00:00
|
|
|
/* TODO: Trunk, Delay, Recording
|
|
|
|
*
|
|
|
|
* .channel_desc=1 is only on BC780 BC250 BC785
|
|
|
|
* .ctcss_sql=1,
|
|
|
|
* .dcs_sql=1,
|
|
|
|
*/
|
|
|
|
#define UNIDEN_CHANNEL_CAPS \
|
|
|
|
.freq=1,\
|
|
|
|
.levels=RIG_LEVEL_ATT,\
|
2011-08-23 01:59:19 +00:00
|
|
|
.flags=1, /* L/O */
|
2008-05-04 14:23:54 +00:00
|
|
|
|
|
|
|
/* Calibration, actually from the BC785D */
|
|
|
|
#define UNIDEN_STR_CAL { 8, \
|
|
|
|
{ \
|
|
|
|
{ 0, -54 }, \
|
|
|
|
{ 134, -20 }, /* < 0.50uV */ \
|
|
|
|
{ 157, -12 }, \
|
|
|
|
{ 173, -9 }, \
|
|
|
|
{ 189, -5 }, \
|
|
|
|
{ 204, -1 }, \
|
|
|
|
{ 221, 4 }, /* < 7.50uV */ \
|
|
|
|
{ 255, 60 }, \
|
|
|
|
} }
|
|
|
|
|
2021-04-29 15:49:29 +00:00
|
|
|
extern tone_t uniden_ctcss_list[];
|
|
|
|
extern tone_t uniden_dcs_list[];
|
2008-05-04 14:23:54 +00:00
|
|
|
|
|
|
|
int uniden_transaction (RIG *rig, const char *cmdstr, int cmd_len,
|
2021-04-29 15:49:29 +00:00
|
|
|
const char *replystr, char *data, size_t *datasize);
|
2001-07-14 16:45:40 +00:00
|
|
|
int uniden_set_freq(RIG *rig, vfo_t vfo, freq_t freq);
|
2008-05-04 14:23:54 +00:00
|
|
|
int uniden_get_freq(RIG *rig, vfo_t vfo, freq_t *freq);
|
2020-06-20 18:38:46 +00:00
|
|
|
int uniden_get_freq_2(RIG *rig, vfo_t vfo, freq_t *freq);
|
2008-05-04 14:23:54 +00:00
|
|
|
int uniden_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width);
|
|
|
|
int uniden_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width);
|
2001-07-14 16:45:40 +00:00
|
|
|
int uniden_set_mem(RIG *rig, vfo_t vfo, int ch);
|
2008-05-04 14:23:54 +00:00
|
|
|
int uniden_get_mem(RIG *rig, vfo_t vfo, int *ch);
|
|
|
|
int uniden_get_dcd(RIG *rig, vfo_t vfo, dcd_t *dcd);
|
|
|
|
int uniden_set_level(RIG *rig, vfo_t vfo, setting_t level, value_t val);
|
|
|
|
int uniden_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val);
|
2020-11-30 05:32:14 +00:00
|
|
|
int uniden_get_channel(RIG *rig, vfo_t vfo, channel_t *chan, int read_only);
|
|
|
|
int uniden_set_channel(RIG *rig, vfo_t vfo, const channel_t *chan);
|
2008-05-04 14:23:54 +00:00
|
|
|
const char* uniden_get_info(RIG *rig);
|
2001-07-14 16:45:40 +00:00
|
|
|
|
|
|
|
extern const struct rig_caps bc895_caps;
|
2009-03-23 22:26:56 +00:00
|
|
|
extern const struct rig_caps bc898_caps;
|
2004-02-08 16:59:48 +00:00
|
|
|
extern const struct rig_caps bc245_caps;
|
2008-05-04 15:33:26 +00:00
|
|
|
extern const struct rig_caps bc780_caps;
|
|
|
|
extern const struct rig_caps bc250_caps;
|
2008-05-04 14:23:54 +00:00
|
|
|
extern const struct rig_caps pro2052_caps;
|
2001-07-14 16:45:40 +00:00
|
|
|
|
2008-10-07 18:58:08 +00:00
|
|
|
extern const struct rig_caps bcd396t_caps;
|
|
|
|
extern const struct rig_caps bcd996t_caps;
|
|
|
|
|
2001-07-14 16:45:40 +00:00
|
|
|
#endif /* _UNIDEN_H */
|