HamBook – Diff between revs 7 and 9
?pathlinks?
Rev 7 | Rev 9 | |||
---|---|---|---|---|
Line 1... | Line 1... | |||
1 | using System; |
1 | using System; |
|
2 | using System.Collections.Generic; |
2 | using System.Collections.Generic; |
|
3 | using System.IO.Ports; |
3 | using System.IO.Ports; |
|
4 | using System.Linq; |
4 | using System.Linq; |
|
5 | using System.Text; |
5 | using System.Text; |
|
- | 6 | using System.Threading; |
||
6 | using System.Threading.Tasks; |
7 | using System.Threading.Tasks; |
|
- | 8 | using RJCP.IO.Ports; |
||
Line 7... | Line 9... | |||
7 | |
9 | |
|
8 | namespace HamBook.Radios.Generic.CAT |
10 | namespace HamBook.Radios.Generic.CAT |
|
9 | { |
11 | { |
|
10 | public abstract class SQ : Cat |
12 | public abstract class SQ : Cat |
|
11 | { |
13 | { |
|
Line 12... | Line 14... | |||
12 | public override string Name => "SQ"; |
14 | public override string Name => "SQ"; |
|
Line 13... | Line 15... | |||
13 | |
15 | |
|
14 | public override string Definition => "SQUELCH LEVEL"; |
16 | public override string Definition => "SQUELCH LEVEL"; |
|
15 | |
17 | |
|
Line 16... | Line 18... | |||
16 | public SQ(SerialPort serialPort) : base(serialPort) |
18 | public SQ(SerialPortStream serialPort) : base(serialPort) |
|
Line 17... | Line 19... | |||
17 | { |
19 | { |
|
Line -... | Line 20... | |||
- | 20 | } |
||
- | 21 | |
||
18 | } |
22 | public abstract int GetDefault(); |
|
- | 23 | |
||
- | 24 | public abstract bool Set(int level); |
||
- | 25 | |
||
- | 26 | public abstract Task<bool> SetAsync(int level, CancellationToken cancellationToken); |
||
- | 27 | |
||
- | 28 | public abstract int Read(); |
||
19 | |
29 | |
|
20 | public abstract int GetDefault(); |
30 | public abstract Task<int> ReadAsync(CancellationToken cancellationToken); |