HamBook – Diff between revs 9 and 54
?pathlinks?
Rev 9 | Rev 54 | |||
---|---|---|---|---|
Line 1... | Line -... | |||
1 | using System; |
- | ||
2 | using System.Collections.Generic; |
- | ||
3 | using System.IO.Ports; |
- | ||
4 | using System.Linq; |
- | ||
5 | using System.Text; |
- | ||
6 | using System.Threading; |
1 | using System.Threading; |
|
7 | using System.Threading.Tasks; |
2 | using System.Threading.Tasks; |
|
8 | using RJCP.IO.Ports; |
3 | using RJCP.IO.Ports; |
|
Line 9... | Line 4... | |||
9 | |
4 | |
|
10 | namespace HamBook.Radios.Generic.CAT |
5 | namespace HamBook.Radios.Generic.CAT |
|
11 | { |
6 | { |
|
12 | public abstract class PS : Cat |
7 | public abstract class Ps : Cat |
|
- | 8 | { |
||
- | 9 | public Ps(SerialPortStream serialPort) : base(serialPort) |
||
- | 10 | { |
||
- | 11 | } |
||
13 | { |
12 | |
|
Line 14... | Line 13... | |||
14 | public override string Name => "PS"; |
13 | public override string Name => "PS"; |
|
Line 15... | Line -... | |||
15 | |
- | ||
16 | public override string Definition => "POWER SWITCH"; |
- | ||
17 | |
- | ||
18 | public PS(SerialPortStream serialPort) : base(serialPort) |
- | ||
19 | { |
14 | |
|
Line 20... | Line 15... | |||
20 | } |
15 | public override string Definition => "POWER SWITCH"; |
|
21 | |
16 | |
|
22 | public abstract Task<bool> SetAsync(PowerState state, CancellationToken cancellationToken); |
17 | public abstract Task<bool> SetAsync(PowerState state, CancellationToken cancellationToken); |
|
23 | |
18 | |