HamBook – Diff between revs 3 and 9
?pathlinks?
Rev 3 | 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 AI : Cat |
12 | public abstract class AI : Cat |
|
11 | { |
13 | { |
|
12 | public AI(SerialPort serialPort) : base(serialPort) |
14 | public AI(SerialPortStream serialPort) : base(serialPort) |
|
13 | { |
15 | { |
|
Line 14... | Line 16... | |||
14 | } |
16 | } |
|
Line 15... | Line 17... | |||
15 | |
17 | |
|
Line -... | Line 18... | |||
- | 18 | public override string Name => "AI"; |
||
- | 19 | |
||
- | 20 | public override string Definition => "AUTO INFORMATION"; |
||
- | 21 | |
||
16 | public override string Name => "AI"; |
22 | public abstract void Write(InformationState state); |
|
- | 23 | |
||
- | 24 | public abstract Task WriteAsync(InformationState state, CancellationToken cancellationToken); |
||
Line 17... | Line 25... | |||
17 | |
25 | |
|
Line -... | Line 26... | |||
- | 26 | public abstract bool Set(InformationState state); |
||
- | 27 | |
||
18 | public override string Definition => "AUTO INFORMATION"; |
28 | public abstract Task<bool> SetAsync(InformationState state, CancellationToken cancellationToken); |
|
19 | |
29 | |
|
20 | public abstract void Set(InformationState state); |
30 | public abstract InformationState Read(); |