HamBook – Diff between revs 1 and 3
?pathlinks?
Rev 1 | Rev 3 | |||
---|---|---|---|---|
Line 1... | Line 1... | |||
1 | using System; |
1 | using System; |
|
2 | using System.Collections.Generic; |
2 | using System.Collections.Generic; |
|
3 | using System.Linq; |
3 | using System.Linq; |
|
4 | using System.Text; |
4 | using System.Text; |
|
- | 5 | using System.Text.RegularExpressions; |
||
5 | using System.Threading.Tasks; |
6 | using System.Threading.Tasks; |
|
Line 6... | Line 7... | |||
6 | |
7 | |
|
7 | namespace HamBook.Radios.Yaesu.FT_891 |
8 | namespace HamBook.Radios.Yaesu.FT_891 |
|
8 | { |
9 | { |
|
9 | public class Constants |
10 | public class Constants |
|
10 | { |
11 | { |
|
Line 11... | Line -... | |||
11 | public const int BUFFER_SIZE = 4096; |
- | ||
12 | |
- | ||
13 | public const string EOT = ";"; |
12 | public const int BUFFER_SIZE = 4096; |
|
Line 14... | Line 13... | |||
14 | |
13 | |
|
- | 14 | public const int POWER_ON_DELAY = 1000; |
||
- | 15 | |
||
- | 16 | public const int TIME_TO_WARM = 5000; |
||
- | 17 | |
||
- | 18 | public const int SQUELCH_MIN_STEP = 5; |
||
15 | public const int POWER_ON_DELAY = 1000; |
19 | |
|
16 | |
20 | public static Regex InformationRegex = new Regex(@"^IF(?<radioBank>[0-9a-zA-Z]{3})(?<frequency>[0-9]{9})(?<clarifierDirection>[\+\-]{1})(?<clarifierOffset>[0-9]{4})(?<clar>[01]{1})0(?<mode>[123456789ABCD]){1}(?<storage>[0125]){1}(?<ctcssMode>[012]{1})00(?<phase>[012]{1})$", RegexOptions.Compiled); |