HamBook – Blame information for rev 53
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | using System; |
2 | using System.Collections.Generic; |
||
3 | using System.Linq; |
||
4 | using System.Text; |
||
3 | office | 5 | using System.Text.RegularExpressions; |
1 | office | 6 | using System.Threading.Tasks; |
7 | |||
8 | namespace HamBook.Radios.Yaesu.FT_891 |
||
11 | office | 9 | { |
1 | office | 10 | public class Constants |
11 | { |
||
46 | office | 12 | public static char EOT = ';'; |
11 | office | 13 | public static Encoding Encoding => Encoding.ASCII; |
14 | |||
15 | public const char UNKNOWN_COMMAND_RESPONSE = '?'; |
||
16 | |||
1 | office | 17 | public const int BUFFER_SIZE = 4096; |
18 | |||
11 | office | 19 | public const int POWER_ON_DELAY = 1500; |
1 | office | 20 | |
21 | public const int TIME_TO_WARM = 5000; |
||
3 | office | 22 | |
46 | office | 23 | public static int SQUELCH_MIN_STEP = 5; |
3 | office | 24 | |
7 | office | 25 | public const string ID = "0650"; |
26 | |||
53 | office | 27 | public const int MAX_TAG_CHARACTERS = 12; |
28 | |||
46 | office | 29 | public static Regex InformationRegex = new Regex($"^IF(?<radioBank>[0-9PLU]{{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}}){Constants.EOT}$", RegexOptions.Compiled); |
3 | office | 30 | |
1 | office | 31 | } |
32 | } |