mirror of
https://github.com/ekinnee/SharpCAT.git
synced 2026-04-21 06:13:40 +00:00
Rename SharpCAT directory to Library and update all references
Co-authored-by: ekinnee <1707617+ekinnee@users.noreply.github.com>
This commit is contained in:
parent
ff341a3fed
commit
950d840238
26 changed files with 9 additions and 9 deletions
11
Library/Models/CATCommand.cs
Normal file
11
Library/Models/CATCommand.cs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
namespace SharpCAT.Models
|
||||
{
|
||||
internal class CATCommand
|
||||
{
|
||||
public string P1 { get; set; }
|
||||
public string P2 { get; set; }
|
||||
public string P3 { get; set; }
|
||||
public string P4 { get; set; }
|
||||
public string OpCode { get; set; }
|
||||
}
|
||||
}
|
||||
104
Library/Models/CATRadio.cs
Normal file
104
Library/Models/CATRadio.cs
Normal file
|
|
@ -0,0 +1,104 @@
|
|||
namespace SharpCAT.Models
|
||||
{
|
||||
//Base Radio Model
|
||||
public partial class CATRadio : IRadio
|
||||
{
|
||||
private string RadioMfg { get; }
|
||||
private string RadioModel { get; }
|
||||
|
||||
private string CmdPad { get; } = "00000000";
|
||||
|
||||
private string VFOToggle { get; }
|
||||
private Lock Lock { get; }
|
||||
private Ptt Ptt { get; }
|
||||
private Clar Clar { get; }
|
||||
private Split Split { get; }
|
||||
private Power Power { get; }
|
||||
private ToneMode ToneMode { get; }
|
||||
private OpModes OpModes { get; }
|
||||
|
||||
partial void LockOn();
|
||||
|
||||
partial void LockOff();
|
||||
|
||||
partial void PttOn();
|
||||
|
||||
partial void PttOff();
|
||||
|
||||
partial void ClarOn();
|
||||
|
||||
partial void ClarOff();
|
||||
|
||||
partial void SplitOn();
|
||||
|
||||
partial void SplitOff();
|
||||
|
||||
partial void PowerOn();
|
||||
|
||||
partial void PowerOff();
|
||||
|
||||
partial void SetFreq(double freq);
|
||||
|
||||
partial void SetOpMode(OpModes opmode);
|
||||
|
||||
partial void SwitchVFO();
|
||||
|
||||
partial void SetToneMode(ToneMode mode);
|
||||
|
||||
partial void GetRXStatus();
|
||||
|
||||
partial void GetTXStatus();
|
||||
|
||||
partial void GetFreqAndModeStatus();
|
||||
}
|
||||
|
||||
public partial class Lock
|
||||
{
|
||||
public static readonly string ON;
|
||||
public static readonly string OFF;
|
||||
}
|
||||
|
||||
public class Ptt
|
||||
{
|
||||
public static readonly string ON;
|
||||
public static readonly string OFF;
|
||||
}
|
||||
|
||||
public class Clar
|
||||
{
|
||||
public static readonly string ON;
|
||||
public static readonly string OFF;
|
||||
}
|
||||
|
||||
public class Split
|
||||
{
|
||||
public static readonly string ON;
|
||||
public static readonly string OFF;
|
||||
}
|
||||
|
||||
public class Power
|
||||
{
|
||||
public static readonly string ON;
|
||||
public static readonly string OFF;
|
||||
}
|
||||
|
||||
public class ToneMode
|
||||
{
|
||||
public static readonly string DCS;
|
||||
public static readonly string CTCSS;
|
||||
public static readonly string ENCODER;
|
||||
public static readonly string OFF;
|
||||
}
|
||||
|
||||
public class OpModes
|
||||
{
|
||||
public static readonly string LSB;
|
||||
public static readonly string USB;
|
||||
public static readonly string CW;
|
||||
public static readonly string CWR;
|
||||
public static readonly string AM;
|
||||
public static readonly string FM;
|
||||
public static readonly string DIG;
|
||||
public static readonly string PKT;
|
||||
}
|
||||
}
|
||||
10
Library/Models/CIVCommand.cs
Normal file
10
Library/Models/CIVCommand.cs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
namespace SharpCAT.Models
|
||||
{
|
||||
internal class CIVCommand
|
||||
{
|
||||
private string CmdToRadio = "FE FE 9A E0 Cn Sc Data area FD";
|
||||
private string DataFromRadio = "FE FE E0 9A Cn Sc Data area FD";
|
||||
private string OKFromRadio { get; set; }
|
||||
private string NGFromRadio { get; set; }
|
||||
}
|
||||
}
|
||||
6
Library/Models/CIVRadio.cs
Normal file
6
Library/Models/CIVRadio.cs
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
namespace SharpCAT.Models
|
||||
{
|
||||
internal class CIVRadio : IRadio
|
||||
{
|
||||
}
|
||||
}
|
||||
8
Library/Models/IRadio.cs
Normal file
8
Library/Models/IRadio.cs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
using System;
|
||||
namespace SharpCAT.Models
|
||||
{
|
||||
partial interface IRadio
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue