2
* TenTec Delta-II driver
6
* Copyright 2011, Dave Freese, W1HKJ
12
//=============================================================================
15
const char RIG_TT535name_[] = "DELTA-II";
17
const char *RIG_TT535modes_[] = {
18
"LSB", "USB", "AM", "CW", "FM", NULL};
19
static const char RIG_TT535_mode_type[] = {'L', 'U', 'U', 'L', 'U'};
21
RIG_TT535::RIG_TT535() {
22
name_ = RIG_TT535name_;
23
modes_ = RIG_TT535modes_;
24
comm_baudrate = BR1200;
39
has_mode_control = true;
40
// has_ptt_control = true;
42
pre_to[2] = ok[3] = bad[3] = pre_fm[3] = 0x01;
46
int RIG_TT535::adjust_bandwidth(int m)
51
long RIG_TT535::get_vfoA ()
57
void RIG_TT535::set_vfoA (long freq)
62
cmd.append( to_bcd_be( freq, 8 ) );
64
int ret = sendCommand(cmd);
69
void RIG_TT535::set_vfoB (long freq)
74
cmd.append( to_bcd_be( freq, 8 ) );
76
if (sendCommand(cmd) != 6);
80
long RIG_TT535::get_vfoB ()
87
void RIG_TT535::set_PTT_control(int val)
91
cmd += val ? '\x01' : '\x02';
98
void RIG_TT535::set_modeA(int md)
105
if (sendCommand(cmd) != 6);
109
// same with get mode
110
int RIG_TT535::get_modeA()
115
// if( sendICcommand (cmd, 8 )) {
116
// modeA = replystr[5];
117
// bwA = replystr[6];
123
void RIG_TT535::set_modeB(int md)
130
if (sendCommand(cmd) != 6);
134
// same with get mode
135
int RIG_TT535::get_modeB()
141
int RIG_TT535::get_modetype(int n)
143
return RIG_TT535_mode_type[n];