HamBook – Blame information for rev 50
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
50 | office | 1 | using RJCP.IO.Ports; |
2 | using System; |
||
3 | using System.Collections.Generic; |
||
4 | using System.IO.Ports; |
||
5 | using System.Linq; |
||
6 | using System.Text; |
||
7 | using System.Threading; |
||
8 | using System.Threading.Tasks; |
||
9 | using System.Windows.Forms; |
||
10 | |||
11 | namespace HamBook.Radios.Generic.CAT |
||
12 | { |
||
13 | public abstract class LK : Cat |
||
14 | { |
||
15 | public LK(SerialPortStream serialPort) : base(serialPort) |
||
16 | { |
||
17 | } |
||
18 | |||
19 | public override string Name => "LK"; |
||
20 | |||
21 | public override string Definition => "LOCK"; |
||
22 | |||
23 | public abstract bool Set(LockState state); |
||
24 | |||
25 | public abstract Task<bool> SetAsync(LockState state, CancellationToken cancellation); |
||
26 | |||
27 | public abstract LockState Read(); |
||
28 | |||
29 | public abstract Task<LockState> ReadAsync(CancellationToken cancellationToken); |
||
30 | |||
31 | public abstract void Write(LockState state); |
||
32 | |||
33 | public abstract Task WriteAsync(LockState state, CancellationToken cancellationToken); |
||
34 | } |
||
35 | } |