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 FA : Cat |
12 | public abstract class FA : Cat |
|
11 | { |
13 | { |
|
Line 12... | Line 14... | |||
12 | public override string Name => "FA"; |
14 | public override string Name => "FA"; |
|
Line 13... | Line 15... | |||
13 | |
15 | |
|
14 | public override string Definition => "FREQUENCY VFO-A"; |
16 | public override string Definition => "FREQUENCY VFO-A"; |
|
15 | |
17 | |
|
Line -... | Line 18... | |||
- | 18 | public FA(SerialPortStream serialPort) : base(serialPort) |
||
16 | public FA(SerialPort serialPort) : base(serialPort) |
19 | { |
|
Line -... | Line 20... | |||
- | 20 | } |
||
- | 21 | |
||
17 | { |
22 | |
|
- | 23 | public abstract bool Set(int frequency); |
||
- | 24 | |
||
- | 25 | public abstract Task<bool> SetAsync(int frequency, CancellationToken cancellation); |
||
- | 26 | |
||
- | 27 | public abstract int Read(); |
||
- | 28 | |
||
18 | } |
29 | public abstract Task<int> ReadAsync(CancellationToken cancellationToken); |
|
19 | |
30 | |