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