-
Notifications
You must be signed in to change notification settings - Fork 0
/
MemoryChannel.cs
64 lines (62 loc) · 2.01 KB
/
MemoryChannel.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static shvFT991A.MainWindow;
namespace shvFT991A
{
class MemoryChannel
{
public int No { get; set; } // 1-117
public int Freq { get; set; } //Hz
public int ClarifierFreq { get; set; }
public bool ClarifierSwitchRX { get; set; }
public bool ClarifierSwitchTX { get; set; }
public ModeKind ModeFreq { get; set; }
public bool VfoOrMemory { get; set; }
// false=VFO true=Memory
public int CtcssDcsMode { get; set; }
//別名CTCSS (Continuous Tone-Coded Squelch System)。別名DCS (Digital-Coded Squelch)。
// 0=CTCSS OFF
// 1=CTCSS ENC/DEC
// 2=CTCSS ENC
// 3=DCS ENC/DEC
// 4=DCS ENC
public int SimplexMode { get; set; }
// 0=simplex 1=plus shift 2=minus shift
public string MemoryTag { get; set; }
/*
public override string ToString()
{
//_ = (string)TypeDescriptor.GetConverter(ModeEnum).ConvertTo(ModeEnum, typeof(string));
string name = Enum.GetName(typeof(ModeEnum), 1 );
return $"{No} - {(float)Freq/1000000.0:F3}, {ModeEnum}, {MemoryTag}";
}
*/
//Enum myServer = Servers.Exchange;
//string myServerString = "BizTalk";
//Console.WriteLine(TypeDescriptor.GetConverter(myServer).ConvertTo(myServer, typeof(string)));
//Console.WriteLine(TypeDescriptor.GetConverter(myServer).ConvertFrom(myServerString));
}
/*
public enum ModeEnumBack
{
LSB = 1,
USB = 2,
CW = 3,
FM = 4,
AM = 5,
RTTY_LSB = 6,
CW_R = 7,
DATA_LSB = 8,
RTTY_USB = 9,
DATA_FM = 10,
FM_N = 11,
DATA_USB = 12,
AM_N = 13,
C4FM = 14
}
*/
}